Skip to content

fix(compatibility): treat from_versions annotations as lower bounds, not upper bounds - #9129

Open
HusseinAdeiza wants to merge 1 commit into
lfdt-ibc:mainfrom
HusseinAdeiza:fix/compat-from-versions-lower-bound
Open

HusseinAdeiza wants to merge 1 commit into
lfdt-ibc:mainfrom
HusseinAdeiza:fix/compat-from-versions-lower-bound

Conversation

@HusseinAdeiza

Copy link
Copy Markdown

Fixes #9118

_test_should_be_run compared each annotated Test:from_versions entry against the target version with the inequality reversed, so each annotation behaved as an upper bound for its release line instead of the documented "supported from this version" lower bound. For TestFeature:from_versions: v8.7.1,v10.0.1:

  • before: v8.7.0 runs, v8.7.2 is skipped (the v10 line likewise)
  • after: v8.7.0 is skipped, v8.7.1 and v8.7.2 run

The generator therefore ran tests against versions that never declared support while skipping later patches that did. Unlisted release lines remain excluded and explicit skip annotations are untouched.

Verification (boundary cases from the issue, run against the script directly):

version expected before after
v8.7.0 skip runs skips
v8.7.1 run runs runs
v8.7.2 run skips runs
v10.0.0 skip runs skips
v10.0.1 run runs runs
v10.0.2 run skips runs
v9.0.0 (unlisted line) skip skips skips

@HusseinAdeiza
HusseinAdeiza requested a review from a team as a code owner October 19, 2026 11:28
@greptile-apps

greptile-apps Bot commented Oct 19, 2026

Copy link
Copy Markdown

This PR does not match any of the 1 configured review trigger rule.

@HusseinAdeiza
HusseinAdeiza force-pushed the fix/compat-from-versions-lower-bound branch from dcf959a to 062ab23 Compare October 24, 2026 23:12
…not upper bounds

`_test_should_be_run` compared the annotated `Test:from_versions` entry against
the target version with the inequality reversed, making each annotation behave
as an upper bound for its release line instead of the documented "supported
from this version" lower bound. For `TestFeature:from_versions: v8.7.1,v10.0.1`:

- before: v8.7.0 runs, v8.7.2 skipped (v10 line likewise)
- after:  v8.7.0 skipped, v8.7.1 and v8.7.2 run

So the generator previously ran tests against release lines/patches that never
declared support while skipping later patches that did.

Comparison per listed line is now `test_semver_version >= annotated_version`;
unlisted lines remain excluded and explicit skip annotations are untouched.

Verified with the eight boundary cases from issue lfdt-ibc#9118 (all pass with the fix;
four fail without it).

Signed-off-by: Hussein Adeiza Yunusa <HusseinAdeiza@users.noreply.github.com>
@HusseinAdeiza
HusseinAdeiza force-pushed the fix/compat-from-versions-lower-bound branch from 062ab23 to b0bf595 Compare November 23, 2026 02:54
@HusseinAdeiza
HusseinAdeiza requested a review from a team as a code owner November 23, 2026 02:54
@HusseinAdeiza

Copy link
Copy Markdown
Author

Rebased onto main. Re-verified the boundary cases from the issue directly against the script: v8.7.0/v10.0.0 skip, v8.7.1/v8.7.2/v10.0.1/v10.0.2 run, unlisted release lines still skip (7/7).

This branch has not been deployed

No deployments
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.

Compatibility from_versions annotations select older patches and skip supported newer patches

1 participant