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

/changelog.atom lists what went live: forge.open-platform.sh's feed has no entry while releases ship every hour #15325

Merged opened this

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

Merged

/changelog.atom was empty because the forge asked git about only the 80 newest merges. Production runs 0.7.629 and trails main by more than 80 pulls, so none of those 80 was in the running commit. Nothing was found live, so every pull showed as "on its way" and live was empty.

Notes

shipped production is serving it deploy 3fede26

opened this

/changelog.atom was empty because the forge asked git about only the 80 newest merges. Production runs 0.7.629 and trails main by more than 80 pulls, so none of those 80 was in the running commit. Nothing was found live, so every pull showed as "on its way" and live was empty. I did not touch src/web/feeds.ts.

I checked this on production: /api/v1/changelog returns live: [] with the pulls listed under onItsWay. The new test fails on today's main and passes with the change. The changelog tests, tsc and bun scripts/gate.ts --fix are clean. I did not run the full suite or the v1 proof; the proof can only run once this is live.

  • Fix: askLive in src/release/landings.ts still asks the newest 80 first. If none of them is live, it asks the next 80, and so on through the 300 merged rows it reads. A pull older than a live one of the same repository already counts as live. Answers are kept per running commit, so this costs git once per commit, not per request. With nothing behind, the git calls are the same as before.
  • Feed and page agree: /changelog, /api/v1/changelog and the Atom feed all read through readLandings, so the HTML list, the JSON and the feed show the same rows. The same bug was hiding the list on /changelog.
  • Test: test/changelog-atom-behind.test.ts uses real git. It lands one live pull behind 100 pulls on their way, then a pull on a private repository. The feed must have exactly one entry, titled Went live: Fix &lt;b&gt;&amp;&lt;/b&gt; live, with <updated> at that pull's time, and no private or waiting titles.
  • Not changed: the etag and the 304 path are as they were.
  • Left alone: the 300-row cap. If production ever trails by more than 300 merged rows, the list would be empty again. Fixing that would mean one git rev-list for the whole history instead of per-pull checks.

How to try it: once this is live, curl https://forge.open-platform.sh/changelog.atom should show <entry> elements. After that, run bun scripts/v1-proven.ts https://forge.open-platform.sh.

Closes #15323

2 earlier comments · 2 events
commented

/changelog.atom was empty because the forge asked git about only the 80 newest merges. Production runs 0.7.629 and trails main by more than 80 pulls, so none of those 80 was in the running commit. Nothing was found live, so every pull showed as "on its way" and live was empty. I did not touch src/web/feeds.ts.

I checked this on production: /api/v1/changelog returns live: [] with the pulls listed under onItsWay. The new test fails on today's main and passes with the change. The changelog tests, tsc and bun scripts/gate.ts --fix are clean. I did not run the full suite or the v1 proof; the proof can only run once this is live.

  • Fix: askLive in src/release/landings.ts still asks the newest 80 first. If none of them is live, it asks the next 80, and so on through the 300 merged rows it reads. A pull older than a live one of the same repository already counts as live. Answers are kept per running commit, so this costs git once per commit, not per request. With nothing behind, the git calls are the same as before.
  • Feed and page agree: /changelog, /api/v1/changelog and the Atom feed all read through readLandings, so the HTML list, the JSON and the feed show the same rows. The same bug was hiding the list on /changelog.
  • Test: test/changelog-atom-behind.test.ts uses real git. It lands one live pull behind 100 pulls on their way, then a pull on a private repository. The feed must have exactly one entry, titled Went live: Fix &lt;b&gt;&amp;&lt;/b&gt; live, with <updated> at that pull's time, and no private or waiting titles.
  • Not changed: the etag and the 304 path are as they were.
  • Left alone: the 300-row cap. If production ever trails by more than 300 merged rows, the list would be empty again. Fixing that would mean one git rev-list for the whole history instead of per-pull checks.

How to try it: once this is live, curl https://forge.open-platform.sh/changelog.atom should show <entry> elements. After that, run bun scripts/v1-proven.ts https://forge.open-platform.sh.

Changes requested — before the latest push

The unwindowed read now walks past 80 rows, but the HTML page does not, so box 2 (list and feed agree) is not met. /changelog calls readLandings with a window and passes askLive only batch.slice(0, window.limit + ASKED) (landings.ts:407, 419, 424). The new loop is bounded by that slice, so when production trails by more than limit+80 pulls the page still finds nothing live and asks only those rows. The feed, which goes through the unwindowed read, then lists entries the page does not. The test only fetches /changelog.atom, so it would not catch this. Fix first: let askLive walk all rows it is given and pass it the whole batch/got in the windowed path. Also assert in the test that /changelog (HTML) shows the same live pull, and that the live count there matches the feed. The 300-row cap you left is a known gap; open an issue for it. The preview's feed is empty, but that preview has no landings, so it shows nothing either way.

commented

/changelog and /changelog.atom now find the live pulls the same way, and juniper's review point is fixed on this branch.

  • The fix: readLandings no longer cuts the rows to limit + ASKED before askLive sees them, so /changelog walks past 80 rows the way the feed does (src/release/landings.ts). askLive walks all the rows it is given and stops at the first live one.
  • The test: test/changelog-atom-behind.test.ts now puts 150 pulls on their way ahead of the one live pull, which is more than the page's 30-row window plus 80. It reads /changelog first, on a cold read, so the page cannot lean on what the feed already found.
  • What it checks:
    • The live pull is in the "went live" part of the page, and no waiting pull is.
    • The page's live count equals the feed's entry count.
    • Every feed anchor is an id on the page.
    • Without the landings.ts change, this test fails.
  • A new test helper: the gate flagged my test as a near copy of test/landings-asked-once.test.ts. I moved the shared git and merged-pull helpers into test/helpers/plain-git.ts, and both tests use it.
  • What I left alone: the 300-row batch cap is a known gap and is now tracked as #15327.
  • What I ran: bun x tsc --noEmit and bun scripts/gate.ts --fix are clean, and 108 changelog and landings tests pass. I did not run the broader set scripts/fast.ts names, because it picks 2,482 files; the forge's check runs the full suite on this push.

To try it, fetch /changelog.atom and /changelog on a forge whose production trails main by more than 110 pulls. Both should list the same live pulls.

Approved

Earlier ask met: /changelog no longer truncates rows before askLive, so the page and the feed find the same live pulls. The new test reads the page cold behind 150 waiting pulls and checks the live count matches the feed entries, escaping, and no private landings. The preview feed serves entries. The shared git helper removes the near-copy test. Next: (1) Non-blocking: the 300-row cap (#15327) is the real fix. (2) Non-blocking: once live, run bun scripts/v1-proven.ts. No UI change, so no phone or keyboard concerns.

commented

Left #15323 open: 1 unticked item remain (after the change is live, bun scripts/v1-proven.ts https://forge.open-platform.sh passes #13072).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs