Repository navigation
ci: fail instrumentation jobs before the time limit to keep debug info - #3372
Merged
Merged
Conversation
A job stopped by Semaphore's execution_time_limit runs no epilogue, so a hung or slow shard publishes no logcat, screenshots, or host metrics. Stop the test command 52 minutes after the job start instead. The job then fails, prints the summary with the incomplete tests, and on_fail has about 8 minutes to collect debug info. Healthy jobs finish in 8-25 minutes.
DenBond7
marked this pull request as ready for review
December 2, 2026 18:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When an instrumentation job hits the 60-minute
execution_time_limit, Semaphorestops it and skips the epilogue. So a hung or slow shard publishes no logcat,
screenshots, or host metrics, and these are exactly the cases where we need them
(e.g. shard 4 in the PR #3366 pipeline).
Changes:
CI_JOB_STARTED_AT.ci-stream-instrumentation-test-progress.shruns the test command undertimeout, set toINSTRUMENTATION_TESTS_JOB_DEADLINE_MINUTES(52) after thejob start. The job then fails with exit code 124, prints the test summary with
the incomplete tests, and
on_failhas ~8 minutes to publish debug info.ran passed.
Healthy instrumentation jobs take 8-25 minutes, so the deadline only affects
jobs that would otherwise hit the limit. Without the env vars (e.g. local runs)
the script behaves as before.
close #3371
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):