Stabilize certificate rollback partition test - #8132
Open
Amaury Chamayou (achamayou) wants to merge 1 commit into
Open
Stabilize certificate rollback partition test#8132Amaury Chamayou (achamayou) wants to merge 1 commit into
Amaury Chamayou (achamayou) wants to merge 1 commit into
Conversation
Copilot started reviewing on behalf of
Amaury Chamayou (achamayou)
August 7, 2026 17:17
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR stabilizes the test_rolled_back_node_certificate partitions test by aligning the post-partition commit-synchronization wait with the test network’s election-derived timing, reducing intermittent CI failures when node-to-node transport recovery lags behind primary unanimity.
Changes:
- Extend
wait_for_node_commit_sync()timeout at the rollback verification point tonetwork.election_duration * 4(instead of the 3s default).
Custom instructions used:
.github/copilot-instructions.md.github/instructions/reviewing.instructions.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Use the test network's election-derived timeout while waiting for commit levels to converge after healing the partition in
test_rolled_back_node_certificate.This is deliberately scoped to this call site. The generic 3-second default remains unchanged for tests that do not intentionally tear down node-to-node connectivity.
Why
The first attempt of CI run 31189649906 failed after the certificate-renewal partition was removed:
7.96;7.94committed while nodes 1 and 3 reported7.96for the full 3-secondwait_for_node_commit_sync()default;7.96in its log.Deleting the iptables rules and reaching primary unanimity do not guarantee that node-to-node transport has recovered immediately. This is the same class of timing behaviour described in #7687 and handled elsewhere by #7601.
The preceding
wait_for_commit()in this test already usesnetwork.election_duration * 4. Applying the same bound to commit synchronization gives transport reconnection and any resulting election time to complete, without adding an unbounded wait or weakening assertions.Attempt 2 passed unchanged, including the partitions step, confirming that the original failure was intermittent rather than a deterministic consensus regression.
Validation
scripts/ci-checks.shcmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Debugcmake --build build./tests.sh --timeout 360 --output-on-failure -L partitions -C partitions(passed in a user network namespace withNET_ADMIN)