Repository navigation
Commit 34aa7f3
committed
test(ofrep): keep the conformance suite out of the default build, and say so
Same change as the flagd adoption's, for the same reason: the TCK suite is
excluded from `poe test` and `poe cov`, gets a `poe test-tck` of its own, and
the README records the policy and the tally -- 2 failed, 37 passed, 16 skipped,
1 xfailed, where both failures are canonical flags flagd-testbed v3.8.0 does
not seed and the xfail is the one genuine provider gap. It had been running in
the default build, so this branch's build was red too.
SettledControl also needed correcting, and the correction is a reversal of its
own premise. It claimed `POST /start` "is not specified to return only once
that state is being served". It is, and it already was at the pin this branch
carried: control-api.yaml says "MUST NOT return until the seeded flag state is
actually being served", and names this very case -- "the reference
implementation exhibits this: its /start returns roughly 40ms before flagd's
file sources reach the flag store". So this is not a gap in the contract that
the adoption fills in; it is a backend that breaks the contract, and
flagd-testbed#394 is open and unmerged.
That changes what the file is, for the better. Appendix F now states that a
suite must not paper over such a backend from the shared harness -- a fixed
delay there "buys silence, not correctness" and every future adopter inherits
it -- and that the wait belongs in the adoption, "set explicitly and citing the
defect, so that it reads as a named workaround for a specific backend and
disappears when the backend is fixed". SettledControl is exactly that, so it
now says so instead of arguing for itself.
It also forwards `control_api` from the control it delegates to, which the
base's now-required protocol member makes necessary and which is the honest
answer: the normative control path is still the HTTP control API, and this adds
a readiness probe over the provider's own public endpoint rather than replacing
anything.
Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>1 parent 9574a86 commit 34aa7f3
4 files changed
Lines changed: 90 additions & 24 deletions
File tree
- providers/openfeature-provider-ofrep
- tests/tck
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
26 | 58 | | |
27 | 59 | | |
28 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
| |||
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
31 | 44 | | |
32 | 45 | | |
33 | 46 | | |
| |||
48 | 61 | | |
49 | 62 | | |
50 | 63 | | |
51 | | - | |
| 64 | + | |
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
| |||
87 | 100 | | |
88 | 101 | | |
89 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
90 | 114 | | |
91 | 115 | | |
92 | 116 | | |
| |||
0 commit comments