Commit 75589ae
feat: extract flagd evaluator into api, core, and testkit packages
Split the flagd evaluation logic from the provider into three
independent packages under tools/, mirroring the Java SDK contrib
architecture (PRs #1696 and #1742):
- openfeature-flagd-api: Evaluator Protocol defining the contract
for flag evaluation implementations
- openfeature-flagd-core: Reference implementation with FlagdCore
class, targeting engine, and custom operators (fractional, sem_ver,
starts_with, ends_with)
- openfeature-flagd-api-testkit: Compliance test suite bundling
gherkin feature files from the test-harness evaluator directory
The provider's InProcessResolver now delegates to FlagdCore via an
adapter pattern, keeping connector code (FileWatcher, GrpcWatcher)
unchanged. Old provider modules (flags.py, targeting.py, custom_ops.py)
are thin re-exports from the core package for backward compatibility.
Also updates the test-harness submodule from v2.11.1 to v3.5.0.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>1 parent eb28106 commit 75589ae
65 files changed
Lines changed: 3772 additions & 477 deletions
File tree
- providers/openfeature-provider-flagd
- openfeature
- src/openfeature/contrib/provider/flagd/resolvers
- process
- tests
- tools
- openfeature-flagd-api-testkit
- src
- openfeature/contrib/tools/flagd/testkit
- features
- flag_data
- steps
- scripts
- tests
- openfeature-flagd-api
- src
- openfeature/contrib/tools/flagd/api
- scripts
- tests
- openfeature-flagd-core
- src
- openfeature/contrib/tools/flagd/core
- model
- targeting
- scripts
- tests
- e2e
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
Submodule test-harness updated 35 files
- .github/workflows/release-please.yml+16-14
- .release-please-config.json+94
- .release-please-manifest.json+2-2
- CHANGELOG.md+191
- CODEOWNERS+6
- README.md+40
- agents.md+286
- docker-compose.yaml+190
- evaluator/flags/testkit-flags.json+487
- evaluator/gherkin/errors.feature+18
- evaluator/gherkin/evaluation.feature+27
- evaluator/gherkin/evaluator-refs.feature+15
- evaluator/gherkin/fractional.feature+190
- evaluator/gherkin/metadata.feature+30
- evaluator/gherkin/no-default-variant.feature+23
- evaluator/gherkin/semver.feature+45
- evaluator/gherkin/string.feature+18
- evaluator/gherkin/targeting.feature+17
- evaluator/gherkin/zero-values.feature+73
- flagd/Dockerfile+5-2
- flags/custom-ops.json+122
- flags/edge-case-flags.json+40
- gherkin/config.feature+92-36
- gherkin/connection.feature+58-17
- gherkin/evaluation.feature+20-1
- gherkin/metadata.feature+2
- gherkin/targeting.feature+149-4
- launchpad/handlers/http.go+6-84
- launchpad/main.go+2-2
- launchpad/pkg/file.go+160
- launchpad/pkg/filewatcher.go-92
- launchpad/pkg/flagd.go+45-54
- launchpad/pkg/json.go+39-3
- release-please-config.json-65
- version.txt+1-1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
Lines changed: 43 additions & 103 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| 11 | + | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 17 | + | |
| 18 | + | |
29 | 19 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
50 | 61 | | |
51 | 62 | | |
52 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
53 | 67 | | |
54 | 68 | | |
55 | 69 | | |
56 | 70 | | |
57 | | - | |
| 71 | + | |
58 | 72 | | |
59 | 73 | | |
60 | 74 | | |
| |||
73 | 87 | | |
74 | 88 | | |
75 | 89 | | |
76 | | - | |
| 90 | + | |
77 | 91 | | |
78 | 92 | | |
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
84 | | - | |
| 98 | + | |
85 | 99 | | |
86 | 100 | | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 106 | + | |
96 | 107 | | |
97 | 108 | | |
98 | 109 | | |
99 | 110 | | |
100 | 111 | | |
101 | 112 | | |
102 | 113 | | |
103 | | - | |
| 114 | + | |
104 | 115 | | |
105 | 116 | | |
106 | 117 | | |
| |||
112 | 123 | | |
113 | 124 | | |
114 | 125 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 126 | + | |
0 commit comments