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

imp(tests): Check voting has concluded in automated upgrade tests #2235

Merged
merged 9 commits into from
Jan 22, 2024

Conversation

MalteHerrmann
Copy link
Contributor

@MalteHerrmann MalteHerrmann commented Jan 5, 2024

Description

This PR improves the automated upgrade tests, by making sure that the proposal actually has passed when stopping the original node and before starting the upgraded node.

To prevent some future problems when adjusting e.g. init-node.sh the scheduled upgrade height is calculated dynamically from the timeout_commit and voting_period of the running node.

@MalteHerrmann MalteHerrmann changed the title imp(tests): Improve automated upgrade tests imp(tests): Check voting has concluded in automated upgrade tests Jan 5, 2024
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

Attention: 66 lines in your changes are missing coverage. Please review.

Comparison is base (85fc042) 70.72% compared to head (062a24e) 70.53%.
Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2235      +/-   ##
==========================================
- Coverage   70.72%   70.53%   -0.20%     
==========================================
  Files         293      293              
  Lines       22551    22613      +62     
==========================================
  Hits        15950    15950              
- Misses       5734     5796      +62     
  Partials      867      867              
Files Coverage Δ
tests/e2e/upgrade/params.go 90.72% <ø> (ø)
tests/e2e/upgrade/queryexec.go 0.00% <0.00%> (ø)
tests/e2e/upgrade/govexec.go 0.00% <0.00%> (ø)
tests/e2e/upgrade/manager.go 0.00% <0.00%> (ø)

@github-actions github-actions bot added the tests label Jan 22, 2024
@MalteHerrmann MalteHerrmann marked this pull request as ready for review January 22, 2024 15:51
@MalteHerrmann MalteHerrmann requested a review from a team as a code owner January 22, 2024 15:51
@MalteHerrmann MalteHerrmann requested review from Vvaradinov and GAtom22 and removed request for a team January 22, 2024 15:51
Copy link
Contributor

@Vvaradinov Vvaradinov left a comment

Choose a reason for hiding this comment

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

tACK. Maybe we should consider renaming these tests to upgrade ?

@MalteHerrmann MalteHerrmann merged commit 82862b3 into main Jan 22, 2024
35 of 38 checks passed
@MalteHerrmann MalteHerrmann deleted the malte/improve-upgrade-tests branch January 22, 2024 20:09
@MalteHerrmann
Copy link
Contributor Author

tACK. Maybe we should consider renaming these tests to upgrade ?

Definitely want to adjust the names on these - for that I want to port the TestCLITxs to nix first and then have only the upgrade tests running like in this suite 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants