Skip to content

site/src/data/api models trail five ports by up to 470 commits #258

Open

Description

@tony

Summary

The API models committed in site/src/data/api for elixir, fsharp, go, julia and lua describe library revisions 121 to 470 commits older than the revisions the Core recordings in site/src/data/core-recordings were made from. A port build with a source SHA regenerates its own model, so the published port pages list current APIs. Every build without one reads the committed files: local astro dev, the test workflow, and any build that reads another port's model.

Motivation

scripts/build-site.sh regenerates the model only for the port being built, and says why:

elif [ -n "${LIBTMUX_DOCS_SOURCE_SHA:-}" ]; then
  # A source-bound build renders the reference from the verified checkout,
  # not from the model committed here, which describes whatever revision was
  # last refreshed. The generator re-checks the SHA and records it.

site/src/lib/api-models.ts imports the committed files directly, so anything that resolves a name against API_MODELS outside a source-bound build sees the old revision.

Go shows the gap. Go's Core recording plays Pane.WaitForText, which libtmux-go added in libtmux-go@f79432f on 2026-10-25 (tmux/pane_text_wait.go). The committed go.json is from libtmux-go 2de249b, five days earlier, and has tmuxtest.WaitForText but no tmux.Pane.WaitForText. The published reference, built from the port's checkout, has the page: /en/go/latest/reference/tmux-pane-waitfortext/.

Port Committed model Core recording Commits between
elixir 6e6e88e (2026-10-23) a740a13 (2026-11-01) 121
fsharp 4f1b997 (2026-10-03) 8d47af7 (2026-11-01) 470
go 2de249b (2026-10-20) 449267f (2026-11-01) 121
julia f3da513 (2026-10-11) f2b0fb8 (2026-11-01) 183
lua 0395620 (2026-10-02) d68f829 (2026-11-01) 176

Dates are commit dates in UTC. The csharp and powershell models match their recordings.

Evidence

Commands and output

The committed Go model's revision, and every symbol named WaitForText in it:

$ git show 983db91:site/src/data/api/go.json | jq -r '.revision, ([.symbols[] | select(.name == "WaitForText") | .publicId // .id] | join(" "))'
2de249b600d65218ee8b8fdc07c6b2b919242151
tmuxtest.WaitForText

Commits between the committed Go model and the recording's revision:

$ gh api repos/libtmux/libtmux-go/compare/2de249b...449267f --jq .ahead_by
121

References

Activity

  1. tony commented on Nov 12, 2026

    @tony
    ContributorAuthor

    At cfa8a1496 the five models are unchanged: elixir at 6e6e88e, fsharp at 4f1b997, go at 2de249b, julia at f3da513 and lua at 0395620 are still 121, 470, 121, 183 and 176 commits behind their Core recordings. The gap now reaches three more ports, again with the recording ahead of the model: cxx by 168 commits, java (which kotlin and scala share) by 231 and swift by 160; the powershell, rs and ts models are instead ahead of their recordings by 51, 2 and 23 commits, and py was not compared. No pull request addresses it, and #260, the Go players that lost their recording, is a related symptom of the same drift between committed data and the port. Next action: regenerate the committed models for the eight ports above at the revision of their recordings, or re-record against the model.

  2. tony commented on Dec 5, 2026

    @tony
    ContributorAuthor

    The Lua guide surfaced a concrete consequence. In the committed model, the Core package is 0.1.0alpha1-1 at Lua revision 0395620d. The current checkout example calls Runtime:start_server and OwnedServer:stop. Neither method is in that model. The site's publication job rejected both names on the same guide line.

    For this guide, the calls apply specifically to the checkout example. PR #385 links each call directly to its line at the cited Lua commit. The two links passed the same check locally. The broader five-port model refresh remains tracked here. Hosted result · Start call · Stop call.

  3. added
    bug
    area:build
    topic:api
    p2
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:buildbugp2topic:api

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions