Repository navigation
Conversation
…moke test The packaging test installed the built wheel with `uv run --with`, which resolves the newest releases instead of uv.lock. Setup-uv's cache is keyed on the lockfile with no fallback, so after a lockfile change Python 3.15 compiled pydantic-core, regex, zstandard and others inside that test (about 85s). Install the wheel into a fresh venv constrained to `uv export --locked`, and cache the uv directory together with the venv under one key that falls back to the latest entry for the same Python version. Prune the uv cache with `--ci` so only locally built wheels are kept.
Member
Author
|
Folded into #39. |
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.








Problem
After #38, Python 3.15 CI still spent about 85 s in one test,
test_packaging.py::test_wheel_contains_py_typed:uv run --isolated --no-project --with <wheel>. That resolves the newest dependency releases and ignoresuv.lock.uv.lockwith no fallback. After any lockfile change, uv's cache was empty, so the test compiled pydantic-core, regex, zstandard, pyyaml and uuid-utils from source. 3.15 has no wheels for them yet.Fix
uv export --locked), create a fresh venv, and install the wheel with--constraint. The base-install checks stay the same:py.typedis present, and theredactionextra isn't installed. The test is now deterministic too.actions/cacheentry now holds.venv,.mypy_cacheand the uv cache, keyed per Python version and lockfile, withrestore-keysfalling back to the latest entry.uv cache prune --ciruns at the end, so the cache keeps locally built wheels and drops re-downloadable ones.uv python installstep from ci: reuse the previous venv when the lockfile changes #38 still provides the interpreter.Validation
task format check test: 154 passed.-deps-cache. After that, any lockfile change (e.g. release: prepare 0.5.0 and keep Python 3.15 CI fast #39, or the next Dependabot PR) should keep the 3.15 Tests step at about 10 s.🤖 Generated with Claude Code