Repository navigation
fix(verify_install): --pre on the TestPyPI path so Check D tests the candidate build - #134
Merged
Merged
Conversation
…candidate
Check D pins only `autolens[optional]==$TARGET_VERSION`. pip honours a
pre-release for an explicitly pinned package, but refuses to consider
pre-releases for its DEPENDENCIES unless --pre is set. So during a rehearsal
only `autolens` came from the candidate build and every intra-family dependency
resolved to the last STABLE PyPI release instead.
That is not a weaker test, it is a test of the wrong artifact: resolution ran
against already-published metadata, which is frozen and cannot contain any
dependency floor the candidate adds. The floors from PyAutoLens#687 were
present and correct in source, yet no rehearsal could ever exercise them — a
fix that only takes effect once published, gated on a check that could only
pass once it had taken effect.
Control test on python3.13 (the interpreter the release job uses; 3.12 is not
affected and masks this), installing autolens[optional]==2026.8.3.1.dev70001:
without --pre: autofit 2026.4.30.582 (April), autogalaxy 2026.8.2.1,
autoconf 2026.7.15.1 -> AttributeError: module 'autofit'
has no attribute 'Latent' (reproduces run 30842349506)
with --pre: autofit + autogalaxy 2026.8.3.1.dev70001, no autoconf
-> import autolens OK
--pre also stops the dead pre-rename `autoconf` package being dragged in by the
ancient autofit.
Scoped to the TestPyPI path only: the default release-gate path against PyPI
stays stable-only, which is what a user actually gets.
Co-Authored-By: Claude Opus 5 <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.
Check D has been failing every rehearsal, and it could not have done otherwise.
The bug
Check D runs
pip install --index-url testpypi --extra-index-url pypi "autolens[optional]==$TARGET_VERSION". A rehearsal$TARGET_VERSIONis a pre-release (2026.8.3.1.devNNNNN). pip honours a pre-release for a package pinned to one explicitly — soautolenscame from the candidate build — but refuses to consider pre-releases for dependencies unless--preis set. Every intra-family dependency therefore resolved to the last stable PyPI release.That is not a weaker test, it is a test of the wrong artifact. Resolution ran against already-published metadata, which is frozen and cannot contain any dependency floor the candidate adds. Concretely, on run 30842349506:
autolens 2026.8.3.1.dev70001pulled stableautogalaxy 2026.8.2.1(published 08-02, before the floors merged), whose bareautofitrequirement let pip backtrack toautofit 2026.4.30.582— April — andimport autolensdied onmodule 'autofit' has no attribute 'Latent'.So the floors added in PyAutoLens#687 were correct and present in source, but no rehearsal could ever exercise them: a fix that only takes effect once published, gated on a check that could only pass once it had taken effect. A genuine chicken-and-egg, not a stale snapshot.
Control test
python3.13 — the interpreter the release job actually uses (setup-python runs 3.11/3.12/3.13, last wins). 3.12 is unaffected and masks this entirely, which is why it needs naming explicitly.
Installing
autolens[optional]==2026.8.3.1.dev70001:import autolens--preno attribute 'Latent'--preThe control reproduces run 30842349506's failure exactly; the patched path clears it.
--prealso stops the dead pre-renameautoconfpackage being dragged in by the ancient autofit.Scope
--preis added toPIP_INDEX_ARGSonly when--testpypiis set, so it applies to rehearsal/candidate validation. The default release-gate path against PyPI stays stable-only — that is what a user actually gets, and check D must keep testing it that way.🤖 Generated with Claude Code