Repository navigation
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 41 minutes. View limit details
|
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
8 times, most recently
from
September 14, 2026 09:44
4ded5e1 to
894a27a
Compare
aepfli
force-pushed
the
feat/provider-tck
branch
from
September 14, 2026 14:00
ccf78a3 to
b9f5150
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
2 times, most recently
from
September 15, 2026 20:34
306466d to
d44f20f
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
from
September 16, 2026 07:46
d44f20f to
c00a3b8
Compare
aepfli
force-pushed
the
feat/provider-tck
branch
from
September 16, 2026 19:49
3e0553e to
92fefde
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
2 times, most recently
from
September 21, 2026 11:00
5302fdc to
e2baaf6
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
2 times, most recently
from
October 2, 2026 08:57
f91d8eb to
9295835
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
from
October 8, 2026 08:19
42fc7cf to
7fbd3de
Compare
aepfli
force-pushed
the
feat/provider-tck
branch
from
October 9, 2026 07:38
bb4eb19 to
4020dc9
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
from
October 9, 2026 07:38
7fbd3de to
4940ac4
Compare
aepfli
force-pushed
the
feat/provider-tck
branch
from
October 14, 2026 13:23
4020dc9 to
2f23e29
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
from
October 14, 2026 13:23
4940ac4 to
fa20929
Compare
toddbaert
pushed a commit
to open-feature/spec
that referenced
this pull request
Oct 14, 2026
> **Part of [#417](#417 This PR is the **assets** — the files four conformance implementations execute. It stacks on [#440](#440), which configures the releases that give these assets a tag. The normative description of them, Appendix F, is [#439](#439), stacked on this. [#425](#425) adds the machine-readable report. > > This PR previously carried the appendix too. It was split so the assets can land while the prose is still being reviewed. ## What The artifacts a provider conformance suite runs against: | path | what it is | |---|---| | `assets/provider-tck/gherkin/` | six feature files — evaluation, errors, events, lifecycle, reason, metadata | | `assets/provider-tck/flags/canonical-flags.json` | the flag set every scenario assumes | | `assets/provider-tck/openapi/control-api.yaml` | the HTTP surface a backend under test must expose | | `assets/provider-tck/go.mod`, `embed.go` | a nested Go module exposing the artifacts as an `embed.FS` | | `release-please-config.json`, `.release-please-manifest.json` | registers the assets as a releasable component; the general setup is #440 | Marked **experimental**: the scenario set is a representative subset, and the capability vocabulary may still change. ## Why this is split out Four language implementations already run these files, and all four are currently pinned to an **unmerged branch tip**. Every rebase here invalidates them — it has happened three times in two weeks. Nothing about those pins becomes real until the assets are on `main` with a tag, so landing the executable half first is worth more than landing it together with prose that will take longer to review. Appendix F is the same work, reviewed on its own terms. ## Why a Go module is in here A Go module is distributed as a zip of the VCS tree, in which a git submodule is only a gitlink and its files are absent. The other three languages build from a working tree and keep using the submodule, but a Go suite would have to vendor a copy of every artifact and police it against drift. `embed.go` removes the copy: a consumer pins a revision, the checksum database makes it immutable, and the embedded bytes are the same bytes every other language reads out of the submodule. `go.mod` and `embed.go` are inert for every non-Go consumer. Precedent: `open-feature/flagd-schemas`. The release config tags the assets as their own component, `specification/assets/provider-tck/vX.Y.Z` — the shape `go get` needs. Without it a Go consumer can only name a pseudo-version. ## Releasing the assets The general release-please setup is [#440](#440), which this stacks on. What this PR adds is the part that describes *these* assets: a second package, so they are tagged `specification/assets/provider-tck/vX.Y.Z`. That tag shape is what `go get` needs. Without it a Go consumer can only name a pseudo-version, which is what the four conformance implementations have had to do while this branch was unmerged, and it has cost several rounds of re-pinning. The specification package sets `exclude-paths` for this directory, so an asset-only change no longer cuts a specification release, and `separate-pull-requests` keeps the two from sharing one release pull request. ## The capability vocabulary lives in the README, for now A scenario exercising an optional part of the contract carries a tag; a provider declares what it supports, and a scenario gated on an undeclared tag is reported **skipped, with the reason** — never as passed. A suite that quietly goes green on scenarios it did not run is worse than no suite at all. That rule and the tag table are in `assets/provider-tck/README.md` so the tags in the feature files are not left undefined while the appendix is in review. #439 moves them into the appendix and leaves a pointer behind, so they end up with one home rather than two that can disagree. Worth stating plainly: **withholding a tag is not an admission of a defect.** `@numeric-coercion` borrows its rule from flagd's coercion ADR, and `@string-typing` / `@fully-typed-values` sit on a question the specification does not answer at all — [#430](#430) and [#433](#433). ## Decisions worth reviewing - **`assets/provider-tck/` rather than beside the SDK Gherkin**, because `assets/gherkin/evaluation.feature` already exists and tests an SDK, not a provider. This answers #417's Q1 — the subdirectory is forced rather than chosen. - **`.gitattributes` normalises these to LF.** Four languages consume them byte for byte and copy them verbatim into published artifacts, so a Windows checkout must not package differently from a Linux one. - **`missing-flag` must not exist** in the flag set — its absence is what the `FLAG_NOT_FOUND` scenario tests. The other four load-bearing properties of the flag set are in the README; each one, if seeded wrong, turns a scenario green or red for the wrong reason in every language at once. - **No container restarts.** Outages are produced through the control API, because orchestrators reassign host ports on restart and every provider pointed at the old one then fails looking flaky. ## Implementations All four execute exactly these files, against flagd (both resolvers), OFREP and Flagsmith: | | suite | flagd | OFREP | Flagsmith | |---|---|---|---|---| | Java | [#1830](open-feature/java-sdk-contrib#1830) | [#1847](open-feature/java-sdk-contrib#1847) | [#1840](open-feature/java-sdk-contrib#1840) | [#1849](open-feature/java-sdk-contrib#1849) | | Go | [#940](open-feature/go-sdk-contrib#940) | [#941](open-feature/go-sdk-contrib#941) | [#942](open-feature/go-sdk-contrib#942) | [#959](open-feature/go-sdk-contrib#959) | | JavaScript | [#1606](open-feature/js-sdk-contrib#1606) | [#1608](open-feature/js-sdk-contrib#1608) | [#1612](open-feature/js-sdk-contrib#1612) | [#1623](open-feature/js-sdk-contrib#1623) | | Python | [#409](open-feature/python-sdk-contrib#409) | [#411](open-feature/python-sdk-contrib#411) | [#414](open-feature/python-sdk-contrib#414) | — | ## What running them has found - **flagd silently narrows a float flag to an integer**, Go and Java, both resolvers, no error code — [flagd#1996](open-feature/flagd#1996) - **flagd reported ready before flags were evaluable**, on 100% of starts — [flagd#2047](open-feature/flagd#2047), fixed in flagd v0.17.0 - **The Java SDK's `MultiProvider` swallows child provider events** — [java-sdk#1882](open-feature/java-sdk#1882) - **The Python flagd provider widens a boolean to a float** — [python-sdk-contrib#417](open-feature/python-sdk-contrib#417) - **The JavaScript Flagsmith provider stringifies unconditionally** where its other paths correctly report a mismatch — visible only because three languages ran identical scenarios against one backend - two specification gaps, raised rather than decided here: [#430](#430), [#433](#433) --------- Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
aepfli
force-pushed
the
fix/tck-review-followup
branch
from
October 20, 2026 05:30
a3069ba to
1942557
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
from
October 20, 2026 05:31
572bd66 to
3e0e06f
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
2 times, most recently
from
October 20, 2026 06:27
bad0dc8 to
f5b005f
Compare
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
from
October 20, 2026 06:29
f5b005f to
17b9712
Compare
Experimental adoption. 52 scenarios: 20 pass, 12 fail, 20 skipped. Eight of the twelve failures are 'expected STATIC but was null' -- this provider never populates the resolution reason. The values are all correct; only the reason is missing. 2.2.5 makes it a SHOULD, so null is arguably permitted, but the Go and Python Flagsmith providers both populate it against the identical backend. Two more are float resolution. Flagsmith stores floats as strings, because feature_state_value is natively boolean, integer or string only. Go's provider parses the string back; this one type-checks and falls back to the code default, so GetFloatValue never works against Flagsmith. The last two are shared with every other language: float-flag and object-flag requested as a String succeed, because on this backend both really are strings. @large-integers is withheld deliberately: Java's accessor is a 32-bit Integer, so 2^53-1 cannot be asked for. Same reason Java withholds it for flagd, and it accounts for the extra skip against Go's 19. The Jackson pin is a workaround for a TCK-introduced conflict, not a provider defect: provider-tck exports jackson-databind 2.22.1 while flagsmith-java-client pins jackson-annotations 2.15.2, and the client's ObjectMapper then dies on JsonSerializeAs. Verified by removing the TCK dependency, after which the provider's own 35 tests pass. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
Flagsmith's native model is `enabled` plus a value, so the canonical set's four disabled-* flags map straight onto it. The testbed grew the flags in the same pass. 56 scenarios: 24 pass, 12 fail, 20 skip. The four new scenarios pass; the twelve failures are unchanged. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
The tool moved from tools/provider-tck to tools/tck and its package from dev.openfeature.contrib.tools.providertck to dev.openfeature.contrib.tools.tck. Dependency and imports follow. The explicit testcontainers dependency is now load-bearing rather than redundant: the TCK made its own provided and optional, so an adopter declares it. The Jackson pin stays, and was re-tested rather than assumed -- removing it still fails with ClassNotFoundException on JsonSerializeAs, so the TCK still exports databind 2.22.1 against the client's annotations 2.15.2. The comment is corrected: it is compile scope and has to be, because the provider's own main source imports com.fasterxml.jackson.databind. Saying 'test scope only' was wrong. 56 scenarios: 24 pass, 12 fail, 20 skip. Unchanged by the rebase. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
…onvention The compose file moves to src/test/resources/tck/docker-compose.yaml, the path the TCK javadoc uses, and the image is pinned to 0.1.0 rather than :latest. Pinning is the substantive half. Four language adoptions pull this image, and a mutable tag lets a push to the testbed change four pull requests' results with no diff anywhere to explain it. The tag stays overridable through FLAGSMITH_TESTBED_IMAGE. 56 scenarios: 24 pass, 12 fail, 20 skip. Unchanged. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
The base added @standard-reasons, and it is the capability that turned eight of this provider's twelve failures into skips: it never populates the resolution reason, so every evaluation returns null and not one of the reasons the capability claims is reported. The resolved values were correct throughout -- only the reason was missing. Withheld with a deviation rather than simply skipped, because 2.2.5 makes the reason a SHOULD and null is arguably permitted. What makes it a defect worth recording is that the Go Flagsmith provider reports STATIC, DISABLED and TARGETING_MATCH against the identical backend, so this is a gap rather than a considered choice. The numeric-coercion deviation is now measured rather than predicted: this provider behaves like Python, not like Go. float-flag resolves to the caller default, so reading a float back as a float does not work against Flagsmith at all. 65 scenarios: 31 pass, 5 fail, 29 skip -- up from 24/12/20. The five remaining are two unreadable floats, the shared type-system pair, and object-flag not resolving as a structure. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
The base corrected the worked example that taught withhold-plus-deviate, and this adoption was doing exactly what the old example illustrated. KnownDeviation now states the rule plainly: withholding a capability in order to turn a failing scenario into a skip is the failure mode the field exists to prevent. @standard-reasons moves from withheld to declared. The previous pass withheld it precisely to turn eight failures into skips, which is the move the rule names. This provider does build a resolution and simply leaves the reason out, so running those scenarios establishes something real, and the failures belong in the results with the deviation attached. @numeric-coercion moves the same way, for the same reason: the provider has the accessors and gets the answer wrong rather than declining to answer. Adds an ungated deviation, with a null capability, for the two mandatory rows that fail because Flagsmith stores floats and objects as strings. That form exists for a gap against a scenario belonging to no tag. 65 scenarios: 35 pass, 13 fail, 17 skip -- from 31/5/29. Twelve more scenarios run; four of them pass and eight fail visibly, which is the point of the change. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
Three things were written here that are documented elsewhere: the rule for when a deviation is the right shape (tck.KnownDeviation owns it), the control API's inability to hand connection parameters to a provider, and the backend's design and cross-language results (the testbed's README and FINDINGS own those). Each is now a sentence and a link. What stays is what only this adoption knows: which capabilities this provider has, which it gets wrong, and why. The deviation summaries stay verbose on purpose -- they travel into a conformance report read across languages, so they have to stand alone. No behaviour change; the suite reports the same numbers. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
The deviation said the provider never populates the reason. Reading the source rather than the run output: it returns DISABLED for a disabled flag and leaves the reason null on every successful resolution, so STATIC and TARGETING_MATCH are the ones never reported. DISABLED is one of the reasons the capability claims, and saying otherwise understated what the provider does. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
…eplaces This is the backend the capability was created for, and the run says so rather than the prediction. With the tag declared: two of its four scenarios fail and two pass. float-flag through the String accessor resolves to "0.5" and object-flag to its raw JSON text, while boolean-flag and integer-flag report TYPE_MISMATCH correctly. The split is exactly Flagsmith's type system -- feature_state_value is natively boolean, integer or string, so a boolean really is a boolean and an integer really is an integer, while a float and a structure have no native type and are stored as strings. Asked for as strings, they are returned, and that is the resolved flag value. Withheld rather than declared-and-failing, which is the opposite call from @numeric-coercion beside it. Appendix F's scenario-level rule is subordinate to a prior question -- whether an answer is owed -- and here none is: TYPE_MISMATCH is obliged by no requirement, and the only normative statement about value type is Requirement 1.3.4, a SHOULD on the client. Where the specification permits declining, withholding is the honest report however askable the scenarios are. @numeric-coercion stays declared because flagd's ADR is a rule this suite binds providers to; nothing binds Flagsmith to report a type its backend lacks. The deviation that recorded these same two scenarios goes with it. It existed because they were mandatory and failing, and it called the question open; the pin answers it. Keeping it would assert a defect the specification says is not one, which is precisely what a knownDeviations entry must not do. Measured: 65 scenarios, 33 passing, 21 skipped, 11 failing -- against 35 passing, 17 skipped and 13 failing with the tag declared. The four scenarios now skip naming @string-typing, two of which this provider had been getting right; that cost is recorded in the javadoc rather than hidden, since the tag is the unit of declaration and this backend's typing is not uniform across the four flags. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
The previous pass withheld one tag over all four scenarios and wrote down what that cost: two of the four were skipped despite this provider getting them right, because the tag was the unit of declaration and Flagsmith's typing is not uniform across the four flags. That note ended "revisit if the capability is ever split by flag type". Specification revision bda599f1 split it, citing this measurement, so this is the revisit. feature_state_value is natively boolean, integer or string only. A boolean flag really is a boolean and an integer really is an integer, so @string-typing is declared and its two rows are held to. A float and a structure have no native type and are stored as strings, so asked for as strings they are returned -- there is no mismatch to report, and @fully-typed-values is withheld. Withheld rather than declared-and-failing for the reason the file already argued: TYPE_MISMATCH is obliged by no requirement, so no answer is owed and a deviation would assert a defect that does not exist. Measured, both sides of the re-pin: 65 scenarios either way, 33 passing / 11 failing / 21 skipped before, 35 / 11 / 19 after. The two scenarios that started running are the boolean and integer rows and both pass; the failure count does not move. The skips now attribute as VARIANTS 8, LIFECYCLE 6, FULLY_TYPED_VALUES 2, EVENTS 2 and LARGE_INTEGERS 1 -- where the withheld capability was answering for four scenarios it now answers for exactly the two whose question this backend cannot be asked. Also fixes a contradiction this file carried: the numeric-coercion deviation said the capability was "withheld pending the run" while capabilities() declared it, and its indentation had drifted out of line. The run has since happened, so it now records what was measured -- Java resembles Python rather than Go and does not parse Flagsmith's string-stored float, which fails both lossless coercion scenarios and the untagged float scenario with the caller's default. Declared and left failing, because the provider does attempt the coercion. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
173 lines to 132. The string-typing note argued the case for the capability split across five paragraphs; the split has landed, so one paragraph saying which half this backend answers is enough. The deviation summaries lose their narrative and keep their claim. No behaviour change. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
Cut the cross-language comparison the testbed repository already owns, the 2.2.4 SHOULD rationale, and the stale "predictions, to be corrected by the run" framing. Kept why each capability is declared or withheld -- including the string-typing/fully-typed split this backend motivated -- and both deviation claims, among them that Java does not parse a float out of Flagsmith's string-stored value. Also joins one String.format call that spotless already wanted joined before this change; it is the only non-comment line here. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
Move the suite into a tck package so the root pom excludes it from the default build and its tck profile runs it, declare tck.testFailureIgnore, and document the run command and the CI job. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
aepfli
force-pushed
the
feat/provider-tck-flagsmith
branch
from
October 20, 2026 06:42
17b9712 to
82ed024
Compare
This was referenced Oct 20, 2026
…port Withhold STANDARD_REASONS, NUMERIC_COERCION and OBJECT instead of declaring them and failing: all three are optional, and this provider does not implement them. The one remaining gap, Float resolution of a string-stored float, is against untagged scenarios and stays a known deviation. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
Flagsmith has no float type, so a float flag arrives as its string form
("0.5") and the type check rejected it, leaving getDoubleDetails on the
caller's default. Parse a String value when a Double is requested; a
non-numeric string still reports TYPE_MISMATCH.
This clears the two untagged float scenarios, so the known deviation in
the conformance test is removed.
Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
aepfli
marked this pull request as ready for review
November 2, 2026 19:07
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.
Runs the OpenFeature Provider Conformance Suite against the Flagsmith Java provider.
Builds on #1945 (merged), the root
tckprofile. Companion to go-sdk-contrib#959 and js-sdk-contrib#1623 — same container, same scenarios.What the suite found, and what this PR does about it
Floats (fixed here). Flagsmith has no float type, so a float flag is stored as its string form. The provider type-checked that string and fell back to the caller's default, so
getDoubleDetailsnever worked.convertValuenow parses aStringwhen a Double is requested; a non-numeric string still reportsTYPE_MISMATCH. This clears the two untagged float scenarios, so there is noKnownDeviationleft. Go's provider does the same parse. Two unit tests cover it.Withheld, not fixed here. These are optional capabilities the provider does not implement, so they are not declared:
@standard-reasons: the provider reportsDISABLEDand otherwise no reason. The Java client (7.4.3 and 8.1.1) exposes no per-flag reason, soTARGETING_MATCHvsDEFAULTcannot be told apart correctly. Waiting on Flagsmith exposing it.@numeric-coercion,@object: not implemented (no Integer/Float coercion; a JSON string is not parsed into a structure).@variants: Flagsmith has no variant concept for a plain feature. Permitted, no deviation.@large-integers: Java's accessor is a 32-bitInteger; the base refuses it.@fully-typed-values: withheld;@string-typingis declared. Floats and structures are stored as text on this backend.Declared:
@targeting,@disabled-flags,@string-typing.A finding about the TCK, not the provider
tools/tckexportsjackson-databind 2.22.1, whileflagsmith-java-client7.4.3 pinsjackson-annotationsandjackson-coreat2.15.2. Maven's nearest-wins assembles databind 2.22 against annotations 2.15, and the client'sObjectMapperfails withClassNotFoundException: com.fasterxml.jackson.annotation.JsonSerializeAs. With the TCK dependency removed the provider's own tests pass; with it added, 22 error. The pin in the pom is the workaround; it wants a fix upstream (shade Jackson, or stop exporting a hard databind version).Running it
mvn -Ptck -pl providers/flagsmith -am testThe suite lives in the
flagsmith/tckpackage, so the roottckprofile runs it and every other build excludes it. CI runs it in theProvider TCKjob;tck.testFailureIgnorestaysfalse.The backend
aepfli/flagsmith-tck-testbed
0.1.0, pinned rather than:latestso a push cannot change four PRs' results with no diff to explain it.Why this is a draft