Repository navigation
fix(compatibility): treat from_versions annotations as lower bounds, not upper bounds - #9129
Open
HusseinAdeiza wants to merge 1 commit into
Open
HusseinAdeiza wants to merge 1 commit into
HusseinAdeiza wants to merge 1 commit into
Conversation
|
This PR does not match any of the 1 configured review trigger rule. |
HusseinAdeiza
force-pushed
the
fix/compat-from-versions-lower-bound
branch
from
October 24, 2026 23:12
dcf959a to
062ab23
Compare
…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
force-pushed
the
fix/compat-from-versions-lower-bound
branch
from
November 23, 2026 02:54
062ab23 to
b0bf595
Compare
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
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.
Fixes #9118
_test_should_be_runcompared each annotatedTest:from_versionsentry 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. ForTestFeature:from_versions: v8.7.1,v10.0.1:v8.7.0runs,v8.7.2is skipped (thev10line likewise)v8.7.0is skipped,v8.7.1andv8.7.2runThe 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):