Skip to content

ci: give every job a timeout-minutes - #108

Merged
maksimtech merged 2 commits into
mainfrom
ci/job-timeouts
Nov 21, 2026
Merged

maksimtech merged 2 commits into
mainfrom
ci/job-timeouts

Conversation

@maksimtech

Copy link
Copy Markdown
Owner

Part of maksimtech/apkradar#113 (patchradar), the last of the six.

Why

No job but mutmut set timeout-minutes, so a hung job ran for GitHub's default of 360 minutes. On a required check that holds the pull request for six hours, and here the auto-merge this repository allows with it.

What

One timeout-minutes line per job, about three times the job's longest run in its last 40 runs (measured 2026-11-21), never under ten minutes:

Job Longest of last 40 Limit
Run benchmarks (CodSpeed) 7.0 min 25
docker (image publish) 6.4 min 20
every other job (CodeQL matrix included) ≤ 2.9 min 10
mutmut 35.8 min 350 (unchanged)

Two jobs wait on purpose, so their limit is set by the wait:

  • Security Posture: 40 (longest run 12.6 min, so three times its run is also past the 20 minutes it waits for the scanners before saying they did not finish).
  • Build and publish to PyPI: 30 (longest run 0.9 min). After the upload it waits for PyPI to show the version (wait_for_pypi.sh, 30 × 20 s) and installs it, retrying while a cache lags (install_from_pypi.sh, 10 × 30 s): 15 minutes of waiting.

tests/test_job_timeouts.py fails when a job has no limit or one not under 360, and reads both waits from the workflows: a limit shorter than the wait (plus 5 minutes for the gate, 10 for publishing) fails it. Same test as the other five Radars.

Checks

  • The new test failed before the workflows were changed (3 failed, 1 passed).
  • pytest: 2420 passed, 4 skipped (skipIfs already in the suite). ruff check src tests benchmarks scripts tools: clean.

Not to be auto-merged: merge by hand after review.

🤖 Generated with Claude Code

Without one a job runs for GitHub's default of 360 minutes, and a hung
required check holds the pull request, and its auto-merge, that long.
Each limit is about three times the job's longest run in its last 40,
ten minutes at least. Two jobs wait on purpose and get more: Security
Posture 40, past the 20 minutes it waits for the scanners, and
publishing 30, past the 15 minutes it waits for PyPI.
tests/test_job_timeouts.py reads both waits from the workflows and
holds every job to a limit.

Part of maksimtech/apkradar#113.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maksimtech maksimtech added the enhancement New feature or request label Nov 21, 2026
@codspeed

codspeed Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 11 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 17 untouched benchmarks


Comparing ci/job-timeouts (266f5d5) with main (471db43)

Open in CodSpeed

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

maksimtech added a commit that referenced this pull request Nov 21, 2026
…reports it (#109)

Debian moved trixie to openssl 3.5.9-1~deb13u1, which a fresh build
installs, and on 2026-11-21 Trivy reported CVE-2026-124709 against it
(libssl3t64, openssl, openssl-provider-legacy). The entry was written
for Docker Scout alone, so Security Posture failed on #108. 3.5.9 does
not fix it and the reason holds whichever scanner reports it: Python's
ssl exposes no QUIC. The entry drops `source`; review stays 2026-12-15.
As maksimtech/releaseradar#58 and maksimtech/exeradar#57.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Brings in #109 (CVE-2026-124709 for any scanner), so this pull request
is gated against the current exceptions. CHANGELOG: both sections
kept, Changed before Security.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@maksimtech
maksimtech merged commit a60f74d into main Nov 21, 2026
23 checks passed
@maksimtech
maksimtech deleted the ci/job-timeouts branch November 21, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant