coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

`ci/gnu tests`: Speed up build and test step by caching the gnu directory

Open Joining7943 opened this issue 2 years ago • 6 comments

This pr introduces caching of the complete gnu directory (compressed around 50MB) to speed up the build and test steps in case of a cache hit in all jobs of the gnu tests workflow.

Please have an extra look on the cache key. I tried to figure out all influences on the gnu build, but maybe there are others...

This pr is a draft because it depends on #4766

Joining7943 avatar Apr 23 '23 16:04 Joining7943

GNU testsuite comparison:

GNU test failed: tests/tail-2/inotify-dir-recreate. tests/tail-2/inotify-dir-recreate is passing on 'main'. Maybe you have to rebase?

github-actions[bot] avatar Apr 23 '23 17:04 github-actions[bot]

@Joining7943 is it still a draft? thanks

sylvestre avatar Apr 28 '23 07:04 sylvestre

@sylvestre see their comment: "This pr is a draft because it depends on https://github.com/uutils/coreutils/pull/4766"

cakebaker avatar Apr 30 '23 12:04 cakebaker

is it still a draft?

@sylvestre https://github.com/uutils/coreutils/pull/4766 is merged, so I would give this pr a go. I wondered if using the gcc version as an additional cache key is necessary. What do you think?

Joining7943 avatar May 16 '23 13:05 Joining7943

GNU testsuite comparison:

GNU test failed: tests/cp/cp-i. tests/cp/cp-i is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cp/debug. tests/cp/debug is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cp/reflink-perm. tests/cp/reflink-perm is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/ls/sort-width-option. tests/ls/sort-width-option is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/misc/shred-size. tests/misc/shred-size is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/mkdir/perm. tests/mkdir/perm is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/mv/mv-n. tests/mv/mv-n is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/rm/interactive-always. tests/rm/interactive-always is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/rm/interactive-once. tests/rm/interactive-once is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/tail-2/inotify-rotate. tests/tail-2/inotify-rotate is passing on 'main'. Maybe you have to rebase?

github-actions[bot] avatar Jun 10 '23 18:06 github-actions[bot]