Skip to content

feat: run the required CI checks locally with one command - #4815

Merged
hurttlocker merged 8 commits into
mainfrom
feat/verify-ci
Oct 27, 2026
Merged

hurttlocker merged 8 commits into
mainfrom
feat/verify-ci

Conversation

@hurttlocker

@hurttlocker hurttlocker commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Mechanic

Local verification could omit CI work, reject CI's conditional browser prerequisite, and fail a safe dependency addition because the command fixture emitted non-JSON audit output. Checks also ran sequentially even when CI runs them independently.

What changed

  • Add npm run verify:ci, deriving commands, check names, environments, shard arguments and audit settings from CI.
  • Run Type Check, Lint, Test Classification, all four Hermetic Unit Tests shards, Server Bundle Size, changed-file integration against origin/main, Security Audit and Governance Smoke.
  • Include 9349cc240: support CI's conditional browser prerequisite with the same case-insensitive substring condition, and test exact, containing and differently cased selected paths.
  • Return the real zero-vulnerability npm audit --json response shape from the command fixture. Exercise a safe nested is-number@7.0.0 addition through the actual verifier and shared audit parser.
  • Run independent checks concurrently, honor job dependencies, and serialize test commands sharing the local checkout. Follow nested package scripts so the route test inside npm run typecheck also owns that queue.
  • Preserve non-zero exits and CI check names for type, integration, audit, bundle, lint and shard failures.
  • Keep the CI coverage guard blocking uncovered work, document verification in AGENTS.md, and make the optional macOS proof workflow manual. Native macOS review is handled locally.

Verification

Files: tests/verify-ci-real-path.test.ts, tests/dependency-review-real-path.test.ts, tests/server-bundle-size-real-path.test.ts, tests/ci-gates-real-path.test.ts, tests/workflow-policy.test.ts, and tests/resource-owning-changed.test.ts.

P1 regression before the prerequisite correction:

verify:ci coverage: integration step needs a verify:ci equivalent
Test Files  1 failed (1)
     Tests  2 failed | 15 passed (17)

P2 regression, written before correcting the mock:

[dependency-review] npm dependency audit returned invalid data
[verify:ci] FAIL Security Audit
AssertionError: expected 1 to be 0
Test Files  1 failed (1)
     Tests  1 failed | 19 skipped (20)

The parallel-execution regression first failed on the old sequential runner:

[verify:ci] FAIL Lint
Test Files  1 failed (1)
     Tests  1 failed | 20 skipped (21)

A strengthened execution fixture then reproduced the missed indirect route-test invocation before correcting resource detection:

Test Files  1 failed (1)
     Tests  1 failed | 22 skipped (23)

Final touched-test green:

Test Files  6 passed (6)
     Tests  79 passed (79)

The command fixtures execute the verifier, guard, changed-file selector and dependency auditor through their real entry points. They require independent checks to overlap, reject overlapping test processes, enforce the governance dependency, accept the safe nested addition, and preserve the intended failing check for injected faults. The audit fixture schema was captured from a real public audit of is-number@7.0.0. Independent re-review found no remaining blocker.

npm run typecheck, NODE_OPTIONS=--max-old-space-size=8192 npx tsc --noEmit, touched-file lint, rule check and npm run test:classify passed before push.

Full npm test:

Test Files  1252 passed | 3 skipped (1255)
     Tests  9177 passed | 5 skipped (9182)

Complete npm run verify:ci result:

[verify:ci] PASS Lint
[verify:ci] PASS Security Audit
[verify:ci] PASS Test Classification
[integration-gate] summary: 3/3 files, 45/45 tests passed, 0 failed files
[verify:ci] PASS Integration Tests (changed files)
[verify:ci] PASS Server Bundle Size
[verify:ci] PASS Type Check
smoke-merge-requires-review passed: 8/8 cases
[verify:ci] PASS Governance Smoke
[verify:ci] PASS Hermetic Unit Tests
[verify:ci proof] clean: exit 0; 10m20s; PASS

Measured wall time: 10m20s, exit 0. Before the single push, the coverage guard also passed against the prospective merged workflow with fresh main 927aca5eb. All required hosted checks passed in CI run 40340246103 on 8f708cdfe; the PR is ready for review.

The Linux execution container required child reaping for exited compiler children; CI's fixture process-settlement check was unchanged.

Refs #4784
Refs #4148

@github-actions github-actions Bot added the size/L Pull request with L diff size label Oct 26, 2026
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🔍 PR Review Bot

Metric Value
Files changed 16
Additions +1025
Deletions -18
New files 8

Automated review — CI workflow

@github-actions

Copy link
Copy Markdown

📝 o8.run docs may need updating

This PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):

Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited.

@github-actions

Copy link
Copy Markdown
\n### 📝 o8.run docs may need updating\n\nThis PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):\n\n- **[Control Room](https://o8.run/docs/control-room)** — tracks \n- **[The CLI](https://o8.run/docs/cli)** — tracks \n\n_Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited._

@github-actions github-actions Bot added size/XL Pull request with XL diff size and removed size/L Pull request with L diff size labels Oct 26, 2026
@github-actions

Copy link
Copy Markdown
\n### 📝 o8.run docs may need updating\n\nThis PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):\n\n- **[Control Room](https://o8.run/docs/control-room)** — tracks \n- **[The CLI](https://o8.run/docs/cli)** — tracks \n\n_Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited._

@hurttlocker
hurttlocker marked this pull request as ready for review October 26, 2026 14:37
Only tests/test-classification.json conflicted; regenerated with
node scripts/classify-tests.mjs --write (1264 hermetic, 974 resource-owning).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A3Z6heK7tDZ6KWgy49VcZN
@github-actions

Copy link
Copy Markdown
\n### 📝 o8.run docs may need updating\n\nThis PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):\n\n- **[Control Room](https://o8.run/docs/control-room)** — tracks \n- **[The CLI](https://o8.run/docs/cli)** — tracks \n\n_Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited._

Pair the Lint overlap barrier with independent Test Classification instead of shard 1, which legitimately waits for hermetic discovery. Reuse the isolated verifier fixture for scheduler and fault probes instead of rebuilding bundles and discovering the entire checkout.

Add zero-second and 16-second discovery cases covering all eight checks, all four shards and discovery-before-shard ordering. Before the barrier fix, zero seconds passes and 16 seconds fails only mock Lint on bf37c8e. After the fix, all 25 focused tests pass. Final typecheck:fast, touched-file ESLint, rule check and classification manifest check pass.
@github-actions

Copy link
Copy Markdown
\n### 📝 o8.run docs may need updating\n\nThis PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):\n\n- **[Control Room](https://o8.run/docs/control-room)** — tracks \n- **[The CLI](https://o8.run/docs/cli)** — tracks \n\n_Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited._

@hurttlocker
hurttlocker enabled auto-merge October 27, 2026 04:31
@hurttlocker
hurttlocker added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit f96d446 Oct 27, 2026
24 of 25 checks passed
@hurttlocker
hurttlocker deleted the feat/verify-ci branch October 27, 2026 04:40
hurttlocker pushed a commit that referenced this pull request Oct 27, 2026
The merge queue failed Type Check on #4873 after #4815 landed: the new
verify:ci coverage guard recognised only the parity routing test as a
browser prerequisite, so the widened ci.yml condition read as an
unmapped integration step. List both browser tests in the guard and let
the local runner install the browser when either one is selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A3Z6heK7tDZ6KWgy49VcZN
kvnloo pushed a commit to kvnloo/o8 that referenced this pull request Nov 9, 2026
* fix: retain Review source anchors through reflow

Preserve file, source side, line and viewport offset across layout changes and delayed patch refetches. Explicit file navigation and scroll input replace the previous anchor.

Fixes o8-run#4871

Refs o8-run#3934

* fix: preserve clipped and end-of-diff review anchors

Keep a wrapped source reading point at its viewport offset and reserve the scroll range needed to retain the final line through reflow.

Fixes o8-run#4871

Refs o8-run#3934

* fix(ci): let verify:ci accept the review browser prerequisite

The merge queue failed Type Check on o8-run#4873 after o8-run#4815 landed: the new
verify:ci coverage guard recognised only the parity routing test as a
browser prerequisite, so the widened ci.yml condition read as an
unmapped integration step. List both browser tests in the guard and let
the local runner install the browser when either one is selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A3Z6heK7tDZ6KWgy49VcZN

---------

Co-authored-by: LavonTMCQ <lavontmcq@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Pull request with XL diff size

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant