Skip to content

Stabilize balance fixture CI budget - #84

Merged
KevinBigham merged 3 commits into
mainfrom
codex/ci-balance-hook-budget
Jul 18, 2026
Merged

Stabilize balance fixture CI budget#84
KevinBigham merged 3 commits into
mainfrom
codex/ci-balance-hook-budget

Conversation

@KevinBigham

Copy link
Copy Markdown
Owner

What changed

The deterministic balance fixture keeps both seeds and all four simulated seasons, while its single beforeAll budget increases from 300 seconds to 600 seconds for cold GitHub runners.

Root cause

Current-main CI passed 472 web test files and 2,469 tests, but this fixture reached the exact five-minute hook ceiling before its assertions could run. No gameplay assertion, determinism check, or build failed.

Impact

Test-only. Simulation behavior, seeds, acceptance bands, save compatibility, and production bundles are unchanged.

Validation

  • focused balance test: 9 of 9 passed in 88.24 seconds
  • web typecheck passed
  • git diff --cached --check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 70474bb252

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// This deterministic fixture simulates four complete seasons serially. A
// cold GitHub runner can exceed five minutes as the live worker gains new
// season systems, so preserve the full sample instead of truncating proof.
}, 600_000);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep balance fixture within the hook budget

In environments where this fixture is as slow as the current worktree, the new ceiling still does not stabilize CI: I ran pnpm --filter @mbd/web exec vitest run src/workers/sim.worker.balance.test.ts --reporter=verbose, and Vitest failed at this beforeAll with Hook timed out in 600000ms after 622.14s, skipping all 9 balance assertions. Since .github/workflows/ci.yml runs the web tests via MBD_SKIP_SMOKE_GATE=1 pnpm verify, this changed timeout can still block the normal verify step while burning ten minutes; the fixture needs to finish under the budget or be split/moved out of the default CI path rather than only raising the cap.

Useful? React with 👍 / 👎.

@KevinBigham
KevinBigham merged commit a934376 into main Jul 18, 2026
1 check passed
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