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

Four tests fail on main or by turns, so every pull's check is red for reasons… #16334

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

This pull covers only the newest comment on #16213. That comment is the two web ui failures on #16319's check, plus the order-dependent talk-page and tui-talk-receipts tests. It leaves the issue's original items 1–6 undone.

Notes

opened this

This pull covers only the newest comment on #16213. That comment is the two web ui failures on #16319's check, plus the order-dependent talk-page and tui-talk-receipts tests. It leaves the issue's original items 1–6 undone. Only test files changed.

I ran the three touched files in file order: 142 pass, 0 fail. tsc and gate.ts are clean. talk-page and tui-talk-receipts also pass under --randomize for the seeds I ran (six and eight). Those runs predate the final talk-page edit, and I did not rerun them afterwards. I did not run the full suite.

What changed

  • web ui raw/tree failing together in about 3 ms. The cause is in the setup. git() in test/web-ui.test.ts returned the exit code and nobody checked it, and the /new response went unchecked too. A refused first push (item 6 in the issue) left mel/proj empty without any error. Only the tests that read its files then failed, with no cause shown. git() now throws with git's own stderr, and the setup throws if /new doesn't answer 303. A bad push now fails the setup with the reason in the log. I have not reproduced the refused push or found its cause.
  • test/talk-page.test.ts order dependence. Several tests shared state through one app and users. A beforeEach now clears conversation and conversation_held. The "1 waiting" badge on the Talk button came from a confirm left in conversation_held, which a cascade from conversation doesn't reach. The talk --about terminal test now makes its own repositories instead of reading ones an earlier test created. The page-size test now leaves out the palette-index block, which grows with whatever other tests created.
  • test/tui-talk-receipts.test.ts. "another person sees none of it" asserted the issue was closed, which only holds if it runs before the undo test. It now asserts that bob's screen leaves the state as it was.

Not done

  • The check log is cut at 524 KB and drops the first Expected/Received line. I did not touch that.
  • web-ui.test.ts stays order-dependent by design: its labels, palette and private-raw tests share state with one another. It fails under --randomize and I left it alone.
  • Items 1–6 from the original body of #16213 are untouched: the base-comparison counting, web-apps, the stalled-brief test, tui-offers, the SSH port test, the pull check reading green when a deploy is newest, and the refused first push.
  • I did not run flake-hunt.ts admit.

To try it, run bun test test/talk-page.test.ts --randomize --seed=5. It failed before on the size and "Talk is one tap away" tests. Run tui-talk-receipts the same way with --seed=1, which failed on the closed-state assertion.

🤖 Generated with Claude Code

Closes #16213

2 earlier comments · 1 event
commented

This pull covers only the newest comment on #16213. That comment is the two web ui failures on #16319's check, plus the order-dependent talk-page and tui-talk-receipts tests. It leaves the issue's original items 1–6 undone. Only test files changed.

I ran the three touched files in file order: 142 pass, 0 fail. tsc and gate.ts are clean. talk-page and tui-talk-receipts also pass under --randomize for the seeds I ran (six and eight). Those runs predate the final talk-page edit, and I did not rerun them afterwards. I did not run the full suite.

What changed

  • web ui raw/tree failing together in about 3 ms. The cause is in the setup. git() in test/web-ui.test.ts returned the exit code and nobody checked it, and the /new response went unchecked too. A refused first push (item 6 in the issue) left mel/proj empty without any error. Only the tests that read its files then failed, with no cause shown. git() now throws with git's own stderr, and the setup throws if /new doesn't answer 303. A bad push now fails the setup with the reason in the log. I have not reproduced the refused push or found its cause.
  • test/talk-page.test.ts order dependence. Several tests shared state through one app and users. A beforeEach now clears conversation and conversation_held. The "1 waiting" badge on the Talk button came from a confirm left in conversation_held, which a cascade from conversation doesn't reach. The talk --about terminal test now makes its own repositories instead of reading ones an earlier test created. The page-size test now leaves out the palette-index block, which grows with whatever other tests created.
  • test/tui-talk-receipts.test.ts. "another person sees none of it" asserted the issue was closed, which only holds if it runs before the undo test. It now asserts that bob's screen leaves the state as it was.

Not done

  • The check log is cut at 524 KB and drops the first Expected/Received line. I did not touch that.
  • web-ui.test.ts stays order-dependent by design: its labels, palette and private-raw tests share state with one another. It fails under --randomize and I left it alone.
  • Items 1–6 from the original body of #16213 are untouched: the base-comparison counting, web-apps, the stalled-brief test, tui-offers, the SSH port test, the pull check reading green when a deploy is newest, and the refused first push.
  • I did not run flake-hunt.ts admit.

To try it, run bun test test/talk-page.test.ts --randomize --seed=5. It failed before on the size and "Talk is one tap away" tests. Run tui-talk-receipts the same way with --seed=1, which failed on the closed-state assertion.

🤖 Generated with Claude Code

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

I couldn't read the feedback on this pull, so I changed nothing and pushed nothing. The pull's status shows one changes-requested review, but /pulls/16334/reviews returns []. The only comment I could find is my own description, and there are no inline threads. If you send the review text, I'll address it.

The one gap I had flagged myself was that the final talk-page edit hadn't been rerun under --randomize. I closed it:

  • Randomized runs: talk-page and tui-talk-receipts together, seeds 1, 5 and 9: 108 pass, 0 fail each time.
  • web-ui in file order: 34 pass, 0 fail.

The scope is the same as in the description:

  • Changed: only the web ui setup (git() now throws with git's stderr, and /new must answer 303), and the order dependence in talk-page and tui-talk-receipts.
  • Not done: items 1–6 of #16213, the check log's 524 KB cut, and making web-ui.test.ts order-independent. It still fails under --randomize.
  • Not run: the full suite, as before.

To try it, run bun test test/talk-page.test.ts test/tui-talk-receipts.test.ts --randomize --seed=5.

commented

This pull now makes web-ui.test.ts order-independent and strengthens the other two tests. The refused first push is still unexplained, so I opened #16335 for it. Only test files changed.

1. Refused first push (#16335). I couldn't reproduce it. I ran the two failing tests 24 times, eight at a time, and ran web-ui under eight --randomize seeds. The first push was never refused. The setup still throws with git's stderr and the /new status, so the next occurrence names its cause. I did not add a retry, since no cause is proven.

While looking I found a different cause of the same kind of failure, and fixed it. The profile test changed mel's email, which unverifies mel. After that, /new answered 422 ("That name won't work"), and a later push failed with repository … not found. That only happens when the profile test runs before other tests, so it is not the check's cause. The test now uses its own account, pat.

2. web-ui.test.ts under --randomize.

  • The labels test asserted that the page's <style> held exactly one rule. The repository's label picker lists every label, so the renamed label's rule also appeared. It now accepts any set of .lc-xxxxxx rules.
  • The stranger test assumed the labels test had already run. It now records the labels before and compares against that.
  • Eleven seeds (1, 2, 4–7 and 9–12) plus file order: 0 fail, 34 pass in file order. Seed 3 was clean after the profile fix and before the label fixes, and I didn't rerun it afterwards.

3. Rerun after the last edit. talk-page and tui-talk-receipts pass under --randomize at seeds 1, 5 and 8 (108 pass, 0 fail each). tsc is clean. gate.ts --fix rewrote nothing; it reports one over-long comment line in talk-page.test.ts and leaves it to the nightly rewrap.

Smaller points.

  • Receipts test: it no longer compares against its own before. It now checks that bob has no undoable receipts, presses u on his screen, and checks that the issue's state and alice's receipt list are unchanged.
  • Page-size cap: the comment now says the cap measures the page without its palette index.

I did not run the full suite or flake-hunt.ts admit, and the check log's 524 KB cut is untouched.

To try it, run bun test test/web-ui.test.ts --randomize --seed=2. It failed before on the labels test.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs