Commit 8803d08
authored
fix(test): isolate e2e suites by unique workflow/execution id (apache#5888)
### What changes were proposed in this PR?
- Add `TestUtils.workflowContext(id, settings)` that sets both
`workflowId` and `executionId` to `id`, and make the DB fixtures plus
`setUp`/`cleanupWorkflowExecutionData` take an `id` (the user email is
derived from `id` to avoid the unique-email collision).
- Give each materializing e2e suite a distinct id so concurrent suites
no longer share an Iceberg result keyspace or DB rows:
DataProcessingSpec=1, PauseSpec=2, ReconfigurationSpec=3,
ReconfigurationIntegrationSpec=4.
- Test-only change, no production code; BatchSizePropagationSpec and
CheckpointSpec are untouched because they do not materialize results.
### Any related issues, documentation, discussions?
Closes: apache#5887
### How was this PR tested?
- `sbt "WorkflowExecutionService/Test/compile"` compiles clean on Java
17.
- Run the previously-flaky suite against the integration services
(Postgres test DB + MinIO/S3 + Iceberg catalog, as in the `build /
amber` CI job): `sbt "WorkflowExecutionService/testOnly
*DataProcessingSpec"`; expect all DataProcessingSpec tests green with no
CommitFailedException flake.
- The timing-dependent flake could not be reproduced locally (no
MinIO/Iceberg env), so final verification is the `build / amber` CI job
staying green across re-runs.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF1 parent 5a3ddcc commit 8803d08
5 files changed
Lines changed: 74 additions & 45 deletions
File tree
- amber/src/test
- integration/org/apache/texera/amber/engine/e2e
- scala/org/apache/texera/amber/engine/e2e
amber/src/test/integration/org/apache/texera/amber/engine/e2e/ReconfigurationIntegrationSpec.scala
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
125 | | - | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | | - | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | | - | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | | - | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | | - | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
Lines changed: 47 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
69 | 89 | | |
70 | 90 | | |
71 | 91 | | |
| |||
186 | 206 | | |
187 | 207 | | |
188 | 208 | | |
189 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
190 | 212 | | |
191 | | - | |
192 | | - | |
| 213 | + | |
| 214 | + | |
193 | 215 | | |
194 | 216 | | |
195 | | - | |
| 217 | + | |
196 | 218 | | |
197 | 219 | | |
198 | 220 | | |
199 | | - | |
| 221 | + | |
200 | 222 | | |
201 | 223 | | |
202 | | - | |
| 224 | + | |
203 | 225 | | |
204 | 226 | | |
205 | 227 | | |
206 | 228 | | |
207 | 229 | | |
208 | | - | |
| 230 | + | |
209 | 231 | | |
210 | | - | |
211 | | - | |
| 232 | + | |
| 233 | + | |
212 | 234 | | |
213 | 235 | | |
214 | 236 | | |
215 | 237 | | |
216 | | - | |
| 238 | + | |
217 | 239 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
221 | 243 | | |
222 | 244 | | |
223 | 245 | | |
224 | 246 | | |
225 | 247 | | |
226 | | - | |
| 248 | + | |
227 | 249 | | |
228 | 250 | | |
229 | 251 | | |
230 | 252 | | |
231 | 253 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
236 | 258 | | |
237 | 259 | | |
238 | 260 | | |
| |||
318 | 340 | | |
319 | 341 | | |
320 | 342 | | |
321 | | - | |
| 343 | + | |
322 | 344 | | |
323 | 345 | | |
324 | 346 | | |
325 | 347 | | |
326 | 348 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
331 | 353 | | |
332 | 354 | | |
333 | 355 | | |
0 commit comments