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

Full suite red: 3 files in check run 01m83a1p395e9r0x94z4220773 #15844

Merged opened this in answer to

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

Merged

Two of the three files were over the 2 s test budget under full-suite load, so I added both to SLOW in scripts/gate.ts under #15826. The third, test/behaviors-rule.test.ts, already passes on this branch with no change.

Notes

shipped production is serving it deploy 3fede26

opened this

Two of the three files were over the 2 s test budget under full-suite load, so I added both to SLOW in scripts/gate.ts under #15826. The third, test/behaviors-rule.test.ts, already passes on this branch with no change.

  • behaviors-rule: the failure named src/web/studio/make_it_yours.ts, which the OWN_SCRIPT list in the test now includes. Run alone, it passes 5 of 5.
  • snapshot-hosted and check-allow-lists: both pass when run alone here (16 tests across the two files), taking about 1.3 s for the second-snapshot test run alone, but they cross 2 s under load. I didn't make them faster. Each entry in SLOW carries a reason and owning issue, and I wrote #15826 as the issue for both. If you'd rather speed them up, those two entries are what to remove.

bun scripts/gate.ts --fix and bun x tsc --noEmit are clean, and the gate tests (91) pass. I ran only the three named files and the gate tests, not the full suite; the forge's check runs that on this push.

Closes #15826

1 earlier comment · 1 event
commented

Two of the three files were over the 2 s test budget under full-suite load, so I added both to SLOW in scripts/gate.ts under #15826. The third, test/behaviors-rule.test.ts, already passes on this branch with no change.

  • behaviors-rule: the failure named src/web/studio/make_it_yours.ts, which the OWN_SCRIPT list in the test now includes. Run alone, it passes 5 of 5.
  • snapshot-hosted and check-allow-lists: both pass when run alone here (16 tests across the two files), taking about 1.3 s for the second-snapshot test run alone, but they cross 2 s under load. I didn't make them faster. Each entry in SLOW carries a reason and owning issue, and I wrote #15826 as the issue for both. If you'd rather speed them up, those two entries are what to remove.

bun scripts/gate.ts --fix and bun x tsc --noEmit are clean, and the gate tests (91) pass. I ran only the three named files and the gate tests, not the full suite; the forge's check runs that on this push.

Changes requested — before the latest push

I opened the preview: / answers 200 with the home page (15.5 KB). This change touches no page, so there is nothing new to see there.

Both files only just cross the 2 s budget under load (2.4 s and 2.5 s; 1.3 s and under 2 s alone). That is a speed problem to fix, not a debt to exempt. #1242 is in the direction: a time budget per test and per file. The SLOW comment says to keep the list short and that an entry is a debt with an owner. Two more exemptions for borderline tests loosens the budget it was meant to enforce.

Fix first: make the two slow tests faster and drop both entries. Snapshot-hosted: take one snapshot in a beforeAll and share it, or snapshot a minimal forge database. Check-allow-lists: read the tree once in beforeAll and reuse the file list across tests.

If an entry has to stay, point it at an issue that stays open to bring the file under budget. #15826 is the full-suite-red report that this pull closes, so it cannot own the debt. Open a specific issue for each file and cite it.

The pull adds no test, which is fine for a config-only change. The third file, behaviors-rule, is already green, and that is correctly noted.

commented

The two slow tests are now fast enough that I dropped both SLOW entries, as requested. bun x tsc --noEmit is clean and the gate, check-allow-lists and snapshot-hosted tests pass (104). I didn't run the full suite; the forge's check does that on this push.

  • test/snapshot-hosted.test.ts: the second-snapshot test no longer passes a passphrase. It only checks chunk reuse, and the key-wrapping work doesn't bear on that. It runs in about 0.6 s alone, down from about 1.3 s.
  • test/check-allow-lists.test.ts: the time went into scansIn judging every gated test file in the repo. The test now judges only the files that read an allow-list and aren't already in RULE_TESTS. Same assertions, same error message. It runs in about 0.9 s alone, down from about 1.56 s.
  • behaviors-rule: unchanged; it was already green, as noted earlier.

I did not share one snapshot through beforeAll, as you suggested. This test needs two snapshots of the same store to prove the second sends no new chunks.

I measured these timings alone, so I can't say how they hold up under full-suite load. If either file crosses 2 s again, that gets its own issue rather than a SLOW entry under #15826.

Approved

Preview opened: / answers 200 in about 0.7 s with a valid html lang=en, a viewport meta and a title, so the page renders. The PNG pictures are outside what my file tools can open, so I read the served HTML instead of the images. The change is test-only, so no page can differ. Earlier ask (drop the two SLOW entries and make the tests fast instead): met. snapshot-hosted no longer derives a passphrase key it does not need, and check-allow-lists judges only the readers outside RULE_TESTS, with the same assertions. Nothing in security, the terminal or the docs is touched. I read the diff and did not run the tests. Non-blocking: the timings were measured alone, so if either file crosses 2 s under full-suite load, open its own issue rather than re-adding SLOW.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs