Skip to content

integration/networking: increase FirewalldReload poll timeout - #53130

Closed
GordonTheTurtle wants to merge 1 commit into
moby:masterfrom
GordonTheTurtle:fix/flaky-TestBridgeICC
Closed

GordonTheTurtle wants to merge 1 commit into
moby:masterfrom
GordonTheTurtle:fix/flaky-TestBridgeICC

Conversation

@GordonTheTurtle

Copy link
Copy Markdown
Contributor

What

Fix intermittent failure of TestBridgeICC.

Why

The FirewalldReload test helper calls poll.WaitOn without an explicit
timeout, falling back to the gotest.tools/v3 default of 10 seconds.

TestBridgeICC calls FirewalldReload once per subtest, and it has 10
subtests 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:

timeout hit after 10s: firewalld reload not complete

Increase the poll timeout to 30 seconds so that slow runners are tolerated.

How

Add poll.WithTimeout(30*time.Second) to the poll.WaitOn call in
FirewalldReload(), 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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: TestBridgeICC

1 participant