Repository navigation
integration/networking: increase FirewalldReload poll timeout - #53130
Closed
GordonTheTurtle wants to merge 1 commit into
Closed
GordonTheTurtle wants to merge 1 commit into
GordonTheTurtle wants to merge 1 commit into
Conversation
poll.WaitOn in FirewalldReload() had no explicit timeout, falling back to the gotest.tools/v3 default of 10 seconds. TestBridgeICC calls FirewalldReload once per subtest across ~10 subtests running sequentially. After several consecutive reloads on a busy CI runner, the daemon can take longer than 10 s to acknowledge the reload, causing 'timeout hit after 10s: firewalld reload not complete'. Increase the poll timeout to 30 seconds to tolerate slow runners. Fixes: moby#50595
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.
What
Fix intermittent failure of
TestBridgeICC.Why
The
FirewalldReloadtest helper callspoll.WaitOnwithout an explicittimeout, falling back to the
gotest.tools/v3default of 10 seconds.TestBridgeICCcallsFirewalldReloadonce per subtest, and it has 10subtests that run sequentially. After 7 consecutive reloads within the same
test loop, a busy CI runner can take longer than 10 s for the daemon to
acknowledge the next reload, causing the test to fail with:
Increase the poll timeout to 30 seconds so that slow runners are tolerated.
How
Add
poll.WithTimeout(30*time.Second)to thepoll.WaitOncall inFirewalldReload(), and import"time"in the same file.Verification
This change addresses the flakiness identified in #50595. The fix was proposed by automated analysis of CI logs and source code.
Closes #50595