Repository navigation
ci: run check:changed on pre-push and skip ARC workers on drafts - #181
Conversation
Shift-left and waste elimination for the fork's ARC CI: - .vite-hooks/pre-push runs `vp run check:changed` against the release or main line the branch is closest to, so format, lint, knip, typecheck and nearby-test failures stop before a push reaches ARC. `pnpm install` already wires .vite-hooks through `vp config`; `--no-verify` skips once. A Node older than package.json engines warns and skips instead of blocking. - closura-arc-ci.yml skips the three ARC workers on draft pull requests and runs on `ready_for_review`. The required "Voice + founder inbox (Linux ARC)" check fails fast on a free hosted runner for drafts, so it is never green without the tests and never wakes ARC for a parked draft. Model: claude-opus-5-5 Task: implementation Agent: CI shift-left implementation sub-agent Harness: t3/claude-code Model-family: claude Model-generation: 5.5 Skills-SHA: none loaded; followed bot-baseline.md and repo AGENTS.md; installed identity unverified Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Independent review of head 71d9ced: 0 blocking findings. Checked: (1) The draft skip is only Non-blocking notes: converting a ready PR back to draft doesn't re-trigger ( |
Moves CI's fast checks to
git pushand stops draft PRs from using ARC runners. Part of Kameron's CI shift-left and waste-elimination request (CLO-694, the CI hardening tracking issue).Deploy: none
What changes
.vite-hooks/pre-push.pnpm installalready wires it throughvp config(core.hooksPath=.vite-hooks/_). It runsvp run check:changed <base>, the format, lint, knip, typecheck and nearby-test checks that AGENTS.md already asks for before a push.release/*ormainbranch on the push remote.enginesversion, it warns and skips, becausecheck:changedneeds Node 26 to run.tsfiles.--no-verifyorVP_GIT_HOOKS=0. Override the base withT3_PRE_PUSH_BASE.closura-arc-ci.yml).ready_for_review.ubuntu-latestand fails with "Draft pull request: the ARC workers run when it is marked ready for review." The required check therefore never shows a false green and never uses an ARC runner. Marking the PR ready reruns the full set.deploy-linealready runs onready_for_reviewand is unchanged.check:changed.This PR does not touch the Closura donor PR on permanent hold (pingdotgg#2053) or the already-merged Closura PR (pingdotgg#2068).
Found on the base, needs a fix before or at merge
check:changedfinds two failures onrelease/native-0.1.10at1f8a0720that the required check misses:@t3tools/evalstypecheck has 4 errors atevals/mcp-tool-use/run.ts:2768andrun.test.ts:1152:ProviderRegistryis missing from the Effect context.apps/server/src/provider/AgentContextBudget.test.ts:mcpToolListJsonBytesis 56852, but the budget inagentContextBudget.jsonis 55827.A
.githubor hook change makescheck:changedrun everything, so the hook will block almost every push until both are fixed. This branch was pushed with--no-verifyfor that reason only. I left both unfixed because they are outside this PR's scope.Provenance
Model: claude-opus-5-5
Task: implementation
Agent: CI shift-left implementation sub-agent
Harness: t3/claude-code
Testing
Tested with Node 26.13.1 against base
1f8a0720:actionlintpasses; the only warning is the existing unknownt3code-ci-arclabel..github/scripts/arc-ci-coverage.cjspasses (48 tests, 3 workers).git push --dry-run: blocked only by the two failures already on the base listed above. Format passes.Risk
A draft PR's required check now shows red until the PR is marked ready, where before ARC workers ran on it. The hook adds
check:changedtime togit push.How to revert
Revert this commit. To turn the hook off for a push, set
VP_GIT_HOOKS=0.🤖 Generated with Claude Code