Skip to content

Stabilize TestSaveAndLoadPlatform integration test.#50650

Merged
thaJeztah merged 1 commit intomoby:masterfrom
ctalledo:fix-for-50531
Aug 8, 2025
Merged

Stabilize TestSaveAndLoadPlatform integration test.#50650
thaJeztah merged 1 commit intomoby:masterfrom
ctalledo:fix-for-50531

Conversation

@ctalledo
Copy link
Copy Markdown
Collaborator

@ctalledo ctalledo commented Aug 6, 2025

- What I did

Stabilize TestSaveAndLoadPlatform integration test.

Fixes #50531.

- How I did it

Test was flaky because it was not waiting for an image load operation to complete before proceeding to check if the load succeeded. Fix this.

- How to verify it

DELVE_PORT= TIMEOUT=10m TEST_SKIP_INTEGRATION_CLI=y  TEST_INTEGRATION_DIR=./integration/image TESTFLAGS='-test.run TestSaveAndLoadPlatform'   ./hack/make.sh dynbinary test-integration

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

@ctalledo ctalledo self-assigned this Aug 6, 2025
@ctalledo ctalledo requested a review from Copilot August 6, 2025 19:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR stabilizes a flaky integration test by ensuring image load operations complete before proceeding with verification steps. The test was previously failing intermittently because it wasn't waiting for the asynchronous load operation to finish.

  • Adds proper waiting for image load operations to complete by reading the response body
  • Removes loaded images between test steps to ensure clean state
  • Updates test comments for clarity

@vvoland vvoland added this to the 29.0.0 milestone Aug 7, 2025
Test was flaky because it was not waiting for an image load
operation to complete before proceeding to check if the load
succeeded. Fix this.

Signed-off-by: Cesar Talledo <cesar.talledo@docker.com>
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

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 0fbb6a2 into moby:master Aug 8, 2025
305 of 318 checks passed
@ctalledo ctalledo deleted the fix-for-50531 branch August 8, 2025 16:07
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: TestSaveAndLoadPlatform

5 participants