Skip to content

Commit

Permalink
mantle/podman.go: use RetryUntilTimeout in podman.workflow
Browse files Browse the repository at this point in the history
The podman.workflow test has been failing on OpenStack, likely
because pulling the Fedora container takes too long. Use the
`RetryUntilTimeout` function to retry every minute for up to 15
minutes to allow sufficient time to pull the Fedora container.
In local testing, pulling the container on OpenStack took
approximately 5 minutes before succeeding.

See: coreos/fedora-coreos-tracker#1835
  • Loading branch information
marmijo committed Dec 17, 2024
1 parent e101e50 commit dcce259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantle/kola/tests/podman/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func podmanWorkflow(c cluster.TestCluster) {
return nil
}

if err := util.Retry(6, 10*time.Second, podIsRunning); err != nil {
if err := util.RetryUntilTimeout(15*time.Minute, 5*time.Minute, podIsRunning); err != nil {
c.Fatal("Pod is not running")
}
})
Expand Down

0 comments on commit dcce259

Please sign in to comment.