-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use solver result caching in CI (#1908)
Changes: - Enable solver result caching on the CI for the integration tests and all the s2n tests - Add a `--clean-mismatched-versions-solver-cache` command-line option to `saw` which provides a direct way to remove cache entries with out-of-date solver versions (this is run every time a cache is loaded on CI) - Use the commit hash of the last commit to modify the `rme` directory as the version information for `rme` calls, instead of the commit hash of the entire repo (this ensures cached `rme` calls are actually used when CI is run on a later commit which does not modify the `rme` directory) Commits: * first try at turning on solver caching for intTests and s2nTests in CI * add intTest which tests whether solver caching is even enabled * use absolute paths for solver caching on CI * fix dummy CI test file so it actually runs * properly set SAW_SOLVER_CACHE_PATH env var in CI * another attempt at setting SAW_SOLVER_CACHE_PATH on CI * use github.ref instead of .sha for caching in CI, fix repeated key bug(?) * make integration tests aware of SAW_SOLVER_CACHE_PATH env var * enable solver caching for s2n tests; fix typo in ci.yml * clean up solver caching bits in ci.yml, add debugging to blst * remove debugging from intTests, tweak debugging for s2n-blst * more tweaks to CI blst debugging and cache keys * more CI solver caching debugging for s2n * another attempt at enabling solver caching for s2n tests on CI * add debugging back to s2n CI tests * even more debugging for s2n CI solver caching * tweak debugging for s2n CI solver caching * the tweaks to s2n CI solver caching just keep coming... * point the CI solver cache restore/save to the right place for s2n tests * remove github.ref from cache keys, try to fix s2n cache permissions * give read permissions to newly created s2n caches * a different strategy for getting permissions for s2n solver cache * add `-p` to mkdir in s2n solver caching * fix typo preventing s2n solver caches from getting restored on CI * set solver cache timeout to 2s, add print_solver_cache_stats to s2n tests * change debugging method for solver caching on CI * remove timeout in solver caching for debugging purposes * add --clean-solver-cache CLI opt, clean up CI debugging * update manual with --clean-solver-cache * use RME-specific hash for solver versioning * add docs to CACHE_VERSION env vars, add CABAL_ to original for clarity * add "mismatched_versions" to "clean_solver_cache" command name * rename cleanSolverCache, cleanCacheOpt to mention mismatched versions
- Loading branch information
Showing
16 changed files
with
132 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.