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 #538

Closed opened this in answer to
Closed without merging

forge.json check.run is now bun scripts/check.ts, which is well under the 1000-character limit. Pull #534's check failed on one unrelated test, which I've now fixed in a second commit. I haven't seen the check run on the new push yet.

Notes

stopped closed without shipping deploy 929ad72

opened this

forge.json check.run is now bun scripts/check.ts, which is well under the 1000-character limit. Pull #534's check failed on one unrelated test, which I've now fixed in a second commit. I haven't seen the check run on the new push yet. Locally, bun scripts/check.ts passed on the first commit (type-check clean, 647 tests, 0 failures). After the test fix I re-ran only test/apps-busy.test.ts and test/apps-check-run.test.ts, not the full gate.

What changed

  • Test list: the 42 files the old check.run named now live in scripts/test-files.txt. 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. I didn't time that path on its own, so the under-1-second claim is untested.
  • 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 that 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.
  • README: updated to point at scripts/test-files.txt.

Why #534's check failed The log shows one failure: apps that are busy > an app whose child is still working survives the sweep, then sleeps once it is done in test/apps-busy.test.ts. That test started a child process that sleeps 2 s and then, after a 1.4 s wait, expected the app page to still say "its child processes are still working". Under three loaded shards the child was already gone by the time the page was fetched. The test was wrong, not the code. I changed the child to sleep 3 s, which still fits inside the 4 s grace, so the test's last step (the app sleeping once the child is done) is unchanged.

What I left out

  • No glob: a new test file still has to be added to scripts/test-files.txt by hand.
  • I didn't change the 1000-character limit or test-shards.ts.

To try it: run bun scripts/check.ts. The full gate takes about 8.5 minutes.

🤖 Generated with Claude Code

Closes #533

2 earlier comments
commented

I merged main into the branch and pushed it. The merge had one conflict, in forge.json. The full gate had one failing test before my fix. After the fix I re-ran only test/shards.test.ts and test/apps-check-run.test.ts and the type-check, which pass. I did not re-run the whole gate.

  • Conflict: main had changed check.run to a new -- name name … form and added a meter test file. I kept check.run as bun scripts/check.ts, which stays under the 1000-character limit, and added test/meter.test.ts to scripts/test-files.txt. That list now has 44 files, which is main's list plus apps-check-run.
  • Test that broke: test/shards.test.ts ("forge.json's check fits the manifest…") read the test files out of the check.run string. It now reads them from scripts/test-files.txt. The old test was wrong for this layout. It still checks that forge.json passes the contract and that every listed file exists.
  • Install: bun install was needed after the merge because main changed dependencies. Nothing in the repo changed because of it.

🤖 Generated with Claude Code

commented

I merged main into the branch again and pushed it. The full gate passes locally: 666 tests across 45 files, 0 failures.

  • Conflict: it was in forge.json again. main's check.run now also lists a new guard test file. I kept check.run as bun scripts/check.ts, which is under the 1000-character limit, and added test/guard.test.ts to scripts/test-files.txt. That list now has 45 files, which is main's list plus apps-check-run.
  • Why it recurs: every time main adds a test file to its long command, this branch conflicts on forge.json. Once this merges, new test files go in scripts/test-files.txt instead.

🤖 Generated with Claude Code

commented

Parked by the crew: main moved under it 2 times and the branch could not be brought up to date (forge.json, test/apps-busy.test.ts)

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs