Skip to content

ci: fail instrumentation jobs before the time limit to keep debug info - #3372

Merged
sosnovsky merged 2 commits into
masterfrom
ci_fail_instrumentation_jobs_before_time_limit
Dec 4, 2026
Merged

sosnovsky merged 2 commits into
masterfrom
ci_fail_instrumentation_jobs_before_time_limit

Conversation

@DenBond7

@DenBond7 DenBond7 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

When an instrumentation job hits the 60-minute execution_time_limit, Semaphore
stops 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:

  • The global prologue saves the job start time in CI_JOB_STARTED_AT.
  • ci-stream-instrumentation-test-progress.sh runs the test command under
    timeout, set to INSTRUMENTATION_TESTS_JOB_DEADLINE_MINUTES (52) after the
    job start. The job then fails with exit code 124, prints the test summary with
    the incomplete tests, and on_fail has ~8 minutes to publish debug info.
  • A run stopped at the deadline never counts as passed, even if every test that
    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):

  • Does not need tests (refactor only, docs or internal changes)

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities

DenBond7 and others added 2 commits December 2, 2026 16:36
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
DenBond7 marked this pull request as ready for review December 2, 2026 18:12
@DenBond7
DenBond7 requested a review from sosnovsky as a code owner December 2, 2026 18:12

@sosnovsky sosnovsky left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks good 👍

@sosnovsky
sosnovsky merged commit 6060720 into master Dec 4, 2026
6 checks passed
@sosnovsky
sosnovsky deleted the ci_fail_instrumentation_jobs_before_time_limit branch December 4, 2026 14:47
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.

CI: fail instrumentation jobs before the time limit to keep debug info

2 participants