Skip to content

Build branches through their pull requests only - #41

Merged
ViktorJannicke merged 1 commit into
mainfrom
ci/push-main-only
Oct 20, 2026
Merged

ViktorJannicke merged 1 commit into
mainfrom
ci/push-main-only

Conversation

@ViktorJannicke

Copy link
Copy Markdown

ci-build.yml runs on push to main and runic/**, and on every pull_request. So every runic/* branch with a pull request builds each commit twice. The workflow also has no concurrency group, so superseded builds keep running.

Measurement

Org-wide, 2026-10-19 20:58 to 2026-10-20 ~11:20 UTC (all jobs that got a runner):

  • DynamicData: 42 push runs (16 on main, 26 on runic/*) and 26 pull_request runs. Each was the 4-cell matrix of 18–24 min jobs, 6,004 job-minutes in total. runic-sdk used 3,379 in the same window.
  • Every runic/* branch with a push run also had a pull request run for the same commits.
  • The organization (Free plan, 20 concurrent jobs shared by all repositories) was at 20 or more running jobs for 44% of its busy time. Jobs that waited more than 2 min started when about 20 were running.

Dropping the branch push runs removes 26 of the 68 runs, about 2,300 job-minutes in that window.

Change

  • push builds main only. Branches build through their pull request, and workflow_dispatch stays available for a branch without one.
  • concurrency: a newer push to a pull request cancels its running build; pushes to main queue. The release tooling reads main push runs, which are unchanged.

Background: runic-sdk CI investigation (local-planning W319-011, design/ci-actions-optimization.md).

🤖 Generated with Claude Code

Every runic/* branch ran the four-cell build twice, on push and on pull_request: 42 push and
26 pull request runs in 14 hours on 2026-10-19/20, about 6,000 job-minutes on the
organization's 20 shared runners. Pushes now build main only, and a newer push to a pull
request cancels its running build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ViktorJannicke
ViktorJannicke merged commit 8af3f24 into main Oct 20, 2026
7 checks passed
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