CI: cache the Julia depot - #149
Merged
Merged
Conversation
The artifacts cache never hit: XML.jl has no artifact, so the directory it keyed on never existed and nothing was saved. julia-actions/cache restores and saves the whole depot, registries, packages and compiled code included, one key per job and matrix cell, and deletes the previous cache of that key. Downstream, which installs two dependents per job, gets the same step. Assisted-by: Claude (Anthropic)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
[julia-buildpkg]notice on every job says it: no depot cache is restored. The workflow's only Julia cache keyed on~/.julia/artifacts, a directory this package never creates, so it never hit and never saved.julia-actions/cache@v3replaces it in both CI jobs and is added to Downstream: registries, packages and compiled code are restored per job and matrix cell, and the previous cache of the key is deleted, which needsactions: writeon the token.On the last run of
main, the work this can save per job is the test-dependency and coverage-tool precompilation plus buildpkg: about 15 s on Linux and 40 s on the Intel macOS runner. Downstream installs XLSX and SatelliteToolboxOrbitDataMessages with their dependencies on every run and should gain more.