Skip to content

Release equivalence slice: drop test_preset_loader.py, guard the slice against denied presets (#2749) - #2750

Merged
fdaviddpt merged 1 commit into
masterfrom
fix/release-equiv-slice
Oct 5, 2026
Merged

fdaviddpt merged 1 commit into
masterfrom
fix/release-equiv-slice

Conversation

@fdaviddpt

Copy link
Copy Markdown

Closes #2749

What

The v0.66.0 tag (80d7343) failed verify in release-branch.yml: the step that proves the stripped tree behaves like the source runs tests/test_preset_loader.py, which loads devto, bluesky and hashnode, denied from the directory build by #2734. 9 FileNotFoundError, publish skipped, nothing published (release still v0.65.1).

  • tests/test_preset_loader.py leaves the slice. It pins test-module sys.path isolation, not runtime behaviour of the stripped tree; it still runs in the normal suite.
  • tests/test_release_equiv_slice_2749.py reads the slice out of release-branch.yml and the dropped presets out of release-branch.json, and fails on any overlap. Red first ({'tests/test_preset_loader.py': ['bluesky', 'devto', 'hashnode']}), with a positive control on that file. It runs on every PR, which is the point: the slice itself only runs on a tag (release-branch.yml checks the directory tree only on a v* tag: a PR that breaks it is found at release #2743).

Verified

The slice, reproduced locally exactly as the workflow runs it (built tree from 80d7343, tests/ copied in, -o addopts="", same two deselects): before, 9 failed, 185 passed, the same 9 as CI; after, 184 passed.

After merge

No retag. Dispatch the workflow from master with ref=v0.66.0: master's workflow file and tests, the tree built from the tag.

🤖 Generated with Claude Code

[AI-generated]

v0.66.0's verify failed on tests/test_preset_loader.py (9
FileNotFoundError: devto, bluesky, hashnode, denied by #2734); nothing
was published. The file leaves the slice; a new test reads the slice
from release-branch.yml and the dropped presets from release-branch.json
and fails on any overlap (red first, on that file). Slice re-run locally
inside the built tree: 184 passed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@fdaviddpt
fdaviddpt merged commit d2239c3 into master Oct 5, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

release-branch.yml verify fails on v0.66.0: the equivalence slice runs test_preset_loader.py against a tree without devto/bluesky/hashnode

1 participant