Repository navigation
Add aggregated file storing all the results - #408
Conversation
We might need it for the alternate codepaths
Just show sizes, not contents
This helps when changing the cache storage
|
Regarding the "work in progress" label: Are you aware of the draft pull requests feature? |
|
What's the status of this pull request? I understand that it's not ready for merging, but do you want me to review/comment on it in its current state? |
Nope, I just copied what was used in other projects (that have a merge bot running) |
It just seemed more reasonable to have it here as a PR, instead of a private branch or code snippets. |
I'm still unsure about the status of this pull request since you didn't quite answer that question... Do you want me to review/comment on it in its current state, or do you want me to continue working on the code? |
|
It is missing a buffer for the file copy, and I need to change the name of some functions/variables still...
Feel free to review, but it is not yet complete. There's going to be a lot of impact on the tests, later on. |
|
Got it, thanks. |
Now that it doesn't really store anything
|
Updated the above, but there's some kind of crash (segfault) when handling the .stderr |
This will guard the tests, until ready to integrate
|
Should be safe to merge, now that it is not the default (i.e. the feature is not enabled). You will need to |
Fixed the crash, was due to stray free and get after rewriting. Also file handling was wrong. |
|
Now the tests have been updated as well, mostly it was about number of files in cache. |
|
Thanks! I hope to find time to look at this soon. |
|
Merged to dev/aggregation temporarily. I will work to get this to master in the near term. Thanks! |
* Refactor: save tmp stderr until done storing We might need it for the alternate codepaths * Add aggregated file storing all the results * Add dump result method, for viewing binary Just show sizes, not contents * Check the results rather than cache contents This helps when changing the cache storage * Rename cache struct to filelist instead Now that it doesn't really store anything * Add version and hash size to result header * Copy files by buffer instead of by byte * Make aggregated result files optional This will guard the tests, until ready to integrate * Fix clang warning about unused macros * Stray comma in configure broke the Mac build * Avoid freeing the provided structure * Avoid getting result from cache twice * Fix partial read/write after rewrite * Add test cases for aggregated result * Fix wrong suffix for the depend file * Read the .stderr with the rest of result * Fix test suite only being run for clang * Respect the compression level for result
* Add aggregated file storing all the results * Add dump result method, for viewing binary Just show sizes, not contents * Check the results rather than cache contents This helps when changing the cache storage * Rename cache struct to filelist instead Now that it doesn't really store anything * Add version and hash size to result header * Copy files by buffer instead of by byte * Make aggregated result files optional This will guard the tests, until ready to integrate * Fix clang warning about unused macros * Stray comma in configure broke the Mac build * Avoid freeing the provided structure * Avoid getting result from cache twice * Fix partial read/write after rewrite * Add test cases for aggregated result * Fix wrong suffix for the depend file * Read the .stderr with the rest of result * Fix test suite only being run for clang * Respect the compression level for result
* Add aggregated file storing all the results * Add dump result method, for viewing binary Just show sizes, not contents * Check the results rather than cache contents This helps when changing the cache storage * Rename cache struct to filelist instead Now that it doesn't really store anything * Add version and hash size to result header * Copy files by buffer instead of by byte * Make aggregated result files optional This will guard the tests, until ready to integrate * Fix clang warning about unused macros * Stray comma in configure broke the Mac build * Avoid freeing the provided structure * Avoid getting result from cache twice * Fix partial read/write after rewrite * Add test cases for aggregated result * Fix wrong suffix for the depend file * Read the .stderr with the rest of result * Fix test suite only being run for clang * Respect the compression level for result
From #218