Repository navigation
valiant-newt-664 - #626
valiant-newt-664#626
Conversation
Saves runner minutes by cancelling in-flight CI when a PR is pushed again, and skipping builds entirely while the PR is still a draft. - Top-level concurrency group keyed on head_ref (PR) with run_id fallback so pushes to main are never cancelled. - Per-job `if: github.event.pull_request.draft != true` guards skip drafts. - Add `ready_for_review` to pull_request trigger types so promoting a draft fires CI even without a new push. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Review: APPROVE — clean CI optimization. What it doesThree coordinated changes to
Why the details are right
Impact
Minor observations (non-asks)
No changes requestedReady to merge. Also directly addresses the CI thrashing #620 inherited — the regen-drift breakage would've been caught earlier and wouldn't have re-run on every relay. 🤖 Director review |
|
Review metadata
APPROVE — CI-only change. Three targeted workflow tweaks:
No substrate, modeling, or Rust code touched — the context docs ( |
|
Review metadata
Findings
Verdict: APPROVE_WITH_COMMENTS. Nothing in this diff touches compiler substrate/modeling/test structure in a way that violates the pinned docs; the only concern is the concurrency key potentially canceling unrelated fork PR runs. |
Two fork PRs opened from branches with the same name (e.g. `patch-1`) would share `github.head_ref` and cancel each other's CI. Switch to `github.event.pull_request.number`, which is globally unique. Main pushes keep the `run_id` fallback so they still never cancel. Flagged by codex review on #626. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
briansrls
left a comment
There was a problem hiding this comment.
Review metadata
- Provider / model:
codex/gpt-5.4 - Commit:
b6ee83f6· Trigger:schedule - Thinking:
203s wall
Non-blocking — Strengths
.github/workflows/ci.ymlPR-number-scoped concurrency uses the canonical pull request identity instead of the lossy head_ref proxy, which is the right single-authority shape for cancelling stale runs..github/workflows/ci.ymlAdding ready_for_review preserves review-time CI when draft jobs are skipped, so promoting a draft does not require a no-op push to regain coverage.
✅ This looks clean; the change stays in GitHub Actions control-plane wiring and I do not see a thesis or invariant concern on the added lines.
Opened from session-dashboard for session
valiant-newt-664.