Repository navigation
Sync: Develop to Main - #26
Merged
Merged
Conversation
test-uv installs uv with astral-sh/setup-uv and stores the uv cache in the GitHub Actions cache, keyed on uv.lock. It also gets a 5-minute timeout. test-docker builds the image with docker/build-push-action and stores the layers in the GitHub Actions cache. Compose then starts the loaded image with --no-build, so a tag mismatch fails the job. Both workflows cancel a PR run when a newer push to the same PR starts.
The PR runs showed that neither cache saves time here. uv sync takes about 4 s, and the cold run spent 31 s saving a 318 MB uv cache. The warm test-docker run took 160 s against a 150 s baseline median, because pulling the cached layers and loading the image took as long as building it. Keep the concurrency groups and the test-uv timeout.
Repos made from this template add their own dependencies. In nlp-template, which has torch, the slowest test-uv run took 3.9 min, and a run on a slow apt mirror took 4.2 min. A 5-minute limit would fail those runs, while 12 minutes still stops a hung job.
ci: cancel superseded runs and add a test-uv timeout
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.
WHY
Release the CI speedup merged into
developtomain.WHAT
#25 brings 5 commits to
main. All come from this PR.0befe05ci: cache uv and Docker layers, cancel superseded runs04e22ceci: drop the uv and Docker layer caches69c2146ci: raise the test-uv timeout to 12 minutes0fc9ff8ci: make the concurrency group unique per workflow file6bc0f2bMerge pull request ci: cancel superseded runs and add a test-uv timeout #25 from iamtatsuki05/work/ci-speedup