Commit 78594d7
authored
test(e2e): dedupe multi-node block-production and governance test setups (#24498)
Round-2 e2e consolidation, PR 7 of 9. Pure dedup/refactor of multi-node
test setups — no timing or config values change; every asserted behavior
is preserved.
## What changed
- **block-production/blob_promotion + recovery/pipeline_prune → shared
`setupBlockProductionWithProver`.** Both files reimplemented the same
4-validator + prover + `WIDE_SLOT_TIMING` +
`mockGossipSubNetworkLatency: 500` cluster locally (`setupBlobPromotion`
/ `setupTest`). Those local helpers are deleted and both now call the
shared helper, which gained four opt-in options:
`mockGossipSubNetworkLatency`, `maxTxsPerCheckpoint`,
`clearInheritedCoinbase` (per-attester coinbase), and
`disableCheckpointPromotionOnFirstNode`. `buildValidatorCluster` now
accepts a per-index `nodeOpts` function so node 0 can be configured
distinctly. **The resolved setup options and per-node config are
identical to the originals** (same keys/values; existing callers
`cross_chain_messages`/`deploy_and_call_ordering`/`proposed_chain` are
unaffected because both new booleans default to false). One benign side
effect: pipeline_prune now also installs `watchNodeSequencerEvents` via
the helper — instrumentation only, no assertions consume it. (recovery →
block-production cross-directory import, as permitted by the plan.)
- **governance mechanics dedup.** Extracted `createGovernanceTestDriver`
+ `driveGovernanceRound` into `governance/setup.ts`, wrapping the
`govInfo` / round-boundary warp / quorum wait / submit-winner /
vote-through-delays mechanics duplicated by `add_rollup` and
`upgrade_governance_proposer`. Both files adopt it; their
scenario-specific parts (payload construction, node signaling, node
migration + bridging in add_rollup, pre/post-execute assertions) stay in
place. Each caller passes its own quorum timeout (`upgrade`: `quorumSize
* aztecSlotDuration * 3`; `add_rollup`: `600`) so no timing value
changes. The vote-success assertion now lives in the driver and covers
both callers.
## Dropped assertions
None. The `upgrade_governance_proposer` vote-success assertion is
preserved (moved into the driver's `voteToExecutable`, where it now also
covers `add_rollup`).
## Local test runs (all pass)
- `upgrade_governance_proposer` — 1 passed (116s)
- `block-production/blob_promotion` — 1 passed (293s)
- `recovery/pipeline_prune` — 1 passed (367s)
- `governance/add_rollup` — 1 passed (327s locally); also green in CI.1 parent 842cb8d commit 78594d7
6 files changed
Lines changed: 253 additions & 376 deletions
File tree
- yarn-project/end-to-end/src/multi-node
- block-production
- governance
- recovery
Lines changed: 13 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
10 | | - | |
11 | 7 | | |
12 | | - | |
13 | 8 | | |
14 | 9 | | |
15 | | - | |
16 | | - | |
17 | 10 | | |
| 11 | + | |
18 | 12 | | |
19 | 13 | | |
20 | 14 | | |
| |||
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 33 | | |
91 | 34 | | |
92 | 35 | | |
| |||
121 | 64 | | |
122 | 65 | | |
123 | 66 | | |
124 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
125 | 79 | | |
126 | 80 | | |
127 | 81 | | |
| |||
Lines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | | - | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
96 | | - | |
97 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
| |||
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
127 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
135 | 153 | | |
136 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
137 | 160 | | |
138 | 161 | | |
139 | 162 | | |
| |||
149 | 172 | | |
150 | 173 | | |
151 | 174 | | |
152 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
153 | 182 | | |
154 | 183 | | |
155 | 184 | | |
| |||
Lines changed: 12 additions & 108 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
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 | | - | |
| 123 | + | |
153 | 124 | | |
154 | 125 | | |
155 | 126 | | |
| |||
225 | 196 | | |
226 | 197 | | |
227 | 198 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 199 | + | |
249 | 200 | | |
250 | 201 | | |
251 | 202 | | |
| |||
262 | 213 | | |
263 | 214 | | |
264 | 215 | | |
265 | | - | |
| 216 | + | |
266 | 217 | | |
267 | 218 | | |
268 | 219 | | |
| |||
429 | 380 | | |
430 | 381 | | |
431 | 382 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
482 | 386 | | |
483 | 387 | | |
484 | 388 | | |
| |||
534 | 438 | | |
535 | 439 | | |
536 | 440 | | |
537 | | - | |
| 441 | + | |
538 | 442 | | |
539 | 443 | | |
540 | 444 | | |
| |||
0 commit comments