Repository navigation
fix(flagd): handle sem_ver edge cases (v prefix, partial versions, numeric context, build metadata) - #197
Open
yuminn-k wants to merge 1 commit into
Open
fix(flagd): handle sem_ver edge cases (v prefix, partial versions, numeric context, build metadata)#197yuminn-k wants to merge 1 commit into
yuminn-k wants to merge 1 commit into
Conversation
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 52 minutes. View limit details
|
…meric context, build metadata) Signed-off-by: YuMin Kim <yuminkim.dev@gmail.com>
yuminn-k
force-pushed
the
fix-sem-ver-edge-cases
branch
from
November 19, 2026 09:16
3e0e9a6 to
a4c76c3
Compare
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.
This PR
Makes the
sem_vertargeting operator follow the flagd spec for four edge cases and enables the previously skipped@semver-edge-casesGherkin scenarios.v/Vprefix is accepted (v1.0.0).1and1.0become1.0.0).1.2as a Float).1.0.0+otherequals1.0.0.The parsing lives in one small
parse_versionhelper incrates/flagd-evaluation-engine/src/targeting/semver.rs, and both operands go through it. Thesemver-edge-casesfilter is removed fromcrates/flagd/tests/gherkin_targeting_test.rs.Related Issues
Fixes #170
Notes
Before the change, with the filter removed,
cargo test -p open-feature-flagd --test gherkin_targeting_test --features in-processreported215 scenarios (198 passed, 2 skipped, 15 failed). After the change it reports215 scenarios (213 passed, 2 skipped).cargo test -p flagd-evaluation-enginepasses, including a new unit test forparse_version.How to test