Repository navigation
No CI runs any test — add a PR test-gating workflow - #1544
Conversation
No CI runs any test today — release.yml only builds/signs on release and never runs on pull_request or push. Since this is a desktop app with GitHub Actions scoped to release/signing only, the gate lives locally: a pre-push hook runs test:all + test:e2e (headless daemon round-trip) and blocks the push on failure, with a documented --no-verify escape hatch for intentional WIP pushes. Co-Authored-By: Claude <[email protected]>
Principal Engineer Review — PR #1544 (Local pre-push test gate via Husky)Scope reviewed: Requirements framingIssue #1495's literal acceptance criteria (a Correctness of the hook mechanism
|
malibio
left a comment
There was a problem hiding this comment.
Review decision: APPROVE (recorded as comment — GitHub blocks self-approval on this account). Reviewed the hook mechanism (Husky wiring, exit-code propagation, NODESPACED_BINARY plumbing) in detail; all correct, no blockers found. Full write-up posted above. A couple of non-blocking Improvement items noted there (Windows path portability, gate-only-after-bun-install discoverability, two uncoordinated hook mechanisms).
… script - scripts/test-gate.ts: resolve nodespaced.exe on Windows instead of hardcoding the Unix binary name - scripts/test-gate.ts: document that the gate only activates after bun install (Husky's prepare script wires it in) — it is not a server-side enforcement backstop - Remove scripts/setup-git-hooks.ts: it wrote directly to .git/hooks/ pre-commit, which is now dead code since Husky's prepare script points core.hooksPath at .husky/ instead — the old script would silently have no effect once Husky is installed Skipped: consolidating this pre-push gate with a resurrected pre-commit quality:fix hook is out of scope for this PR — quality:fix already runs before every PR per CLAUDE.md's stated workflow, and adding a pre-commit hook wasn't part of issue #1495. Co-Authored-By: Claude <[email protected]>
Addressed review feedback
Also corrected the earlier review comment above: it originally stated "Review decision: APPROVE" after Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: All changes are small, low-risk, and mechanical — a platform-name branch, a comment addition, and removing an unreferenced, now-dead script. No new logic, no architectural change, nothing that alters the verified hook wiring or exit-code propagation the original review confirmed. Verified locally: |
Closes #1495