Skip to content

chore(tests): per-package system test timeouts - #18206

Draft
daniel-sanche wants to merge 34 commits into
googleapis:mainfrom
daniel-sanche:improve_stuck_system_tests
Draft

chore(tests): per-package system test timeouts#18206
daniel-sanche wants to merge 34 commits into
googleapis:mainfrom
daniel-sanche:improve_stuck_system_tests

Conversation

@daniel-sanche

@daniel-sanche daniel-sanche commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

With the recent push to parallelize system tests using background threads, it is now more likely that a test can get stuck and cause deadlock. We encountered this recently when the system tests in #18013 were running for 3 hours before hitting kokoro's limits and timing out. This was due to a deadlock in the sqlalchemy-spanner tests that was blocking the merge of our releases

This PR adds per-package timeouts, so individual packages won't run for longer than 1 hour

tests are currently blocked on #18230 (failing unit) and #18239 (timing out sqlalchemy tests)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request increases the Kokoro build timeout to 6 hours and introduces a per-package timeout mechanism (defaulting to 35 minutes) using the timeout command in .kokoro/system.sh. It also adds tracking and reporting for timed-out packages, and triggers system tests across multiple packages. The reviewer feedback recommends declaring the pkg and timed_out variables as local at the top of the reap_parallel_results function in .kokoro/system.sh to prevent global namespace pollution and duplicate declarations.

Comment thread .kokoro/system.sh
Comment thread .kokoro/system.sh Outdated
Comment thread .kokoro/system.sh Outdated
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 25, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 25, 2026
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 26, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 26, 2026
@daniel-sanche daniel-sanche changed the title [DRAFT] chore: improve system tests chore(tests): per-package system test timeouts Aug 27, 2026
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