Skip to content

[backport 3.24] ROX-37266: wait for plop server instead of fixed sleep (#4045) - #4062

Open
sachaudh wants to merge 1 commit into
release-3.24from
schaudhr/backport-4045-3.24
Open

sachaudh wants to merge 1 commit into
release-3.24from
schaudhr/backport-4045-3.24

Conversation

@sachaudh

@sachaudh sachaudh commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #4045 to release-3.24.

TestProcessListeningOnPort is still failing on ubuntu-os on this branch with connection refused. #4045 replaces the fixed 5s sleep with a poll on port 5000 (500ms interval, 15s timeout). Since it merged, ubuntu-os has passed 25 of 25 runs on master.

Clean cherry-pick. go build ./... and go vet ./suites/ pass in integration-tests.

Tracked in ROX-37266.

* fix(tests): wait for plop server instead of fixed sleep

TestProcessListeningOnPort slept a fixed 5s after starting the flask
"plop" container and then made a single request with no retry. Since the
GCP ubuntu-2404-lts-amd64 image moved to a newer kernel (around
2026-09-05), flask's first start on that VM often takes longer than 5s,
so the suite fails with "connection refused" on ubuntu-os in most runs.
ubuntu-2204 binds in 3-5s and has lost the same race too.

Flask isn't hung. In the failing runs the container had only been up for
5-6s when the request was made, and in one it had already printed
"Serving Flask app". The next suite (TestSymbolicLinkProcess) starts the
same image on the same VM and it binds port 5000 within 0-7s.

Poll the port for up to 30s instead, so the test waits as long as it
needs to and fails with a clear message if the server never comes up.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>

* fix: shorten plop readiness timeout to 15s

Review feedback: 30s delays the error when the plop container fails
to start. CI showed flask binding in up to ~8s on ubuntu-2404, so 15s
keeps headroom for slower kernels without a long wait on real failures.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>

---------

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
(cherry picked from commit 1b6093d)
Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@sachaudh
sachaudh requested a review from a team as a code owner September 29, 2026 19:44
@codecov-commenter

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

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.

2 participants