Closed therve closed 7 years ago
Hi Thomas, long time no see, hope you're good!
How hard would it be to add a unit test for the change? I didn't yet look at existing unit-test coverage for that part of the code.
Also, a couple of questions about the issue:
Cheers
Hi Free! Good to hear from you too.
I haven't looked at tests yet, I'll see how's that looking.
I've modified subunitdetails slightly to inspect the subunit artifact linked above by Thomas.
There are 278024 empty file attachments (I didn't check the type, but presumably it's mostly logging indeed). If we consider an average subunit record size of 75 bytes per attachment (mostly the content-type string plus test ID string), that adds up to about 20M which confirms the analysis.
In the test record API, skip adding file details to the record if there are not bytes. This reduces that amount of data kept when there is none.