Skip to content

Add aggregated file storing all the results - #408

Merged
jrosdahl merged 20 commits into
ccache:dev/aggregationfrom
afbjorklund:aggregation
May 28, 2019
Merged

jrosdahl merged 20 commits into
ccache:dev/aggregationfrom
afbjorklund:aggregation

Conversation

@afbjorklund

Copy link
Copy Markdown
Contributor

From #218

@afbjorklund afbjorklund mentioned this pull request May 2, 2019
3 of 7 tasks
@jrosdahl

jrosdahl commented May 5, 2019

Copy link
Copy Markdown
Member

Regarding the "work in progress" label: Are you aware of the draft pull requests feature?

@jrosdahl

jrosdahl commented May 5, 2019

Copy link
Copy Markdown
Member

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?

@afbjorklund

Copy link
Copy Markdown
Contributor Author

Regarding the "work in progress" label: Are you aware of the draft pull requests feature?

Nope, I just copied what was used in other projects (that have a merge bot running)

@afbjorklund

Copy link
Copy Markdown
Contributor Author

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?

It just seemed more reasonable to have it here as a PR, instead of a private branch or code snippets.

@jrosdahl

jrosdahl commented May 6, 2019

Copy link
Copy Markdown
Member

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?

@afbjorklund

afbjorklund commented May 7, 2019 •

Copy link
Copy Markdown
Contributor Author

It is missing a buffer for the file copy, and I need to change the name of some functions/variables still...

  • version field
  • copy buffer
  • rename things
  • update tests

Feel free to review, but it is not yet complete. There's going to be a lot of impact on the tests, later on.

@jrosdahl

jrosdahl commented May 7, 2019

Copy link
Copy Markdown
Member

Got it, thanks.

@afbjorklund afbjorklund changed the title [WIP] Add aggregated file storing all the results Add aggregated file storing all the results May 11, 2019
@afbjorklund

Copy link
Copy Markdown
Contributor Author

Updated the above, but there's some kind of crash (segfault) when handling the .stderr

@afbjorklund

Copy link
Copy Markdown
Contributor Author

Should be safe to merge, now that it is not the default (i.e. the feature is not enabled).

You will need to ./configure --enable-aggregated to be able to work on it, though.

https://en.wikipedia.org/wiki/Feature_toggle

@afbjorklund afbjorklund removed the status: work in progress Do not merge label May 21, 2019
@afbjorklund

Copy link
Copy Markdown
Contributor Author

Updated the above, but there's some kind of crash (segfault) when handling the .stderr

Fixed the crash, was due to stray free and get after rewriting. Also file handling was wrong.

@afbjorklund

Copy link
Copy Markdown
Contributor Author

Now the tests have been updated as well, mostly it was about number of files in cache.

@jrosdahl

Copy link
Copy Markdown
Member

Thanks! I hope to find time to look at this soon.

@jrosdahl jrosdahl added the issue: feature New feature label May 27, 2019
@jrosdahl
jrosdahl changed the base branch from master to dev/aggregation May 28, 2019 20:07
@jrosdahl
jrosdahl merged commit c7be421 into ccache:dev/aggregation May 28, 2019
@jrosdahl jrosdahl added this to the 3.8 milestone May 28, 2019
@afbjorklund
afbjorklund deleted the aggregation branch May 28, 2019 20:15
@jrosdahl

Copy link
Copy Markdown
Member

Merged to dev/aggregation temporarily. I will work to get this to master in the near term.

Thanks!

jrosdahl pushed a commit that referenced this pull request May 30, 2019
* 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
jrosdahl pushed a commit that referenced this pull request May 30, 2019
* 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
llunak pushed a commit to llunak/ccache that referenced this pull request Nov 2, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

issue: feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants