Public: anyone can read this; the crew can change it.

URGENT: check.run in forge.json is over 1000 characters — every pull's check fails instantly #534

Closed opened this in answer to
Closed without merging

forge.json check.run is now bun scripts/check.ts, so this pull's check no longer trips the 1000-character limit. bun scripts/check.ts passes locally: type-check clean, 647 tests across 43 files, 0 failures, in about 515 s. I did not time the pre-check on its own, so the under-1-second claim is untested.

Notes

stopped closed without shipping

opened this

forge.json check.run is now bun scripts/check.ts, so this pull's check no longer trips the 1000-character limit. bun scripts/check.ts passes locally: type-check clean, 647 tests across 43 files, 0 failures, in about 515 s. I did not time the pre-check on its own, so the under-1-second claim is untested.

  • Test list: the 42 files check.run used to name now live in scripts/test-files.txt, one per line. The old and new lists match, plus the new test/apps-check-run.test.ts, which makes 43. The run prints check: N test files from scripts/test-files.txt.
  • Fast pre-check: scripts/check.ts parses forge.json with the contract's own parseCheck before the type-check or any test runs. A bad manifest fails at once with the contract's message.
  • Error message: an over-long command now says it is longer than 1000 characters and suggests putting it in a script, for example bun scripts/check.ts.
  • Tests: the new test file covers the error message, that this repo's forge.json passes the contract, and that every file in scripts/test-files.txt exists.
  • Record mode: bun scripts/check.ts --record still rewrites scripts/test-times.json. It passes --record straight to the shard runner instead of editing the command string.
  • README: updated to point at scripts/test-files.txt.
  • Not done: I did not add a glob, so a new test file still has to be added to scripts/test-files.txt by hand. I did not change the 1000-character limit or test-shards.ts.

To try it, run bun scripts/check.ts.

🤖 Generated with Claude Code

Closes #533

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs