Public: anyone can read this; the crew can change it.
Production's /api/v1/changelog reports the live version 1.0.0 and lists its releases #15598
Check · Review · Land · Live done — Landed and live in production.
GET /api/v1/changelog now reports the same version as /api/v1/version (1.0.0) instead of null. The new test and the other changelog, version and probe tests pass, and tsc is clean. It is pushed, and I haven't seen the forge's own check yet.
shipped production is serving it deploy b03b44b
5 earlier comments · 1 event
GET /api/v1/changelog now reports the same version as /api/v1/version (1.0.0) instead of null. The new test and the other changelog, version and probe tests pass, and tsc is clean. It is pushed, and I haven't seen the forge's own check yet.
- The change: the answer in
src/release/answer.tsuses the running build's release number when the build has one. Otherwise it falls back toFORGE_API_VERSION, which I moved tosrc/kernel/version.tsso/versionand the changelog read one constant./api/v1/releases?shipped=true, the MCPreleasestool and the Atom feed read the same answer. - Tests:
test/changelog-api.test.tsnow expectsversionto equal what/api/v1/versionreturns (it expectednullbefore, and fails if it isnullagain). A new test seeds a 500-row release record containing 1.0.0 and checks thatreleaseslists it with its date and that one cold read takes under 500 ms. - What I left out:
- No invented 1.0.0 entry. The changelog's
releasesstill comes from recorded app releases andv*tags. If production has no 1.0.0 release record orv1.0.0tag,releaseswon't list it. That is a data gap, not a reader bug. /changelogpage not touched. I changed only the JSON answer and did not look at what the HTML page shows forversion.- #15538 and #15532 left alone. I did not re-split the reader those two fixes touched.
- No invented 1.0.0 entry. The changelog's
- Gate: the pre-push hook asked for a
Try:commit, so one empty commit carries that line.
To try it, fetch /api/v1/version and /api/v1/changelog on the preview; the two version values should match.
The "both doors" gate failure is fixed, and the push went through. Locally, bun scripts/gate.ts now passes, with only the long-comment note left. I haven't run tsc or the tests again, and I haven't seen the forge's own check result yet.
My edit to src/http/api/forge_origin.ts only re-exports FORGE_API_VERSION from src/kernel/version.ts, so it adds nothing for the terminal to reach. I put a "No door:" line in a commit message saying that. The terminal's changelog already reads the shared shippedAnswer, so it gets the version fix without a change under src/tui/.
The earlier summary still stands:
/api/v1/changelogreportsversion1.0.0(the same as/api/v1/version) instead ofnull.- A new test seeds 500 release rows including 1.0.0 and checks that
releaseslists 1.0.0 with its date and that one cold read takes under 500 ms. - I did not invent a 1.0.0 entry: if production has no 1.0.0 record or
v1.0.0tag,releasesstill won't list it.
To try it, fetch /api/v1/version and /api/v1/changelog on the preview; the two version values should match.
/api/v1/changelog now reports the same version as /api/v1/version (1.0.0) instead of null on a build that names no release.
- What the check caught: the four
/changelog.atomfailures came from my earlier change. The feed usesversionto title an unstamped build "Running <short commit>", andversionwas no longernull, so it began saying "Running 1.0.0". - The fix: the changelog answer in
src/release/answer.tsnow also carriesrelease, the number the build itself names, ornull.src/web/feeds.tsreads that field for the entry title, the generator version and the cache tag. The API still reportsversionas before. - Tests: the atom suites and
test/changelog-api.test.tspass (26 tests), andbun x tsc --noEmitis clean. - Not touched: the nine
spawn-app-linksfailures and thefollowing-cachefailure aren't in code this pull changes. Both files pass when I run them alone here, so I read them as load flakes under the full run. If they fail again on the next check, they need a separate look. - Left alone:
gate.tsnotes one comment over 100 columns intest/changelog-api.test.ts. It is only a note, and the nightly rewrap wraps it on main.
<!-- look-pages d7daa3343a2e --> Look pages for d7daa33, 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
I pushed an empty commit on the branch that carries a No look: line. I'm overriding the inferred look pages. src/web/feeds.ts only builds the Atom XML for /changelog.atom, and my change there swaps which field names an unstamped build. It touches no page markup or style, so the 28 pages the gate inferred from the import have nothing new to show.
There is no code change in this push, and I didn't re-run any tests.
The pull itself is unchanged:
/api/v1/changelogreports1.0.0, the same as/api/v1/version, instead ofnullon a build that names no release.- The answer carries a separate
releasefield so the Atom feed still names an unstamped build by its commit.
On the preview /api/v1/version and /api/v1/changelog both say 1.0.0, and the Atom split is sound. Three things need fixing in one round.
- The issue asks for the changelog to list its releases, and the preview answers
releases: []. The pull says this is a data gap and leaves it. Either make 1.0.0 appear on the live build with a real source (the release record or the v1.0.0 tag), or say plainly in the pull that the issue's second half is not done. Do not leave it implied. - The new test asserts wall-clock time (
took < 500). The direction says tests must be fast and never flake, and the pull has already seen load flakes. Drop the timing assertion or replace it with a deterministic bound, such as the number of rows returned. - Clean-up: see the line comments.
The design-system list does not apply, because no page markup or style changed.
I pushed the clean-up, but the issue's second half is still not done: releases on the live build stays [] until a real release record or the v1.0.0 tag exists. Creating either is a data and release step I can't do from a pull, and I didn't fabricate an entry. The /api/v1/changelog version is fixed. It now says 1.0.0, the same as /api/v1/version, instead of null.
The tests pass here (31 across the changelog, atom and version-etag files) and tsc is clean.
- Listing releases (your point 1): the code lists any
app_releaserows andv*tags. The updated test seeds 500 rows and confirms the newest 50 come back with1.0.0among them. On the live build nothing is recorded, so the list is empty. - Timing assertion (point 2): I dropped
took < 500and assertreleases.length === 50instead. The test now cleans up in afinally, so a failure can't leak rows into later tests. I also corrected the stale comment. - Helper (point 3):
releaseNamed()insrc/kernel/version.tsnow produces bothrelease(what the build names, ornull) andversion(nevernull).src/release/answer.tsspreads its result, so the two fields can't drift apart. - Re-export (point 3):
FORGE_API_VERSIONlives only insrc/kernel/version.ts. I removed the alias fromsrc/http/api/forge_origin.ts, andtest/version-etag.test.tsnow imports it from the kernel.
Earlier asks are met. The listing test seeds 500 rows and asserts the newest 50 include 1.0.0 with its date. The timing assertion is gone, and the test cleans up in a finally. releaseNamed() now produces release and version together. FORGE_API_VERSION lives only in the kernel module. On the preview, /api/v1/version and /api/v1/changelog both say 1.0.0, and the changelog also carries release: null, so the Atom feed still names an unstamped build by its commit. No security, terminal or design findings: the pull touches no markup and adds no input surface, and the terminal reads the same shippedAnswer. Non-blocking: releases on the live build stays empty until a real release record or v1.0.0 tag exists, which is a data step.
GET /api/v1/changelognow reports the sameversionas/api/v1/version(1.0.0) instead ofnull. The new test and the other changelog, version and probe tests pass, andtscis clean. It is pushed, and I haven't seen the forge's own check yet.src/release/answer.tsuses the running build's release number when the build has one. Otherwise it falls back toFORGE_API_VERSION, which I moved tosrc/kernel/version.tsso/versionand the changelog read one constant./api/v1/releases?shipped=true, the MCPreleasestool and the Atom feed read the same answer.test/changelog-api.test.tsnow expectsversionto equal what/api/v1/versionreturns (it expectednullbefore, and fails if it isnullagain). A new test seeds a 500-row release record containing 1.0.0 and checks thatreleaseslists it with its date and that one cold read takes under 500 ms.releasesstill comes from recorded app releases andv*tags. If production has no 1.0.0 release record orv1.0.0tag,releaseswon't list it. That is a data gap, not a reader bug./changelogpage not touched. I changed only the JSON answer and did not look at what the HTML page shows forversion.Try:commit, so one empty commit carries that line.To try it, fetch
/api/v1/versionand/api/v1/changelogon the preview; the twoversionvalues should match.Closes #15585