Repository navigation
test: skip compat releases newer than the checkout - #11296
Merged
Merged
Conversation
## Problem `recent_major_versions` takes the newest stable majors on PyPI regardless of the code under test. On a release branch that soon includes the next major: once 15.0.0 is published, release/v14.0 would parametrize compat tests over 15.0.0, whose BTREE index on a stable-row-id table sets `FLAG_ROW_ADDR_INDICES`, and the 14.0 writer would refuse it exactly as it did with 15.0.0b8. ## Fix Read the checkout's version from `python/Cargo.toml` and skip stable releases newer than it. On main this changes nothing, since main is always the newest version. The snapshot test that copies `compat_decorator.py` out of the tree stubs the source version like it stubs the release lookup. Ported from 9256223 (origin/release/v14.0, #10596), adapted to main's #9856 and #10578 and to snapshot tests that restore the cached release list.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
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
recent_major_versionstakes the newest stable pylance majors on PyPI regardless of the code under test. Once 15.0.0 is published, release/v14.0 would parametrize compat tests over it: its BTREE index on a stable-row-id table setsFLAG_ROW_ADDR_INDICES, which the 14.0 writer refuses exactly as it did with 15.0.0b8.Fix
Read the checkout's version from
python/Cargo.tomland skip stable releases newer than it. On main this changes nothing, since main is always the newest version. Stable-only selection (#10578) is preserved; a checkout at a pre-release such as15.0.0-beta.25skips stable15.0.0until the checkout reaches that release. The snapshot test that copiescompat_decorator.pyout of the tree stubs the source version like it stubs the release lookup, and now restores the cached release list after each test.Forward port of 9256223 from
origin/release/v14.0(#10596), adapted to main's #9856 and #10578.Co-authored-by: Yue Zhang [email protected]