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

/changelog.atom on production names the running release, so the v1 probe's "version agrees" line passes #15483

Merged opened this

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

Merged

/changelog.atom now names the running commit when the build has no version stamp, so it agrees with /changelog. Before, the feed's carried no version on such a build. Cause: the page and the feed read the same shippedAnswer (src/release/answer.ts); they do not read different sources.

Notes

shipped production is serving it deploy 0adf720

opened this

/changelog.atom now names the running commit when the build has no version stamp, so it agrees with /changelog. Before, the feed's <generator> carried no version on such a build.

Cause: the page and the feed read the same shippedAnswer (src/release/answer.ts); they do not read different sources. On production both have no live rows: /changelog says "Nothing has gone live yet. Running commit 1e36e93". The page builds that sentence from read.commit. The feed only used answer.version (releaseOf), which is null for an unstamped build, so the commit was dropped and the probe found nothing to match. The feed's ETag also hashed the fixed string "dev", so it did not change when the running commit did.

Change (src/web/feeds.ts, changelogAtom):

  • <generator version="…"> carries the release number, or the 7-character commit when there is none.
  • The ETag is built from the version, else the full commit. A new release now changes the tag instead of a cached empty feed being served for 300 s.
  • No new route, and no extra work per request.

Test: test/changelog-atom-commit.test.ts starts a forge with FORGE_COMMIT set and no FORGE_VERSION. It checks that the feed's generator names 1e36e93 as the page does, and that changing the commit changes the ETag (a request with the old tag gets a 200, not a 304). Both tests fail without the fix. These suites pass: the changelog feed (all three files), Atom feeds, ETag, conditional requests and the v1 probe (203 tests). The type check and scripts/gate.ts are clean. scripts/fast.ts named 2354 files (over its budget), so I picked those suites by hand.

Not done:

  • Why production has no live rows is not fixed here. The page shows none either, so the two already agree on landings and only disagreed on naming the commit.
  • The probe's version agrees PASS line can't be pasted until this is released to production.
  • I did not call the issue's keep_plan and estimate tools: this run doesn't have them.

Try it: open /changelog.atom on the preview and read <generator version="…">. It shows the same 7 characters as the "Running commit" sentence on /changelog.

🤖 Generated with Claude Code

Closes #15482

3 earlier comments · 1 event
commented

/changelog.atom now names the running commit when the build has no version stamp, so it agrees with /changelog. Before, the feed's <generator> carried no version on such a build.

Cause: the page and the feed read the same shippedAnswer (src/release/answer.ts); they do not read different sources. On production both have no live rows: /changelog says "Nothing has gone live yet. Running commit 1e36e93". The page builds that sentence from read.commit. The feed only used answer.version (releaseOf), which is null for an unstamped build, so the commit was dropped and the probe found nothing to match. The feed's ETag also hashed the fixed string "dev", so it did not change when the running commit did.

Change (src/web/feeds.ts, changelogAtom):

  • <generator version="…"> carries the release number, or the 7-character commit when there is none.
  • The ETag is built from the version, else the full commit. A new release now changes the tag instead of a cached empty feed being served for 300 s.
  • No new route, and no extra work per request.

Test: test/changelog-atom-commit.test.ts starts a forge with FORGE_COMMIT set and no FORGE_VERSION. It checks that the feed's generator names 1e36e93 as the page does, and that changing the commit changes the ETag (a request with the old tag gets a 200, not a 304). Both tests fail without the fix. These suites pass: the changelog feed (all three files), Atom feeds, ETag, conditional requests and the v1 probe (203 tests). The type check and scripts/gate.ts are clean. scripts/fast.ts named 2354 files (over its budget), so I picked those suites by hand.

Not done:

  • Why production has no live rows is not fixed here. The page shows none either, so the two already agree on landings and only disagreed on naming the commit.
  • The probe's version agrees PASS line can't be pasted until this is released to production.
  • I did not call the issue's keep_plan and estimate tools: this run doesn't have them.

Try it: open /changelog.atom on the preview and read <generator version="…">. It shows the same 7 characters as the "Running commit" sentence on /changelog.

🤖 Generated with Claude Code

commented

<!-- look-pages 312645a05f0f --> Look pages for 312645a, from the gate:

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

/changelog.atom now names the running commit when the build has no version stamp, so it agrees with /changelog. Before, the feed's <generator> carried no version on such a build.

Cause: the page and the feed read the same shippedAnswer (src/release/answer.ts); they do not read different sources. On production both have no live rows: /changelog says "Nothing has gone live yet. Running commit 1e36e93". The page builds that sentence from read.commit. The feed only used answer.version, which is null when the build has no version stamp, so the commit was dropped and the probe found nothing to match. The feed's ETag also hashed the fixed string "dev", so it did not change when the running commit did.

Change (src/web/feeds.ts, changelogAtom):

  • <generator version="…"> carries the release number, or the 7-character commit when there is none.
  • The ETag is built from the version, else the full commit. A new release now changes the tag instead of a cached empty feed being served for 300 s.
  • No new route, and no extra work per request.

Test: test/changelog-atom-commit.test.ts starts a forge with FORGE_COMMIT set and no FORGE_VERSION. It checks that the feed's generator names 1e36e93 as the page does, and that changing the commit changes the ETag (a request with the old tag gets a 200, not a 304). Both tests fail without the fix. These suites pass: the changelog feed (all three files), Atom feeds, ETag, conditional requests and the v1 probe (203 tests). The type check and scripts/gate.ts are clean. scripts/fast.ts named 2354 files, over its budget, so I picked those suites by hand.

Look pages: the gate listed 28 pages because their routes import src/web/feeds.ts. None of them renders differently: only the feed's XML changes. A No look: commit says so, so no pictures are owed.

Not done:

  • Why production has no live rows is not fixed here. The page shows none either, so the two already agree on landings and only disagreed on naming the commit.
  • The probe's version agrees PASS line can't be pasted until this is released to production.
  • I did not call the issue's keep_plan and estimate tools: this run doesn't have them.

Try it: open /changelog.atom on the preview and read <generator version="…">. It shows the same 7 characters as the "Running commit" sentence on /changelog.

🤖 Generated with Claude Code

Approved

Preview works: /changelog.atom on this head carries <generator version="9bc4eab">, the running commit, and the diff is small and tested. No design-system surface changes (feed XML only). Next two things: (1) in the test, drop expect(atom).not.toContain("dev") — it matches any entry text containing "dev" and will flake; assert the generator line only. (2) After release, paste the version agrees PASS line from bun scripts/v1-probe.ts <production> into the pull, and open an issue for why production has no live rows. Box 4 cannot be met until production runs this.

commented

Left #15482 open: 1 unticked item remain (After release, bun scripts/v1-probe.ts <production> prints PASS for version agrees; paste the line in the pull.).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs