Commit 2e062e3
test(mainnet-nns): reintroduction of the mainnet NNS testnet (#8170)
This PR introduces a new testnet `mainnet_nns`: A single-node NNS subnet
holding mainnet state, along with 1 API BN and 1 HTTP Gateway, for
general use-case. In a separate PR, the current `nns_recovery` testnet
will be adapted to also be able to spawn it with mainnet state. Finally,
that second PR will also introduce an NNS recovery system test that will
use mainnet state.
Most of the changes are the revert of
e38941a,
but some changes were required in `ic-replay`:
- Bumping the ingress messages' expiry, otherwise some messages would
expire if delivered in multiple batches. This was already done for
certain `SubCommand`s, so we generalize it to all of them.
- The list of trusted neurons was outdated.
- Now neurons need to be made public to be followed.
- Trusted neurons will follow the new neuron on all topics and not just
`Unspecified` to be more robust.
The code lives in its own crate in `//rs/tests/testnets/mainnet_nns/` as
a library such that one can turn any testnet or system test into a
variant that holds mainnet state, with as few modifications as possible
to their original code. For example, the setup of the IC can be done by
running the provided `setup` and making proposals to change the topology
to achieve the intended initial topology. Such proposals can be made as
easily as calling `ProposalWithMainnetState::[name_of_the_proposal]`.
Finally, it is intended to use the mainnet's version of `ic-replay` and
`ic-recovery` like
[previously](https://github.com/dfinity/ic/blob/6cd54499b0ec4f4190043f66769e54e78ffa0ccf/rs/tests/nns/ic_mainnet_nns_recovery/src/lib.rs#L206-L212),
but since I needed to modify those to create this testnet, we need to
wait for this change to reach mainnet NNS before downloading those. This
is tracked in ticket CON-1624.
---------
Co-authored-by: IDX GitHub Automation <infra+github-automation@dfinity.org>1 parent af1e995 commit 2e062e3
File tree
15 files changed
+1337
-60
lines changed- .github
- rs
- recovery/src
- replay
- src
- tests
- driver/src/driver
- testnets
- mainnet_nns
- src
15 files changed
+1337
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | 251 | | |
254 | 252 | | |
255 | | - | |
256 | 253 | | |
257 | 254 | | |
258 | 255 | | |
| |||
395 | 392 | | |
396 | 393 | | |
397 | 394 | | |
398 | | - | |
399 | | - | |
400 | 395 | | |
401 | 396 | | |
402 | | - | |
403 | 397 | | |
404 | 398 | | |
405 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
92 | | - | |
93 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
| |||
188 | 199 | | |
189 | 200 | | |
190 | 201 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
217 | 233 | | |
218 | 234 | | |
219 | 235 | | |
220 | | - | |
| 236 | + | |
221 | 237 | | |
222 | 238 | | |
223 | | - | |
| 239 | + | |
224 | 240 | | |
225 | | - | |
226 | | - | |
227 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
228 | 251 | | |
229 | 252 | | |
230 | 253 | | |
| |||
234 | 257 | | |
235 | 258 | | |
236 | 259 | | |
237 | | - | |
| 260 | + | |
238 | 261 | | |
239 | 262 | | |
240 | 263 | | |
| |||
399 | 422 | | |
400 | 423 | | |
401 | 424 | | |
402 | | - | |
| 425 | + | |
403 | 426 | | |
404 | 427 | | |
405 | 428 | | |
| |||
476 | 499 | | |
477 | 500 | | |
478 | 501 | | |
479 | | - | |
| 502 | + | |
480 | 503 | | |
481 | 504 | | |
482 | 505 | | |
| |||
501 | 524 | | |
502 | 525 | | |
503 | 526 | | |
504 | | - | |
| 527 | + | |
505 | 528 | | |
506 | 529 | | |
507 | 530 | | |
| |||
526 | 549 | | |
527 | 550 | | |
528 | 551 | | |
529 | | - | |
| 552 | + | |
530 | 553 | | |
531 | 554 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
67 | 80 | | |
68 | 81 | | |
69 | 82 | | |
| |||
373 | 386 | | |
374 | 387 | | |
375 | 388 | | |
376 | | - | |
| 389 | + | |
377 | 390 | | |
378 | | - | |
379 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
380 | 394 | | |
381 | | - | |
| 395 | + | |
382 | 396 | | |
383 | 397 | | |
384 | 398 | | |
| |||
0 commit comments