fix(ci): install from uv.lock via uv sync to stop cold-cache e2e timeouts#137
Merged
Conversation
…outs The install step used `uv pip install -e .`, which ignores the tracked `uv.lock` and re-resolves the full dependency graph on every run. On the warm CI cache this is fast (~80s), but the path-filtered/scheduled e2e jobs run rarely, so their uv cache is usually evicted (GitHub drops caches after 7 days). On that cold cache, resolution alone took ~6m (probing sdist metadata and backtracking), and the `news` job's 10-minute timeout cancelled the install before it finished. Switch every job to `uv sync --frozen` (CI adds `--extra dev`), which reads the exact pins from `uv.lock` and skips resolution entirely, and key the setup-uv cache on `uv.lock` instead of `pyproject.toml`. Cold-cache installs now only download the locked wheels, landing well under the job timeouts. Verification: `bash scripts/verify.sh` (405 passed, 85.66% coverage); `uv sync --dry-run` and `uv sync --dry-run --extra dev` both resolve against the lockfile locally. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
The dependency-install step used
uv pip install -e ., which ignores the trackeduv.lockand re-resolves the whole dependency graph on every run. On the warmci.ymlcache this is fast (~80s), but the path-filtered/schedulede2e.ymljobs run rarely, so their uv cache is usually evicted (GitHub drops caches after 7 days of no access). On that cold cache, resolution alone took ~6m — probing sdist metadata and backtracking across the 200+ package tree — and thenewsjob's 10-minute timeout cancelled the install before it finished, failing e2e on otherwise-green PRs (for example the run on #124).This switches every job to
uv sync --frozen(CI adds--extra dev), which reads the exact pins fromuv.lockand skips resolution entirely, and keys thesetup-uvcache onuv.lockinstead ofpyproject.tomlso the cache invalidates on the resolved set rather than the source manifest. Cold-cache installs now only download the locked wheels, landing well under the job timeouts; warm CI installs also drop the redundant re-resolution.No smoke-test behavior, network dependency, or public API changes — this is install mechanics only.
Related Issue
No tracked issue; the failing e2e install surfaced while validating #124. Root cause and fix are described above.
Verification
bash scripts/verify.sh— 405 passed, 85.66% coverage, verify loop passed.uv sync --dry-runanduv sync --dry-run --extra devboth resolve against the committeduv.locklocally, confirming the runtime and dev sets and thedevextra.Checklist
type(scope): summary.bash scripts/verify.shpasses.