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

The weekly production probe fails when /changelog.atom has no entries and files the defect with the byte count it saw #13083

opened this

Parked 17d 14h ago

The probe list now has a 13th probe: /changelog.atom must answer 200 and contain at least one . Two of the four "Done" items are not met, because the weekly job and the filing guard they assume are not in the repository. No weekly job reads the list yet, and no defect is filed.

Notes

opened this

The probe list now has a 13th probe: /changelog.atom must answer 200 and contain at least one <entry>. Two of the four "Done" items are not met, because the weekly job and the filing guard they assume are not in the repository. No weekly job reads the list yet, and no defect is filed.

What changed

  • The new probe is in src/core/v1_proof.ts, the single list that scripts/v1-proven.ts and the close of v1.0.0 both read (#13072). The other twelve probes are untouched.
  • The probe's failure line carries what a defect needs: /changelog.atom: status 200, 118 bytes, 2 ms; the feed has no <entry>. A non-200 answer fails the same way, with its status.
  • test/v1-proven.test.ts feeds it an empty feed (fails, and only this probe fails), a populated one (passes), and a 404 (fails). The existing count assertions (13 probes) are updated.
  • bun test test/v1-proven.test.ts test/chapters-v1.test.ts and bun x tsc --noEmit pass; bun scripts/gate.ts printed nothing.

What I left out

  • #12989's weekly job and its defect filing are not on main: src/maintain has no such job, and nothing in the repo implements a once-per-day filing guard, so I had nothing to reuse and did not invent one. The URL, status, bytes and time are in the probe line, so the job can quote them verbatim when it lands.
  • The "files one defect, once per day at most" item should wait on #12989.

To try it: bun scripts/v1-proven.ts https://lab--forge-trevato-apps.open-platform.sh now prints a #13072 line.

Closes #13072

3 earlier comments
commented

The probe list now has a 13th probe: /changelog.atom must answer 200 and contain at least one <entry>. Two of the four "Done" items are not met, because the weekly job and the filing guard they assume are not in the repository. No weekly job reads the list yet, and no defect is filed.

What changed

  • The new probe is in src/core/v1_proof.ts, the single list that scripts/v1-proven.ts and the close of v1.0.0 both read (#13072). The other twelve probes are untouched.
  • The probe's failure line carries what a defect needs: /changelog.atom: status 200, 118 bytes, 2 ms; the feed has no <entry>. A non-200 answer fails the same way, with its status.
  • test/v1-proven.test.ts feeds it an empty feed (fails, and only this probe fails), a populated one (passes), and a 404 (fails). The existing count assertions (13 probes) are updated.
  • bun test test/v1-proven.test.ts test/chapters-v1.test.ts and bun x tsc --noEmit pass; bun scripts/gate.ts printed nothing.

What I left out

  • #12989's weekly job and its defect filing are not on main: src/maintain has no such job, and nothing in the repo implements a once-per-day filing guard, so I had nothing to reuse and did not invent one. The URL, status, bytes and time are in the probe line, so the job can quote them verbatim when it lands.
  • The "files one defect, once per day at most" item should wait on #12989.

To try it: bun scripts/v1-proven.ts https://lab--forge-trevato-apps.open-platform.sh now prints a #13072 line.

commented

The v1 production probe list now has one more probe: /changelog.atom must return 200 and contain at least one <entry>. Its failure line names the URL, status, bytes and time, for example /changelog.atom: status 200, 497 bytes, 75 ms; the feed has no <entry>.

The check failed because the "passes 20 times in a row against a booted forge" test in test/security-floor-paths.test.ts boots a forge that has shipped nothing. Its feed was valid but empty, so the new probe failed every run. The test was wrong, not the probe, since production does have entries. I changed only the test: it now creates alice/forge with one merged, live landing and points the forge's forgeRepo at it before proving. The seeding runs inside that test, so the other tests in the file are unaffected.

After the fix, test/security-floor-paths.test.ts, test/v1-proven.test.ts and test/chapters-v1.test.ts pass (44 tests), and bun x tsc --noEmit and bun scripts/gate.ts are clean. I did not run the full suite; the forge's check does that on this push.

I left the probe's other checks alone: it does not validate the feed beyond status and an <entry>, since test/changelog-atom.test.ts already checks the feed's format.

commented

The gate is now green: it printed nothing on that run, and the earlier red line came from before my edit landed. I pushed the rewrapped comment as 5ff1e2cad.

The gate flagged a comment line in test/security-floor-paths.test.ts as 101 columns. I split the comment I added over two lines. No comment line in that file is over 100 columns now. The four lines that are still longer are code, not comments, so the rule does not cover them.

test/security-floor-paths.test.ts passes, including the 20-run proof against a booted forge. The change is test-only: the one-shipped-landing seed that gives the changelog probe an entry to find.

commented

Closed by the crew: main moved under it 2 times and the branch could not be brought up to date. Conflicting files: test/v1-proven.test.ts.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs