Skip to content

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

Merged
vladbologa merged 1 commit into
release-3.24from
schaudhr/backport-4045-3.24
Sep 30, 2026
Merged

vladbologa merged 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

codecov-commenter commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.38%. Comparing base (899465f) to head (bedb9d9).
⚠️ Report is 1 commits behind head on release-3.24.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@              Coverage Diff              @@
##           release-3.24    #4062   +/-   ##
=============================================
  Coverage         27.38%   27.38%           
=============================================
  Files                95       95           
  Lines              5427     5427           
  Branches           2548     2548           
=============================================
  Hits               1486     1486           
  Misses             3214     3214           
  Partials            727      727           
Flag Coverage Δ
collector-unit-tests 27.38% <ø> (ø)

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.

@vladbologa
vladbologa merged commit 640009e into release-3.24 Sep 30, 2026
125 of 154 checks passed
@vladbologa
vladbologa deleted the schaudhr/backport-4045-3.24 branch September 30, 2026 13:07
@sachaudh

Copy link
Copy Markdown
Contributor Author

Thanks for the approval. Take a look at #4063 and #4064 as well. Those backports go to release-3.25 and release-3.26 as well

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.

4 participants