Skip to content

Conversation

mdelapenya
Copy link
Member

What does this PR do?

This PR is removing the readiness check for the exposed ports, because
It leads to flakiness for the following:

  1. it defined a non-configurable timeout of 5s, which could not be enough depending on the underlying hardware.
  2. we strongly recommend users to add a consistent wait strategy, and the library must provide robust building blocks to perform that. The wait strategies allow users to properly define the readiness checks, so the core just should honour that.

Why is it important?

Reduces flakiness for a condition that should be defined from the user side.

Related issues

It leads to flakiness for the following:
1. it defined a non-configurable timeout of 5s, which could not be enough depending on the underlying hardware.
2. we strongly recommend users to add a consistent wait strategy, and the library must provide robust building blocks to perform that. The wait strategies allow users to properly define the readiness checks, so the core just should honour that.
@mdelapenya mdelapenya added the breaking change Causing compatibility issues. label Jun 3, 2025
@mdelapenya mdelapenya requested a review from a team as a code owner June 3, 2025 11:57
@mdelapenya mdelapenya self-assigned this Jun 3, 2025
@mdelapenya mdelapenya requested a review from stevenh June 3, 2025 11:57
Copy link

netlify bot commented Jun 3, 2025

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 062da61
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-go/deploys/683ef5964b00320008f47282
😎 Deploy Preview https://deploy-preview-3199--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mdelapenya mdelapenya merged commit 7460176 into testcontainers:main Jun 4, 2025
396 of 398 checks passed
@mdelapenya mdelapenya deleted the remove-readines-check-ports branch June 4, 2025 05:38
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Jun 10, 2025
* main:
  fix: use PortEndpoint() in a few more modules (testcontainers#3203)
  fix: try to fix more IPv6 handling issues (testcontainers#3198)
  chore!: do not wait for all the exposed ports to be ready (testcontainers#3199)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Causing compatibility issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant