Skip to content

ci: skip draft pull requests and bound job run time - #114

Merged
Yoshiofthewire merged 1 commit into
mainfrom
ci/draft-skip-timeouts
Nov 16, 2026
Merged

Yoshiofthewire merged 1 commit into
mainfrom
ci/draft-skip-timeouts

Conversation

@Yoshiofthewire

Copy link
Copy Markdown
Member

What changed

  • Skip drafts. pull_request triggers list types: [opened, synchronize, reopened, ready_for_review] (GitHub defaults plus ready_for_review, so marking a draft ready runs CI). Root jobs get if: github.event.pull_request.draft != true; != true keeps push, schedule and dispatch runs, where the field is null.
  • Bound run time. Every job without one gets timeout-minutes, set to max(10, 2 x the slowest of up to 20 recent successful runs), rounded up to a multiple of 5.

Timeouts

Workflow / job Observed max (min) timeout-minutes
ci.yml / go-tests 5.5 15
ci.yml / go-fuzz-wasm 3.8 10
ci.yml / go 0.1 10
ci.yml / security 1.0 10
ci.yml / docker 1.2 10
ci.yml / publish 1.0 10
ci.yml / promote 1.1 10
ky-primitives-compat.yml / compat 1.5 10
scorecard.yml / analysis 0.8 10

browser already had timeout-minutes: 40 and only gains the guard. go uses always(), so it gets the guard as (always()) && github.event.pull_request.draft != true. publish and promote need other jobs and only run on main pushes, so no guard. codeql.yml only gains the draft guard. dependency-release.yml and release-image.yml already had timeouts and have no pull_request trigger, so they are unchanged. Nothing unmeasured.

Verification

  • actionlint on every changed file: no new findings; output identical to the base branch (pre-existing shellcheck info notes only, where present).
  • PyYAML parse of each changed file, plus a script check that every job has timeout-minutes (or job-level uses:), every pull_request trigger lists ready_for_review, and every root or always() job in a pull_request workflow carries the draft guard.
  • No tests or scripts in the repo inspect workflow files.
  • Read the full diff: only the trigger types, if: guards and timeout-minutes lines change.

🤖 Generated with Claude Code

Draft PRs no longer run CI until marked ready; every job gets a measured timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Yoshiofthewire
Yoshiofthewire merged commit 40d9535 into main Nov 16, 2026
12 checks passed
@Yoshiofthewire
Yoshiofthewire deleted the ci/draft-skip-timeouts branch November 16, 2026 17:04
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.

1 participant