Open Ekleog-NEAR opened 1 year ago
We may need to disable voting for latest protocol version in tests, because we do want to check only +1 protocol version switches. With flat storage features, TTN costs of same txns will change, which may break some existing tests using upgrade_protocol
which is the right thing to use.
Alternatively, if we go forward with limited-to-three replayability for the outside world, we can probably just remove all the tests that pertain to versions older than the latest we officially support, and that’ll both simplify our code and help us work around this issue :) (though it’d still be nice to actually fix it someday)
Got hit by this while adding CI for chain with custom protocol version https://github.com/near/nearcore/pull/10589
Looks like we are hitting this issue again in #10979. If we are not planning on fixing this issue any time soon, I propose that we change https://github.com/near/nearcore/blob/4c0aa98cb7ecd5fd2a22c87788aa56d9223b7abb/chain/client/src/test_utils/test_env.rs#L438 to stop taking a protocol_version
as an argument. We will then be forced to rewrite our tests to accept this limitation.
JFYI I'm going to disable the test_function_limit_change test when stabilizing the cc and sv features.
If the issue is uncontrolled protocol upgrades this can now be done more precisely with NEAR_TESTS_PROTOCOL_UPGRADE_OVERRIDE
.
The code at https://github.com/ekleog/nearcore/commit/33bf68080dd25bbb50c68ba1068b9f217b88cdca fails with log lines:
Note in particular the
current_protocol_version=58
here.Analysis suggested by @jakmeier is as follows: