Skip to content

ci: shard verify into parallel jobs, cache eliza checkout, and skip draft CI - #2402

Draft
NubsCarson wants to merge 1 commit into
developfrom
ci/shard-verify-and-skip-draft-ci
Draft

NubsCarson wants to merge 1 commit into
developfrom
ci/shard-verify-and-skip-draft-ci

Conversation

@NubsCarson

Copy link
Copy Markdown
Collaborator

Summary

Addresses the GitHub Actions CI bottlenecks and runner OOM crashes tracked in #2386 without skipping or weakening any check, test, proof, or selftest:

  1. Shard monolithic verify into 5 parallel matrix jobs under jobs.verify (.github/workflows/ci.yml, .github/actions/setup/action.yml):
    • Previously, one ubuntu-latest (4 vCPU, 16 GB RAM) runner executed all 47+ tasks at --concurrency=4 simultaneously (including @repo/app#test, Playwright Chromium @repo/app#test:browser, //#lint:js with an 8 GB V8 heap, //#analyze, and //#check), taking 42+ minutes and triggering GitHub Actions runner OOM crashes (The hosted runner lost communication with the server, e.g. main run 47400748401).
    • Splits jobs.verify into 5 focused parallel shards (verify-check, verify-test, verify-browser, verify-lint, verify-examples) at --concurrency=2, keeping YAML job ID verify (GITHUB_JOB=verify preserved for vibestack/tasks.ts and vibestack/chromium.ts):
      • verify-check: check (imports simulations-* receipts, saves shared Dafny/Quint/Eliza/pnpm/gen-seed caches, maps spec cache to the existing verify key prefix)
      • verify-test: build typecheck test (dedicated 16 GB runner with Playwright Chromium shell for node-project Chromium tests such as platform-hot-update.test.ts and vibestack-studio, restores ~/.quint read-only from the shared verify spec-cache prefix)
      • verify-browser: test:browser (dedicated 16 GB runner with Chromium, restores ~/.quint read-only from the shared verify spec-cache prefix, skips aapt2/ffmpeg/woff2)
      • verify-lint: //#no-bun //#lint:js //#lint:css //#analyze (dedicated 16 GB runner for the 8 GB ESLint heap, restores ~/.quint read-only from the shared verify spec-cache prefix, skips Chromium and Android CLI tools)
      • verify-examples: //#selftest:docs //#selftest:examples:{assistant,dashboard,fullstack,order} (skips pnpm eliza and Android CLI tools)
    • Preserves a single aggregate gate job (verify-gate with display name: verify) requiring verify, vibestack-precompute-simulations, and vibestack-fixture-selftests to succeed (never turning cancelled runs into failures), and wires queue-launcher-release to depend on it.
  2. Eliminate duplicate @repo/app#test and @repo/app#test:browser runs before //#check (turbo.json):
    • apps/app, apps/agent, and apps/cloud declare link: dependencies on .eliza, so vibestack/testing/check.ts already executes their Node test suites directly inside //#check, while test:browser produces no test-result-*.json receipt.
    • Narrows generic check.dependsOn to ["build"] and drops the redundant link: #test / #test:browser edges from //#check.dependsOn. All 48/48 tasks of pnpm verify still run in full across the 5 parallel shards (verified via Turbo --dry=json union check), while verify-check no longer runs @repo/app#test twice or duplicates @repo/app#test:browser.
  3. Cache pinned .eliza checkout across verify shards (.github/workflows/ci.yml):
    • Restores and saves <XDG_CACHE_HOME|~/.cache>/alpha/eliza-vibestack/<commit12> keyed by .nvmrc + exact 40-char commit from eliza.lock.json (continue-on-error: true; only verify-check saves on miss), then runs pnpm eliza to verify .alpha/ready.json and link .eliza.
  4. Stop draft PR queue saturation and cancel superseded non-default branch pushes (.github/workflows/ci.yml):
    • Adds ready_for_review to on.pull_request.types and skips heavy CI jobs while pull_request.draft == true, so marking a draft PR ready immediately triggers full CI.
    • Enables concurrency.cancel-in-progress for pull_request and non-default branch push runs while keeping the default branch (main) strictly non-cancelling.
  5. Selftest coverage (vibestack/selftests/docs.ts):
    • Updates //#selftest:docs to verify matrix.eliza == true on every verify shard that runs Eliza-dependent tasks, ready_for_review in on.pull_request.types, verify-gate named verify, and exact 1:1 coverage of every task in pnpm verify.

Verification (Boat vibestack-remote)

  • YAML parse (yaml parseDocument, 0 errors, 0 warnings) on .github/workflows/ci.yml and .github/actions/setup/action.yml: PASS
  • turbo.json JSON parse + Turbo --dry=json union check across all 5 shards: PASS (48/48 tasks matched, missing: [], extra: []; verify-check excludes @repo/app#test, @repo/app#test:browser, @repo/ui#test, @repo/ui#test:browser, @repo/cli#test, @repo/agent#test, @repo/cloud#test)
  • pnpm no-bun: PASS
  • pnpm exec node vibestack/spec.ts tasks //#selftest:docs //#typecheck: PASS (8/8 docs selftests, 0 failures)
  • pnpm exec eslint --max-warnings 0 vibestack/selftests/docs.ts: PASS (0 errors, 0 warnings)
  • pnpm exec jscpd --threshold 0 vibestack/selftests/docs.ts: PASS (0 clones, 0.00%)
  • git diff --check + pure ASCII hygiene (em=0, en=0, nonAscii=[]): PASS

Refs #2386. Opened as a Draft PR for review before enabling on live CI.

This branch was previously deployed

1 inactive deployment
turbo-cache-read — de609e71 Deployed Dec 4, 2026 by NubsCarson via build #5841
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.

1 participant