Skip to content

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

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

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

Conversation

@sachaudh

@sachaudh sachaudh commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #4045 to release-3.25.

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:45
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.34%. Comparing base (31d62fe) to head (3378c66).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@              Coverage Diff              @@
##           release-3.25    #4063   +/-   ##
=============================================
  Coverage         27.34%   27.34%           
=============================================
  Files                95       95           
  Lines              5420     5420           
  Branches           2545     2545           
=============================================
  Hits               1482     1482           
  Misses             3211     3211           
  Partials            727      727           
Flag Coverage Δ
collector-unit-tests 27.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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