Public: anyone can read this; the crew can change it.
app-home-batched boots one forge for the file, and each test has its own account and repositories #17805
Merged 6h 49m ago, live in production
Now the file boots one forge and each test gets its own admin account and private repositories, so the tests stay independent of their order. Not run locally, and no quiet-runner figure exists: this pull's check is the first measurement. 🤖 Generated with Claude Code
-
Reviews
Changes requested — before the latest pushThe five tests pass for me, three runs in a row. The isolation the pull claims is not there yet, though, and it is the whole point of this change. Two fixes, both in the test file.
- Every test account is an admin (
account(who, true)). The header says no test's rows reach another's page, and the repositories are private. But an admin sees every private repository, soann's 200 issues and 40 pulls are visible tofay,leaandsamonce they run, and the page's cost depends on test order. Make the owners non-admin.bobalready is one. If the home needs an admin, give only that one test an admin, and say why. - The
agentfallback is shared state.assignee = agent?.id ?? owner.idassigns to one agent for every test when an agent exists, so each home's rows pile onto the same assignee. Always assign toowner.id, so the account is the only thing a test reads.
Smaller:
forgeRepo: "alice/forge"still names an account that no longer exists in this file. Use a name that is real here, or drop it if the default works.ApprovedApproved. One forge per file, and each test builds its own account (
ann,fay,lea,sam,gus) with its own private app, fork and rows. I ran the file twice (5 pass each) andtsc --noEmitis clean.The earlier comment about admin accounts and a shared agent assignee does not match this head.
account()takes no admin flag, nothing here is an admin (line 88 says why), rows are assigned toowner.id, andforgeRepois gone. So those points are already met.Two things I would do next:
bob, the shared owner of theelsewhere-*repositories, is the first user created. If a test ever needs an admin, make that one test's account an admin by name rather than relying on creation order.- The slack constants (3 and 4) are tolerances on a count. Add a line saying which statements account for the 4 on the live-shape test, so the next person can tell a real per-row loop from noise.
- Every test account is an admin (
-
Checks
shipped production is serving it deploy c4333e8
-
History
- app-home-batched boots one forge for the file and gives each test its own account and repositories (#17629) be1bbaa
- Merge pull request #17785 from sold/game-link-words 361c49e
- A saved model account can be edited, and Remove works from every page (#17786) dea9212
- A game box's command is never lost to its agent's update (#17791) c7fd7c1
- The branches page lists 30 rows a page, and a branch with a missing commit no longer empties it (#17790) 4a9e998
- Talk: choose the model where you write, in the build composer too, and it is remembered (#17789) 4b28afa
- Games: the terminal's L and the account page give a link code by one rule (#17610) da5f69b
- The branch and tag menu lists the newest few, with a find box for the rest (#17784) f20ac5b
- A test of a broken ledger gives its verdict back, so no later test reads it (#17788) 15f80d7
- A preview whose build was cut off is built again, never woken on empty data (#17775) 48bec96
- Games: everyone signed in can link a Minecraft name (#17610) 74462bc
- Merge pull request #17777 from sold/leaf-files-1 ca3a44f
- Games: someone not linked is told each step to link (#17610) 735cf40
- A new repository takes one git process, not two: the reflog setting is written into its config (#17781) fb6f1c8
- Four child processes started with an empty environment also skip .env files (#17779) 789c4a8
- A snapshot's full collection is a named job, so a stall line says when it held the loop (#17780) dc59f97
- The file parts of a cloud node sit with the other shared parts (#17532) 52b64c9
- Merge remote-tracking branch 'origin/main' into sold/leaf-files-1 6cd2d57
- Merge pull request #17778 from sold/held-worlds 8d747cf
- Games: one list of what a player's game needs, with what those mods require (#17738) 89f7c82
#17505 made this file's whole setup run before each of its 5 tests: a forge boot, two accounts, three repositories and their commits, a sign-in, and two page reads three times each. Its four reds in main's verify at 01:43Z and the bisects took 2.06 to 2.59 s of CPU against a 2 s budget.
Now the file boots one forge and each test gets its own admin account and private repositories, so the tests stay independent of their order. Not run locally, and no quiet-runner figure exists: this pull's check is the first measurement.
🤖 Generated with Claude Code