Skip to content

test: skip compat releases newer than the checkout - #11296

Merged
zhangyue19921010 merged 1 commit into
mainfrom
xuanwo/forward-port-compat-fix
Nov 20, 2026
Merged

zhangyue19921010 merged 1 commit into
mainfrom
xuanwo/forward-port-compat-fix

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 20, 2026

Copy link
Copy Markdown
Member

Problem

recent_major_versions takes 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 sets FLAG_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.toml and 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 as 15.0.0-beta.25 skips stable 15.0.0 until the checkout reaches that release. The snapshot test that copies compat_decorator.py out 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]

## 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.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added A-python Python bindings chore labels Nov 20, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

The checkout-version ceiling addresses release-branch selection while preserving the stable-only compatibility contract. Local version-selection and shared-worker-snapshot tests passed.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 20, 2026

@zhangyue19921010 zhangyue19921010 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@zhangyue19921010
zhangyue19921010 merged commit e7ec46c into main Nov 20, 2026
22 checks passed
@zhangyue19921010
zhangyue19921010 deleted the xuanwo/forward-port-compat-fix branch November 20, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-python Python bindings chore K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants