Skip to content

Raise the gdb-wrapped unit test timeout from 45 to 90 minutes - #113863

Merged
alexey-milovidov merged 2 commits into
masterfrom
fix/unit-tests-gdb-timeout-headroom
Aug 9, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
fix/unit-tests-gdb-timeout-headroom

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or improvement (changelog entry is not required)

The unit tests run sequentially in one binary under timeout -s INT -v 45m gdb. The summed per-test duration under TSan has grown from ~30 minutes in early July to 38–40 minutes now (per CIDB), leaving almost no headroom against the 45-minute cap: a run on a slower machine exceeds the budget, timeout sends SIGINT to gdb, and the report blames whichever test happened to be running at that moment — most recently Storage/CoordinationTestWithCompression.TestStateMachineAndLogStore/MemCompressed, which legitimately takes ~62 seconds (it has for at least 30 days) and simply sits near the end of the run. The interrupted run had completed ~44 minutes of tests with no individual test hung (the backtrace shows a healthy 200 ms poll loop in waitDurableLogs).

Raise the gdb wrapper timeout to 90 minutes. The praktika job-level timeout is 5 hours, so this stays well within the job budget, and a healthy run is unaffected — the wrapper only bounds the abnormal case.

Occurrences: Unit tests (tsan) on #112878 (2026-08-07) and the same job on #111032 (2026-08-06); no other failures of this test in the last 60 days, and no open issue found.

Related: #112878

Version info

  • Merged into: 26.8.1.1043 (included in 26.8 and later)

The unit tests run sequentially in one binary under `timeout -s INT -v 45m gdb`.
The summed test duration under TSan has grown from ~30 minutes in early July to
38-40 minutes now, leaving almost no headroom: a run on a slower machine exceeds
the budget and the report blames whichever test happened to be running when
`SIGINT` arrived - most recently
`Storage/CoordinationTestWithCompression.TestStateMachineAndLogStore/MemCompressed`,
which legitimately takes ~62 seconds and sits near the end of the run.

Seen in https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=112878&sha=3eea89cbb616eee24f1777cefb80ac39140aee60&name_0=PR&name_1=Unit%20tests%20(tsan)
(#112878) and in the same job on
#111032 the day before.

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fd56d1b]

Summary: ✅


AI Review

Summary

This PR only raises the non-ASan unit_tests_job.py gdb wrapper timeout from 45m to 90m. I verified the cited #112878 failure was the outer timeout delivering SIGINT to gdb, not a real regression in Storage/CoordinationTestWithCompression.TestStateMachineAndLogStore/MemCompressed, and I checked that Unit tests still inherits Praktika's default 5-hour job timeout. The change increases headroom for sequential TSan/MSan runs without conflicting with the existing result parsing or watchdog layers.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Aug 7, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

No arm_release build profile data for commit fd56d1b - the build was skipped, reused from cache, or predates profile upload.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 The only red on the 9f364264 run was 04561_ie_join_storage_join in the ParallelReplicas coverage job — unrelated to this PR and already fixed on master by #113840. Merged master (fd56d1bf5fa) to pull the fix in; the PR itself is unchanged (only ci/jobs/unit_tests_job.py). AI review reports no blocking issues and there are no unresolved threads.

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@alexey-milovidov alexey-milovidov self-assigned this Aug 9, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 9, 2026
Merged via the queue into master with commit 076379e Aug 9, 2026
180 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix/unit-tests-gdb-timeout-headroom branch August 9, 2026 19:57
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants