-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSUB-312: Conditionally panic! in migrations when testing #820
Conversation
For full LLVM coverage report click here! |
I haven't explored yet what happens under panics. We need to consider what happens when the scheduled upgrade fails. I suggest having a feature option for testing and otherwise never panic. |
If the migration panics, the chain is effectively bricked. No new blocks will be produced, and the only "fix" is to get a majority of the network to revert the block that triggered the update. So yeah, I agree with Carlos. If we do want it to panic on failure, the panic should be gated for testing. |
39894de
to
faaec52
Compare
1e2ff98
to
d054390
Compare
Failing job in CI if we're using PASS -> https://github.com/gluwa/creditcoin/actions/runs/3744195353/jobs/6357285397 after the current changes. |
f60019f
to
3ad0575
Compare
so that future tests would crash if unexpected situations happen and we would have to inspect the crashes and figure out how to deal with potential corner cases
3ad0575
to
234c82b
Compare
Codecov Report
@@ Coverage Diff @@
## dev #820 +/- ##
=======================================
Coverage 78.05% 78.05%
=======================================
Files 66 66
Lines 10609 10609
=======================================
Hits 8281 8281
Misses 2328 2328
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
so that future tests would crash if unexpected situations happen and we would have to inspect the crashes and figure out how to deal with potential corner cases
@nathanwhit, @CAGS295 - what would happen if even despite tests such panic happens when migrating a mainnet node ?