Skip to content

integration-cli/container: Rewrite on-failure restart tests#52882

Merged
thaJeztah merged 1 commit into
moby:masterfrom
vvoland:restrartcontainer-good
Jun 16, 2026
Merged

integration-cli/container: Rewrite on-failure restart tests#52882
thaJeztah merged 1 commit into
moby:masterfrom
vvoland:restrartcontainer-good

Conversation

@vvoland

@vvoland vvoland commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace flaky legacy CLI restart-policy tests with container API integration coverage.

The CLI tests poll inspect output after short-lived detached containers exit, which can observe transient daemon monitor state while cleanup or restart-policy handling is still settling.

On Windows this can race a manual restart against an on-failure:3 container that has not exhausted its automatic retries.

Remove flaky tests:

  • TestRestartContainerwithGoodContainer
  • TestRestartContainerwithRestartPolicy

Verify TestContainerRestartPolicyOnFailure is not flaky

Release notes (optional)

A picture of a cute animal (not mandatory but encouraged)

Replace flaky legacy CLI restart-policy tests with container API
integration coverage.

The CLI tests poll inspect output after short-lived detached containers
exit, which can observe transient daemon monitor state while cleanup or
restart-policy handling is still settling.

On Windows this can race a manual restart against an `on-failure:3`
container that has not exhausted its automatic retries.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland self-assigned this Jun 15, 2026
@vvoland vvoland added this to the 29.6.0 milestone Jun 15, 2026
@vvoland vvoland requested a review from thaJeztah June 15, 2026 19:04

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thaJeztah thaJeztah merged commit fee7908 into moby:master Jun 16, 2026
215 of 216 checks passed
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.

2 participants