Skip to content
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

fix: restart node on compatible upgrade #4886

Merged
merged 10 commits into from
May 23, 2024

Conversation

kylezs
Copy link
Contributor

@kylezs kylezs commented May 22, 2024

Pull Request

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have updated documentation where appropriate.

Summary

When the versions are "compatible" it doesn't mean the RPCs will be unbroken. So we have to start the node with the new version to ensure the RPC updates are reflected on the node.
e.g. see this failure: https://github.com/chainflip-io/chainflip-backend/actions/runs/9191091275/job/25277048379

Upgrade tests should pass now: https://github.com/chainflip-io/chainflip-backend/actions/runs/9208000827

if (isCompatible) {
console.log('The versions are compatible.');
await simpleRuntimeUpgrade(nextVersionWorkspacePath, true);

// TODO: Add restart nodes support, as in the prebuilt case.
Copy link
Contributor Author

@kylezs kylezs May 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaving this as a TODO because I'm considering deleting the git-based upgrade test, feels a bit unnecessary now

Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72%. Comparing base (4f7e512) to head (1281f08).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff           @@
##            main   #4886    +/-   ##
======================================
- Coverage     72%     72%    -0%     
======================================
  Files        428     428            
  Lines      73171   73026   -145     
  Branches   73171   73026   -145     
======================================
- Hits       52685   52483   -202     
- Misses     17933   17988    +55     
- Partials    2553    2555     +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kylezs kylezs requested a review from ahasna May 23, 2024 12:32
@kylezs kylezs marked this pull request as ready for review May 23, 2024 13:10
@kylezs kylezs added this pull request to the merge queue May 23, 2024
@kylezs kylezs removed this pull request from the merge queue due to a manual request May 23, 2024
@kylezs kylezs added this pull request to the merge queue May 23, 2024
Merged via the queue into main with commit ba0fd0a May 23, 2024
46 checks passed
@kylezs kylezs deleted the fix/restart-node-on-compatible-upgrade branch May 23, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants