Repository navigation
Conversation
b00e5e8 to
780a670
Compare
780a670 to
313940f
Compare
313940f to
0234191
Compare
0234191 to
0cac460
Compare
0cac460 to
4edb9e6
Compare
4edb9e6 to
b8754e5
Compare
| required: true | ||
| type: string | ||
|
|
||
| permissions: {} |
There was a problem hiding this comment.
[P2] Retain checkout permissions in the extracted workflow
The former test-integration.yml grants contents: read, but this workflow removes it without a job-level override. Consequently, actions/checkout cannot fetch a private repository. CI explicitly supports pull requests in astral-sh/uv-security, where cache-sensitive changes would now fail checkout and block the new required check. Restore contents: read at workflow or job scope.
| [[ "$file" == ".github/workflows/build-docker.yml" || "$file" == ".github/workflows/publish-docker.yml" || "$file" == ".github/workflows/publish-docker-image.yml" ]] && docker_workflow_changed=1 | ||
| [[ "$file" == ".github/workflows/bench.yml" || "$file" == scripts/codspeed-profiles.py* ]] && bench_workflow_changed=1 | ||
| [[ "$file" == ".github/workflows/test-integration.yml" || "$file" =~ ^test/integration/ || "$file" == "scripts/check_registry.py" || "$file" == "scripts/check_cache_compat.py" || "$file" == "scripts/registries-test.py" ]] && integration_changed=1 | ||
| [[ "$file" =~ ^crates/(uv-cache|uv-cache-info|uv-cache-key|uv-client|uv-distribution|uv-distribution-types|uv-python)/ || "$file" == ".github/workflows/test-cache.yml" || "$file" == "scripts/check_cache_compat.py" ]] && cache_compatibility_changed=1 |
There was a problem hiding this comment.
[P2] Match the current Python cache-owning crates
crates/uv-python no longer exists at this revision. Its interpreter cache implementation now lives in crates/uv-python-interpreter/src/interpreter.rs, which serializes CachedByTimestamp<InterpreterInfo> into CacheBucket::Interpreter. A PR changing only that implementation leaves test-cache false unless an explicit label enables it. Replace the obsolete alternative with the relevant split crates, including uv-python-interpreter.
| record = "".join(f"{path},,\n" for path in files) | ||
| files[f"{dist_info}/RECORD"] = f"{record}{dist_info}/RECORD,,\n" | ||
|
|
||
| with ZipFile(wheel, "w") as archive: | ||
| for path, contents in files.items(): | ||
| archive.writestr(path, contents) |
There was a problem hiding this comment.
[P3] Reuse the existing minimal wheel fixture
test/links/ok-1.0.0-py3-none-any.whl already provides a dependency-free local wheel and is used by the path-install tests. This scenario needs no custom wheel contents, so hand-writing its metadata and RECORD adds unrelated fixture maintenance and relies on tolerance for omitted RECORD hashes. Resolve the existing fixture from __file__ and install it with installed_name="ok".
| [[ "$file" == ".github/workflows/build-docker.yml" || "$file" == ".github/workflows/publish-docker.yml" || "$file" == ".github/workflows/publish-docker-image.yml" ]] && docker_workflow_changed=1 | ||
| [[ "$file" == ".github/workflows/bench.yml" || "$file" == scripts/codspeed-profiles.py* ]] && bench_workflow_changed=1 | ||
| [[ "$file" == ".github/workflows/test-integration.yml" || "$file" =~ ^test/integration/ || "$file" == "scripts/check_registry.py" || "$file" == "scripts/check_cache_compat.py" || "$file" == "scripts/registries-test.py" ]] && integration_changed=1 | ||
| [[ "$file" =~ ^crates/(uv-cache|uv-cache-info|uv-cache-key|uv-client|uv-distribution|uv-distribution-types|uv-python-(discovery|interpreter|managed|types))/ || "$file" == ".github/workflows/test-cache.yml" || "$file" == "scripts/check_cache_compat.py" ]] && cache_compatibility_changed=1 |
There was a problem hiding this comment.
[P2] Include serialized metadata owners in the cache filter
For an unlabeled PR changing only crates/uv-pypi-types/src/metadata/metadata_resolver.rs or crates/uv-distribution-filename/src/wheel.rs, the planner produces test_cache=false, confirmed by running its decision block. These files define ResolutionMetadata, serialized into wheel/source metadata caches, and WheelFilename, serialized inside Archive. Cache-format changes can therefore bypass the new required compatibility check. Include uv-pypi-types and uv-distribution-filename in the cache-sensitive paths so the guard covers the persisted types as well as their writers.
The existing cache compatibility jobs only run with the broader integration suite, so the cache-format change in astral-sh#20443 merged without running them. Their source-build scenario also reused an installed package without forcing a build and did not check whether an older release could consume a newly cached local wheel.
Run Linux and macOS cache compatibility checks independently and require them for cache-sensitive changes. Exercise locally cached wheels and actual source builds in both version directions while keeping unrelated changes out of the full integration suite.