Skip to content

feat!: the flagd scenarios as Provider TCK extensions, replacing gherkin/ - #445

Merged
aepfli merged 12 commits into
mainfrom
feat/tck-extensions
Dec 1, 2026
Merged

aepfli merged 12 commits into
mainfrom
feat/tck-extensions

Conversation

@aepfli

@aepfli aepfli commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Adds tck-extensions/: the gherkin/ 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 removes gherkin/, which makes this 4.0.0.

The first consumer is Java: java-sdk-contrib#1951 will read these through its test-harness submodule and drop its legacy e2e suites. Its CI run is the verification for these files; npm run gherkin-lint passes locally.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 999ad956-5b5a-4acb-a835-74a9481647be
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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
aepfli marked this pull request as ready for review November 4, 2026 13:20
@aepfli
aepfli requested a review from a team as a code owner November 4, 2026 13:20
@aepfli aepfli changed the title feat: the flagd scenarios as Provider TCK extensions feat!: the flagd scenarios as Provider TCK extensions, replacing gherkin/ Nov 16, 2026
@aepfli
aepfli force-pushed the feat/tck-extensions branch from 4d12d00 to a356f85 Compare November 30, 2026 20:43
aepfli added 10 commits December 1, 2026 09:52
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]>
Brings in what main added to gherkin/ since this branch was cut: the
@resolve scenarios (#448, #457), the single-argument if (#453), the
int64/uint64 fractional float rows (#456) and the unchanged-flag change
event (#455).

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
aepfli force-pushed the feat/tck-extensions branch from a356f85 to 4466de1 Compare December 1, 2026 08:53
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]>
@aepfli
aepfli merged commit 8996bc7 into main Dec 1, 2026
4 checks passed
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.

1 participant