Skip to content

chore: optimize CI — path filters, concurrency, skip release builds on PRs#7

Merged
broomva merged 1 commit intomasterfrom
chore/ci-cost-optimization
Mar 25, 2026
Merged

chore: optimize CI — path filters, concurrency, skip release builds on PRs#7
broomva merged 1 commit intomasterfrom
chore/ci-cost-optimization

Conversation

@broomva
Copy link
Copy Markdown
Owner

@broomva broomva commented Mar 25, 2026

Summary

  • Concurrency groups added to both ci.yml and release.yml — superseded runs on the same branch are auto-cancelled, eliminating wasted minutes on rapid pushes
  • Path filters on ci.yml pull_request trigger — PRs that only touch docs, markdown, or non-Rust files skip CI entirely
  • Release builds gated with if: github.event_name != 'pull_request' — the 3-platform build matrix (linux-amd64, macos-amd64, macos-arm64) and Docker build no longer run on PRs
  • workflow_dispatch added to ci.yml for manual trigger capability

Cost impact

Metric Before After
PR jobs 7 (check, test, pr-lint, control-audit, build x3, docker) 4 (check, test, pr-lint, control-audit + auto-merge)
Estimated PR CI time ~20 min ~5 min
Redundant runs on rapid push All run to completion Auto-cancelled

Files changed

  • .github/workflows/ci.yml — concurrency, path filters, workflow_dispatch, build/docker gating
  • .github/workflows/release.yml — concurrency group

Test plan

  • Open a PR touching only .md files — CI should not trigger
  • Open a PR touching .rs files — check, test, pr-lint, control-audit run; build matrix and docker do NOT run
  • Push to master — all jobs including build matrix and docker run
  • Push a tag v* — release.yml runs with concurrency group
  • Rapidly push two commits to a PR branch — first run gets cancelled

Generated with Claude Code

…n PRs

- Add concurrency groups to both ci.yml and release.yml to cancel
  superseded runs on the same branch
- Add path filters to ci.yml pull_request trigger so doc-only or
  non-Rust changes skip CI entirely
- Add workflow_dispatch trigger to ci.yml for manual runs
- Gate build matrix (3 platform release binaries) behind
  `if: github.event_name != 'pull_request'` — PRs only need
  check+test+lint, not release artifacts
- Gate Docker build behind the same condition

Net effect: PR runs drop from 7 jobs to 4 (check, test, pr-lint,
control-audit → auto-merge), saving ~15 min of billable CI per PR.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 25, 2026

Warning

Rate limit exceeded

@broomva has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 2 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 44d79de8-fec8-4736-8050-cf068e673e8a

📥 Commits

Reviewing files that changed from the base of the PR and between 3383063 and cac9827.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • .github/workflows/release.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/ci-cost-optimization

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@railway-app railway-app bot temporarily deployed to symphony / symphony-pr-7 March 25, 2026 03:22 Destroyed
@railway-app
Copy link
Copy Markdown

railway-app bot commented Mar 25, 2026

🚅 Deployed to the symphony-pr-7 environment in symphony

Service Status Web Updated (UTC)
symphony ❌ Build Failed (View Logs) Web Mar 25, 2026 at 3:22 am
2 services not affected by this PR
  • postgres
  • dashboard

@broomva broomva merged commit 0c2379a into master Mar 25, 2026
6 of 9 checks passed
@broomva broomva deleted the chore/ci-cost-optimization branch March 25, 2026 03:27
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