Skip to content

Remove ci.yml and restore local-only test gating per ADR-047 - #1618

Merged
malibio merged 1 commit into
mainfrom
worktree-issue-1617-remove-ci-yml
Jul 11, 2026
Merged

malibio merged 1 commit into
mainfrom
worktree-issue-1617-remove-ci-yml

Conversation

@malibio

@malibio malibio commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Closes #1617

ci.yml contradicted ADR-047 (Accepted), which scopes GitHub Actions to
release/signing only and explicitly rejected a hosted test-gating
workflow. The local pre-push hook (scripts/test-gate.ts via Husky)
remains the sole test-enforcement mechanism. ADR-047 has been amended
in nodespace-docs to record this addition and reversal.

Co-Authored-By: Claude <[email protected]>
@malibio

malibio commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator Author

Code Review Summary

This PR deletes .github/workflows/ci.yml in its entirety (110 lines, single file, single commit) to resolve the drift between actual repository state and ADR-047 (Accepted), which explicitly scopes GitHub Actions to release/signing only and rejects any hosted test-gating workflow. This is a clean, atomic, low-risk architecture-correction change that does exactly what it says and nothing else. I verified every load-bearing claim independently (diff scope, release.yml trigger scope, gate script integrity, branch-protection state, and dangling references) rather than taking the PR description at face value — all check out.

Recommendation: APPROVE

Requirements Check (issue #1617 acceptance criteria)

  • ✅ .github/workflows/ci.yml deleted — confirmed via git diff, only file touched, 110/0 lines.
  • ✅ .github/workflows/release.yml unchanged — confirmed by reading the file in full: every job is gated on github.event_name == 'release' || github.event_name == 'workflow_dispatch'; nothing runs on pull_request or push. Not present in the diff at all (untouched).
  • ✅ nodespace-docs/decisions/047-ci-gating-policy.md updated to reconcile — confirmed (out of scope for this repo's PR, correctly so): an "Amendment (2026-07-11)" section is present, records the ci.yml add/remove cycle, and reaffirms the original Decision unchanged. This is the "re-affirm as-is" path from the issue's two valid options, not a superseding ADR — a legitimate choice, and internally consistent with the amendment text itself.
  • ✅ Local .husky/pre-push + scripts/test-gate.ts gate remains sole test-enforcement mechanism — confirmed both files exist, are wired together (pre-push invokes bun run scripts/test-gate.ts), and test-gate.ts still runs the full pyramid (test:all, cargo build --bin nodespaced, test:e2e, cargo test -p nodespace-app). No regression.
  • 📝 bun run quality:fix / bun run test:all criteria: not independently re-run for this review since there is zero product code in the diff (pure YAML file deletion) — nothing for either command to catch that a diff review wouldn't. Flagging as a Suggestion below, not a blocker.

Findings

Critical Issues

None.

Suggested Improvements

  • 🟢 Suggestion: Branch protection was verified (via gh api repos/.../branches/main/protection → 404 "Branch not protected") to have never been turned on, so the deleted workflow's own comment — "the unit and e2e jobs are intended to be REQUIRED status checks in branch protection... applied once this workflow is green" — never materialized. Good: this means deleting ci.yml cannot leave a PR permanently un-mergeable behind an orphaned required-status-check reference. Nothing to fix here, but worth stating explicitly in the PR description or a comment for the reviewer's benefit, since a required-status-check dependent on a now-deleted workflow is exactly the kind of silent breakage this class of change can cause.
  • 🟢 Suggestion: No test was added or is needed for this change — correct call. A .yml file deletion with no product code, no logic, and no script surface has nothing meaningful for bun run test:all to exercise; the ground truth here is GitHub's own Actions UI (no more CI workflow runs on the next push) plus the ADR record, not a unit test. Encoding "assert this workflow file doesn't exist" as a test would be testing configuration-as-data, which has poor signal relative to its cost.

Nitpicks

  • Nit: .claude/skills/github-issue-management/SKILL.md still contains illustrative ci.yml references (as a cautionary example of what NOT to propose per ADR-047) — confirmed these are intentional documentation of the anti-pattern, not stale leftovers, and are out of scope for this PR's diff. No action needed, flagging only to show it was checked.

Verification Notes (for transparency)

  • Diff atomicity: confirmed via git diff --name-only origin/main...HEAD — exactly one file (.github/workflows/ci.yml), fully deleted, no other product code touched.
  • Commit: single commit 5508da7, message correctly references closes #1617 and explains the ADR-047 rationale.
  • release.yml: read in full, confirmed trigger scope unchanged (release, workflow_dispatch only).
  • .husky/pre-push and scripts/test-gate.ts: read in full, confirmed present, wired, and covering the full test pyramid — no weakening.
  • nightly-webkit.yml (a third workflow file, not mentioned in the issue): confirmed pre-existing, untouched by this diff, triggered only by schedule/workflow_dispatch (not pull_request/push), and self-documented as intentionally independent of ci.yml — correctly out of scope.
  • Branch protection: confirmed disabled on main (404), so no orphaned required-status-check risk from deleting the workflow.
  • nodespace-docs ADR-047 amendment: confirmed present and consistent with this PR's stated rationale (informational cross-repo context only, correctly not part of this repo's diff).

Recommendation: APPROVE

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review recommendation: APPROVE (self-approval blocked by GitHub — PR author and reviewing account are the same user). See full review report in the PR comment above for findings and verification notes.

@malibio
malibio merged commit ec36d75 into main Jul 11, 2026
@malibio
malibio deleted the worktree-issue-1617-remove-ci-yml branch July 11, 2026 03:36
malibio added a commit that referenced this pull request Aug 7, 2026
Reaffirms the standing decision from ci.yml's removal (#1618) — GitHub
Actions is scoped to release.yml only, no workflow runs automatically on
pull_request. audit.yml (dependency-vuln scanning, added #1745) had
re-introduced a PR-triggered hosted workflow; removed to match the
current intended posture. Local pre-push hook remains the sole gate.
Revisit CI/CD on GitHub at a later time — see ADR-047's 2026-08-07
amendment in nodespace-docs.

Co-Authored-By: Claude <[email protected]>
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.

Remove ci.yml and restore local-only test gating per ADR-047

1 participant