near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.31k stars 605 forks source link

[Forknet] MVP of stateless validation upgradability test in CI #10922

Open posvyatokum opened 3 months ago

posvyatokum commented 3 months ago

This is a tracking issue for the April effort of using forknet to add transition to stateless validation into our CI.

### Tasks
- [ ] Incorporate [fork-network tool](https://github.com/near/nearcore/tree/master/tools/fork-network) into mocknet creation flow
- [ ] Create a regular job of running current setup for stateless validation upgradability test
- [ ] https://github.com/near/nearcore/issues/11056
posvyatokum commented 3 months ago

@marcelo-gonzalez When you have time, add tasks that you can think of to the tasklist in the description.

posvyatokum commented 3 months ago

@marcelo-gonzalez I see our basic improved flow like this:

Preparation:

Independently of the test and in advance of starting it, prepare a node image. Node image is prepared via running init, amend-access-keys, and finalise in fork-network tool.

Test Setup (new part):

Test Setup (± old part):

Test (no changes):

I see us generating and distributing keys instead of using neard on machines to generate them for two reasons:

I prepared this draft PR to show how I see keys management in forknet. Please, take a look #10956.