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

Main red: docs-openapi-alias and empty-words-all still fail after #16814 #16870

Closed opened this in answer to
Closed without merging

Four empty states now use the shared empty-words table, so test/empty-words-all.test.ts should pass on this branch. The four are gifts.ts, read-grants.ts, appflags.ts and render/reg.ts. I ran test/empty-words-all.test.ts alone before the change, and it failed on exactly those four files.

Notes

opened this

Four empty states now use the shared empty-words table, so test/empty-words-all.test.ts should pass on this branch. The four are gifts.ts, read-grants.ts, app_flags.ts and render/reg.ts.

I ran test/empty-words-all.test.ts alone before the change, and it failed on exactly those four files. I did not rerun it alone after the change. A run of the empty-state, gifts and app-flags tests plus docs-openapi-alias came back 142 pass, 0 fail, and tsc and the design lint are clean. The full bun test was not run, so the other three repo-wide bun scripts/fast.ts tests were not run either; scripts/fast.ts named 3,048 files, over its 5-minute budget, and I picked tests myself.

What changed

  • src/core/empty_words.ts has four new entries: gifts, readGrants, appFlags and values.
  • The four pages draw them with emptyLine(kind) instead of wording their own "No …" paragraph. The ratchet table in the test is untouched.
  • The app-flags line now reads "No flag is declared. Add <flags file> to the repository." It was one sentence with a colon, and the file name is no longer in monospace.
  • No page, route, action or tool changed, so I added no TUI or how-to change. The commit line says No door:.

docs-openapi-alias It passes on this branch, so I changed nothing for it. It may have been fixed on main after #16814, or it may depend on something this sandbox lacks. I did not check main's history for which.

Why these pages got past their own pull checks The ratchet is a repo-wide count: any file with more "No …" empty states than it is named for fails. Each of these four pages was added with a bare <p class="muted small">No …</p>, which the pattern in the test does catch. Pull checks seem to run only the tests scripts/fast.ts names from the diff, and a new page file reaches the test through a repo-wide directory scan, not an import. I could not see the check logs, so this is a guess. If it holds, the offenders landed because that test never ran on their pulls, and it surfaced only in main's full check. A fix would be to make fast.ts always name empty-words-all.test.ts when src/web/ changes. I did not make that change here.

How to try it Run bun test test/empty-words-all.test.ts. On the pages, open /gifts on an account with no gifts, a mirror's read-grants section, and an app with no flags file.

Closes #16847

5 earlier comments
commented

Four empty states now use the shared empty-words table, so test/empty-words-all.test.ts should pass on this branch. The four are gifts.ts, read-grants.ts, app_flags.ts and render/reg.ts.

I ran test/empty-words-all.test.ts alone before the change, and it failed on exactly those four files. I did not rerun it alone after the change. A run of the empty-state, gifts and app-flags tests plus docs-openapi-alias came back 142 pass, 0 fail, and tsc and the design lint are clean. The full bun test was not run, so the other three repo-wide bun scripts/fast.ts tests were not run either; scripts/fast.ts named 3,048 files, over its 5-minute budget, and I picked tests myself.

What changed

  • src/core/empty_words.ts has four new entries: gifts, readGrants, appFlags and values.
  • The four pages draw them with emptyLine(kind) instead of wording their own "No …" paragraph. The ratchet table in the test is untouched.
  • The app-flags line now reads "No flag is declared. Add <flags file> to the repository." It was one sentence with a colon, and the file name is no longer in monospace.
  • No page, route, action or tool changed, so I added no TUI or how-to change. The commit line says No door:.

docs-openapi-alias It passes on this branch, so I changed nothing for it. It may have been fixed on main after #16814, or it may depend on something this sandbox lacks. I did not check main's history for which.

Why these pages got past their own pull checks The ratchet is a repo-wide count: any file with more "No …" empty states than it is named for fails. Each of these four pages was added with a bare <p class="muted small">No …</p>, which the pattern in the test does catch. Pull checks seem to run only the tests scripts/fast.ts names from the diff, and a new page file reaches the test through a repo-wide directory scan, not an import. I could not see the check logs, so this is a guess. If it holds, the offenders landed because that test never ran on their pulls, and it surfaced only in main's full check. A fix would be to make fast.ts always name empty-words-all.test.ts when src/web/ changes. I did not make that change here.

How to try it Run bun test test/empty-words-all.test.ts. On the pages, open /gifts on an account with no gifts, a mirror's read-grants section, and an app with no flags file.

commented

<!-- look-pages dae5e3a2cd7b --> Look pages for dae5e3a, from the gate:

  • look pages (inferred): this pull changes src/web/pages/app_flags.ts, src/web/pages/gifts.ts, src/web/pages/read-grants.ts and 1 more; the forge pictures / (src/web/render/reg.ts), /docs (src/web/render/reg.ts), /explore (src/web/render/reg.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

Main has had no passing full check since ~10 AM CT. This pull's check failed, and #16874 now targets the same empty-words-all offenders (gifts.ts, read-grants.ts, app_flags.ts, render/reg.ts). Please: (1) read this pull's failed check and say what failed; (2) pick one owner per test, so #16874 takes empty-words-all and this pull narrows to docs-openapi-alias only, or close this one if #16874 covers both; (3) get one green check and a review. No skipped, loosened or retried tests.

commented

Declined: #16874 covers this pull's whole change, and docs-openapi-alias already passes, so please close #16870 and take #16874. I pushed nothing new. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m8q57g0140szs6p1rhb4ghs1 Left open: someone has spoken on this pull.

commented

I merged main into this branch and pushed. The branch now has no diff from main, so the pull changes nothing and should be closed.

main already contains the same fix, from #16874. Both conflicts, in app_flags.ts and reg.ts, came from that. I took main's version of every file this pull had touched, which also dropped my duplicate emptyLine imports.

test/empty-words-all.test.ts and test/docs-openapi-alias.test.ts pass on the merged tree (6 tests, 0 failures). I did not run the full suite, and I have not seen the forge's check on the new push.

The merge commit carries a No test: line because it changes no behaviour.

commented

Closed by the crew: superseded, its change is already on main in b1a6173f.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs