Skip to content

Replace hardcoded sleeps with readiness loops in CI workflows - #1304

Merged
mrigger merged 2 commits into
mainfrom
fix-ci-sleep-antipatterns
Mar 27, 2026
Merged

mrigger merged 2 commits into
mainfrom
fix-ci-sleep-antipatterns

Conversation

@mrigger

@mrigger mrigger commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Use until polling loops instead of fixed sleep durations to wait for services to become ready, reducing flakiness and unnecessary wait time across CnosDB, ClickHouse, CockroachDB, OceanBase, Presto, TiDB, YugabyteDB, and Doris jobs.

mrigger and others added 2 commits March 27, 2026 08:08
Use `until` polling loops instead of fixed `sleep` durations to wait
for services to become ready, reducing flakiness and unnecessary wait
time across CnosDB, ClickHouse, CockroachDB, OceanBase, Presto, TiDB,
YugabyteDB, and Doris jobs.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The /ping endpoint does not exist on CnosDB, causing curl -f to loop
forever. Switch to nc -z which just checks that the port is open.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@mrigger
mrigger merged commit 4c11e0e into main Mar 27, 2026
17 of 26 checks passed
@mrigger
mrigger deleted the fix-ci-sleep-antipatterns branch March 27, 2026 02:22
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.

1 participant