Skip to content

Retry updater container creation on SMB mount failure#598

Closed
jeffwidman wants to merge 1 commit intomainfrom
fix/smb-mount-retry
Closed

Retry updater container creation on SMB mount failure#598
jeffwidman wants to merge 1 commit intomainfrom
fix/smb-mount-retry

Conversation

@jeffwidman
Copy link
Member

Problem

The smb-mount script test intermittently fails in CI with:

failed to mount local volume: mount //172.18.0.3/dpdbot:... interrupted system call

The CIFS volume mount happens during ContainerCreate, and the SMB service inside the storage container may not be fully ready even though port 445 is listening. The previous workaround was a 1-second sleep after port detection, which wasn't always sufficient.

Fix

  • Add a retry loop (up to 3 attempts with 2-second backoff) around cli.ContainerCreate when a mount error is detected. This directly addresses the failure point rather than trying to predict when SMB is ready.
  • Remove the 1-second sleep in waitForPort that was a workaround for the same issue — it's no longer needed since retries handle the race condition.

Testing

The fix targets the flaky TestDependabot/smb-mount test. CI will validate it passes.

The CIFS volume mount occurs during container creation, and the
SMB service inside the storage container may not be fully ready
even though port 445 is listening. Instead of relying on a sleep
after port detection, retry the container creation up to 3 times
with a 2-second backoff when a mount error occurs.

Also removes the 1-second sleep in waitForPort that was a
workaround for the same issue.
@jeffwidman jeffwidman requested review from a team as code owners March 10, 2026 00:33
@jeffwidman
Copy link
Member Author

A flaky CI test popped up on another PR, so I asked copilot to make this a little more robust...

@jeffwidman
Copy link
Member Author

It looks like https://github.com/dependabot/cli/actions/runs/22881413409/job/66384821890?pr=598 may indicate this path isn't worth pursuing

@jeffwidman
Copy link
Member Author

For now i'm going to set this aside, it's not worth yak-shaving unless/until it becomes mroe frequent

@jeffwidman jeffwidman closed this Mar 10, 2026
@jeffwidman jeffwidman deleted the fix/smb-mount-retry branch March 10, 2026 00:39
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.

1 participant