Repository navigation
feat!: the flagd scenarios as Provider TCK extensions, replacing gherkin/ - #445
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
aepfli
added a commit
to open-feature/java-sdk-contrib
that referenced
this pull request
Nov 2, 2026
The extension scenarios now live in flagd-testbed's tck-extensions/, so every flagd provider adopting the TCK runs the same files. The test-harness submodule is pinned to open-feature/flagd-testbed#445 until it is released, and the module puts tck-extensions/ on the test classpath as extensions/, where the TCK looks; the local copies go. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
added a commit
to open-feature/go-sdk-contrib
that referenced
this pull request
Nov 2, 2026
…lvers Each suite now also runs the tck-extensions module from flagd-testbed (pinned to a pseudo-version of open-feature/flagd-testbed#445), selecting the scenarios tagged with its resolver and dropping @fractional-v2. The flagd steps set provider options per scenario through the step context, reusing the e2e framework's option mapping, and route through the testbed's envoy sidecar, now part of the shared Compose file. The shared stack moves to flagd-testbed v3.11.0, and the in-process provider gets a 15s init deadline: syncing the larger ruleset missed 1s intermittently. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
added a commit
to open-feature/python-sdk-contrib
that referenced
this pull request
Nov 3, 2026
…ites flagd-testbed now carries its scenarios as Provider TCK extensions in tck-extensions/ (open-feature/flagd-testbed#445), as Java and Go read them. The test-harness submodule moves to that commit, and both resolvers run the extensions beside the canonical scenarios, 364 per resolver. The TCK takes extension scenarios from an extensions/ directory beside the test module, so tests/tck/conftest.py copies the feature files there, as Java's build does. Each resolver includes its own tag and excludes @targetURI, which this provider has no option for, and @fractional-v2. The stack is the testbed's own Compose file, for the envoy sidecar the @forbidden scenario connects through. tests/tck/steps.py holds the flagd steps: provider options, applied over the suite's defaults when the TCK builds the provider, and envoy's forbidden listener. It also defines three generic steps the extensions use that the TCK does not have yet: a typed context key, a nested context property and the fatal client state. tests/e2e is deleted; the extensions replace it. config.feature needs no backend and runs in the default build from tests/test_config_feature.py. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
added a commit
to open-feature/python-sdk-contrib
that referenced
this pull request
Nov 3, 2026
…ites flagd-testbed now carries its scenarios as Provider TCK extensions in tck-extensions/ (open-feature/flagd-testbed#445), as Java and Go read them. The test-harness submodule moves to that commit, and both resolvers run the extensions beside the canonical scenarios, 364 per resolver. The TCK takes extension scenarios from an extensions/ directory beside the test module, so tests/tck/conftest.py copies the feature files there, as Java's build does. Each resolver includes its own tag and excludes @targetURI, which this provider has no option for, and @fractional-v2. The stack is the testbed's own Compose file, for the envoy sidecar the @forbidden scenario connects through. tests/tck/steps.py holds the flagd steps: provider options, applied over the suite's defaults when the TCK builds the provider, and envoy's forbidden listener. It also defines three generic steps the extensions use that the TCK does not have yet: a typed context key, a nested context property and the fatal client state. tests/e2e is deleted; the extensions replace it. config.feature needs no backend and runs in the default build from tests/test_config_feature.py. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
added a commit
to open-feature/python-sdk-contrib
that referenced
this pull request
Nov 3, 2026
…ites flagd-testbed now carries its scenarios as Provider TCK extensions in tck-extensions/ (open-feature/flagd-testbed#445), as Java and Go read them. The test-harness submodule moves to that commit, and both resolvers run the extensions beside the canonical scenarios, 364 per resolver. The TCK takes extension scenarios from an extensions/ directory beside the test module, so tests/tck/conftest.py copies the feature files there, as Java's build does. Each resolver includes its own tag and excludes @targetURI, which this provider has no option for, and @fractional-v2. The stack is the testbed's own Compose file, for the envoy sidecar the @forbidden scenario connects through. tests/tck/steps.py holds the flagd steps: provider options, applied over the suite's defaults when the TCK builds the provider, and envoy's forbidden listener. It also defines three generic steps the extensions use that the TCK does not have yet: a typed context key, a nested context property and the fatal client state. tests/e2e is deleted; the extensions replace it. config.feature needs no backend and runs in the default build from tests/test_config_feature.py. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
added a commit
to open-feature/python-sdk-contrib
that referenced
this pull request
Nov 3, 2026
…ites flagd-testbed now carries its scenarios as Provider TCK extensions in tck-extensions/ (open-feature/flagd-testbed#445), as Java and Go read them. The test-harness submodule moves to that commit, and both resolvers run the extensions beside the canonical scenarios, 364 per resolver. The TCK takes extension scenarios from an extensions/ directory beside the test module, so tests/tck/conftest.py copies the feature files there, as Java's build does. Each resolver includes its own tag and excludes @targetURI, which this provider has no option for, and @fractional-v2. The stack is the testbed's own Compose file, for the envoy sidecar the @forbidden scenario connects through. tests/tck/steps.py holds the flagd steps: provider options, applied over the suite's defaults when the TCK builds the provider, and envoy's forbidden listener. It also defines three generic steps the extensions use that the TCK does not have yet: a typed context key, a nested context property and the fatal client state. tests/e2e is deleted; the extensions replace it. config.feature needs no backend and runs in the default build from tests/test_config_feature.py. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
added a commit
to open-feature/go-sdk-contrib
that referenced
this pull request
Nov 3, 2026
…lvers Each suite now also runs the tck-extensions module from flagd-testbed (pinned to a pseudo-version of open-feature/flagd-testbed#445), selecting the scenarios tagged with its resolver and dropping @fractional-v2. The flagd steps set provider options per scenario through the step context, reusing the e2e framework's option mapping, and route through the testbed's envoy sidecar, now part of the shared Compose file. The shared stack moves to flagd-testbed v3.11.0, and the in-process provider gets a 15s init deadline: syncing the larger ruleset missed 1s intermittently. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
added a commit
to open-feature/python-sdk-contrib
that referenced
this pull request
Nov 3, 2026
…ites flagd-testbed now carries its scenarios as Provider TCK extensions in tck-extensions/ (open-feature/flagd-testbed#445), as Java and Go read them. The test-harness submodule moves to that commit, and both resolvers run the extensions beside the canonical scenarios, 364 per resolver. The TCK takes extension scenarios from an extensions/ directory beside the test module, so tests/tck/conftest.py copies the feature files there, as Java's build does. Each resolver includes its own tag and excludes @targetURI, which this provider has no option for, and @fractional-v2. The stack is the testbed's own Compose file, for the envoy sidecar the @forbidden scenario connects through. tests/tck/steps.py holds the flagd steps: provider options, applied over the suite's defaults when the TCK builds the provider, and envoy's forbidden listener. It also defines three generic steps the extensions use that the TCK does not have yet: a typed context key, a nested context property and the fatal client state. tests/e2e is deleted; the extensions replace it. config.feature needs no backend and runs in the default build from tests/test_config_feature.py. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
added a commit
to open-feature/python-sdk-contrib
that referenced
this pull request
Nov 3, 2026
…ites flagd-testbed now carries its scenarios as Provider TCK extensions in tck-extensions/ (open-feature/flagd-testbed#445), as Java and Go read them. The test-harness submodule moves to that commit, and both resolvers run the extensions beside the canonical scenarios, 364 per resolver. The TCK takes extension scenarios from an extensions/ directory beside the test module, so tests/tck/conftest.py copies the feature files there, as Java's build does. Each resolver includes its own tag and excludes @targetURI, which this provider has no option for, and @fractional-v2. The stack is the testbed's own Compose file, for the envoy sidecar the @forbidden scenario connects through. tests/tck/steps.py holds the flagd steps: provider options, applied over the suite's defaults when the TCK builds the provider, and envoy's forbidden listener. It also defines three generic steps the extensions use that the TCK does not have yet: a typed context key, a nested context property and the fatal client state. tests/e2e is deleted; the extensions replace it. config.feature needs no backend and runs in the default build from tests/test_config_feature.py. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
marked this pull request as ready for review
November 4, 2026 13:20
This was referenced Nov 16, 2026
aepfli
force-pushed
the
feat/tck-extensions
branch
from
November 30, 2026 20:43
4d12d00 to
a356f85
Compare
Adds tck-extensions/, the gherkin/ scenarios rewritten in the Provider TCK's step vocabulary, so every flagd provider adopting the TCK runs the same files instead of porting its own copy. Java ports them first, in open-feature/java-sdk-contrib#1951. gherkin/ is unchanged. The scenario-size limits go up by one step: the TCK form sets the reconnect options as explicit steps where gherkin/ folds them into its provider step. Signed-off-by: Simon Schrottner <[email protected]>
A Go module zip carries a submodule only as a gitlink, so a Go flagd adoption cannot read tck-extensions/ the way the other languages do. The directory becomes a module whose FS embeds the feature files, so Go pins a revision in go.mod and reads the same bytes. Signed-off-by: Simon Schrottner <[email protected]>
certPath is relative to the testbed root instead of Java's submodule path, the comments no longer name the Java evaluator, and the cached object scenario asserts with the TCK's object table instead of a quoted JSON argument, which a regex-based runner cannot match. Found by the Go adoption. Signed-off-by: Simon Schrottner <[email protected]>
The events, context-enrichment and sync-payload headers explained their retry timing against Java's defaults and a Java class. State what the scenarios set and why, which holds for every adoption. Found by the Python adoption. Signed-off-by: Simon Schrottner <[email protected]>
Gherkin keeps them as written in a table cell, and the expected buckets hash them that way; a runner that decodes them or doubles the backslash gets other buckets, as pytest-bdd 8.1 did. Signed-off-by: Simon Schrottner <[email protected]>
Signed-off-by: Simon Schrottner <[email protected]>
It was the one gherkin/ feature neither ported nor listed as left out. It holds the flagd option table, so it moves over unchanged. Signed-off-by: Simon Schrottner <[email protected]>
The fixture and the launchpad /change toggle come with #454, which merges before this. Signed-off-by: Simon Schrottner <[email protected]>
BREAKING CHANGE: gherkin/ is removed. flagd providers run tck-extensions/ through the Provider TCK instead. SDKs still on the legacy suite pin a 3.x release, which keeps being cut from the release/v3 branch. Signed-off-by: Simon Schrottner <[email protected]>
aepfli
force-pushed
the
feat/tck-extensions
branch
from
December 1, 2026 08:53
a356f85 to
4466de1
Compare
Every row is in the TCK's errors.feature (the String ones behind @string-typing) and its ERROR reason in reason.feature, so it gets no extension file. Signed-off-by: Simon Schrottner <[email protected]>
gherkin/ checks value and variant on both evaluations for every type; the Object scenario only checked the CACHED reason the second time. Signed-off-by: Simon Schrottner <[email protected]>
This was referenced Dec 1, 2026
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.
Adds
tck-extensions/: thegherkin/scenarios rewritten as extensions for the Provider TCK, so every flagd provider that adopts the TCK runs the same files instead of keeping its own copy. It then removesgherkin/, which makes this 4.0.0.Each file's header names its source feature and the scenarios it leaves out, mostly because the TCK's canonical scenarios already ask them.
Written in the TCK's step vocabulary plus flagd extension glue (provider options, connection control, the
config.featuresteps, andthe flag should not be part of the event payload, which feat: add flag set metadata change event scenarios #454 also introduces). Feature names carry aTCK extension:prefix, because the lint rejects duplicate feature names across the repository.Breaking:
gherkin/is deleted. The image,launchpad/,flags/andevaluator/stay. SDKs still on the legacy suite pin 3.x, which keeps being released fromrelease/v3(ci: release the 3.x line from release/v3 #449), so both branches release: main cuts 4.x and owns:latest. This PR's title carries the!because the squash commit is the title alone.Ports everything
gherkin/holds on main, including what merged after this branch was cut: feat: fractional shorthand with missing targeting key #446, feat: add resolve operator scenarios #448, feat(targeting): add single-clause if scenario #453, feat: add flag set metadata change event scenarios #454, feat: assert unchanged flags are not part of the change event payload #455, feat: add fractional float cases at the int64/uint64 boundaries #456 and feat: null resolve variants, free-form reasons, and forgery scenarios #457.config.featuremoves over unchanged, because it holds the option table. A title check againstgherkin/finds only the two scenariosevaluation.featurelists as not ported.scenario-sizelimits go up by one step (Background 4, Scenario 17). The TCK form sets the reconnect options inrpc-caching.featureas explicit steps, wheregherkin/folds them into its provider step.tck-extensions/is also a Go module,github.com/open-feature/flagd-testbed/tck-extensions, whoseFSembeds the feature files. A Go module zip carries a submodule without its files, so Go can't read them the way the other languages do. Same pattern as the spec'sspecification/assets/provider-tck. Vetted locally; it embeds all 12 files.The first consumer is Java: java-sdk-contrib#1951 will read these through its
test-harnesssubmodule and drop its legacy e2e suites. Its CI run is the verification for these files;npm run gherkin-lintpasses locally.