ci: add concurrency cancellation + job timeouts to model-zoo CI#98
Merged
Conversation
Adds a per-ref concurrency group (cancels superseded PR runs only) and timeout-minutes to every job, so a PR re-push no longer stacks the heavy framework test matrices and hung installs can't run to the 6h default. No change to job behavior. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Author
|
👋 Heads-up — Code review queue is at 35 / 30 Above the WIP limit. The team convention is to review existing PRs before opening new work. Open PRs currently in Code review (oldest first):
Pull from review before opening new work. (This is a nudge from the kanban WIP check, not a block.) |
shujaatTracebloc
approved these changes
Jun 17, 2026
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.
Summary
Mechanical CI-hygiene change to
.github/workflows/ci.yml. No change to what any job does.concurrency:group keyed ongithub.ref, withcancel-in-progressscoped topull_requestevents only — so a PR re-push cancels its own superseded run instead of stacking the heavy framework test matrices. Pushes to branches are not cancelled.timeout-minutesas the first key of every job:ruff→ 10test-pytorch/test-tensorflow/test-sklearn/test-survival→ 30 (these pip-install torch/tensorflow/etc., so they're heavier)This caps hung installs at the configured limit instead of letting them run to the 6h GitHub default.
Type
CI hygiene
Test plan
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/ci.yml'))"→ YAML OKconcurrency:block + per-jobtimeout-minutesadditions; no jobruns-on/stepslines changed.🤖 Generated with Claude Code