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
Check · Review · Land · Live done — Landed and live in production.
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.
shipped production is serving it deploy 294a933
2 earlier comments · 2 events
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 uiraw/tree failing together in about 3 ms. The cause is in the setup.git()intest/web-ui.test.tsreturned the exit code and nobody checked it, and the/newresponse went unchecked too. A refused first push (item 6 in the issue) leftmel/projempty 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/newdoesn'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.tsorder dependence. Several tests shared state through one app and users. AbeforeEachnow clearsconversationandconversation_held. The "1 waiting" badge on the Talk button came from a confirm left inconversation_held, which a cascade fromconversationdoesn't reach. Thetalk --aboutterminal 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 wasclosed, 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.tsstays order-dependent by design: its labels, palette and private-raw tests share state with one another. It fails under--randomizeand 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 pullcheckreading 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
Test-only, and the direction is right: the setup now fails with git's own words, and the talk-page and receipts tests no longer lean on file order. Three things to fix in one round.
- The web-ui flake is still there.
git()and/newnow report a refused first push, but nothing stops it. The cause is unfound, soweb uiraw/tree can still fail on main by turns, and a flaky test staying is a Never. Find why the first push is refused and fix it. A likely place to look is the repo or hook being created while the push starts, so retry only if that is the proven cause. If you can't reproduce it, say what you tried and open an issue for it. The pull is not done until the failure is explained or tracked. web-ui.test.tsstill fails under--randomizebecause its tests share state. That is the same class of flake you fixed in talk-page. Either give the labels, palette and private-raw tests their own setup, or run them in onedescribethat says it is ordered. Leaving it as a known fault is not enough.- You say the
--randomizeruns predate the last talk-page edit. Reruntalk-pageandtui-talk-receiptsafter the final edit, at least with--seed=5and--seed=1, and give the result. Thentscandgate.tsonce more.
Smaller: the receipts assertion toBe(before) can't fail if bob's screen did nothing and before was already wrong. Add a second assertion that makes the claim exact, for example that bob's screen leaves the issue's state and receipts unchanged. The page-size test now strips the palette index. Say in the comment that the cap measures the page without it, so the next person who raises the cap knows.
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-pageandtui-talk-receiptstogether, seeds 1, 5 and 9: 108 pass, 0 fail each time. web-uiin file order: 34 pass, 0 fail.
The scope is the same as in the description:
- Changed: only the
web uisetup (git()now throws with git's stderr, and/newmust answer 303), and the order dependence intalk-pageandtui-talk-receipts. - Not done: items 1–6 of #16213, the check log's 524 KB cut, and making
web-ui.test.tsorder-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.
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-xxxxxxrules. - 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, pressesuon 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
Test-only change since 5dcf9967: no page, no UI, nothing for a phone or keyboard to hit, so there is no preview behaviour to judge. Earlier asks, as I read them in this diff: (1) bob's receipts screen no longer leans on the issue being closed. It now checks bob has no receipts, presses u, and checks the issue state and alice's list are unchanged. Met. (2) The page-size cap comment now says it measures the page without its palette index. Met. (3) web-ui no longer depends on file order for labels and the stranger test, and the profile test uses its own account pat so mel stays verified. Met. (4) The setup fails loudly: git throws with its stderr and /new must answer 303. Met. The refused first push is still unexplained, but it is filed as #16335, which is the right place. Nothing is added to the product, no dependency, no README change. Two things I would do next, both non-blocking: (a) Non-blocking: beforeEach in talk-page clears whole tables on a shared app. If a later test seeds conversations in beforeAll, it will be wiped, so seed inside the test or a nested beforeEach. (b) Non-blocking: the label-rule regex in web-ui now accepts any set of rules, so it no longer proves that nothing static rides along. Add a separate check that no rule outside .lc- appears in that <style>.
This pull covers only the newest comment on #16213. That comment is the two
web uifailures 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.
tscandgate.tsare clean.talk-pageandtui-talk-receiptsalso pass under--randomizefor the seeds I ran (six and eight). Those runs predate the finaltalk-pageedit, and I did not rerun them afterwards. I did not run the full suite.What changed
web uiraw/tree failing together in about 3 ms. The cause is in the setup.git()intest/web-ui.test.tsreturned the exit code and nobody checked it, and the/newresponse went unchecked too. A refused first push (item 6 in the issue) leftmel/projempty 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/newdoesn'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.tsorder dependence. Several tests shared state through one app and users. AbeforeEachnow clearsconversationandconversation_held. The "1 waiting" badge on the Talk button came from a confirm left inconversation_held, which a cascade fromconversationdoesn't reach. Thetalk --aboutterminal 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 wasclosed, 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
web-ui.test.tsstays order-dependent by design: its labels, palette and private-raw tests share state with one another. It fails under--randomizeand I left it alone.web-apps, the stalled-brief test,tui-offers, the SSH port test, the pullcheckreading green when a deploy is newest, and the refused first push.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. Runtui-talk-receiptsthe same way with--seed=1, which failed on the closed-state assertion.🤖 Generated with Claude Code
Closes #16213