Repository navigation
Open
Description
Summary
The published Go landing page and Core page show the plain program, not the call-by-call player, for the run-applications and watch panels, while typed-graph still plays. A four-line comment change in libtmux-go made the displayed programs differ from the committed recording, and the player only plays a recording of the program it displays. Ruby's page plays all three programs.
Reproduction
- Run
curl -sS https://libtmux.org/en/go/latest/ | grep -o 'data-results' | wc -l. - Run the same command against
https://libtmux.org/en/go/latest/core/andhttps://libtmux.org/en/ruby/latest/. - Read
capabilities.run-applicationsandcapabilities.watchinsite/src/data/core-recordings/go.jsonat docs983db91, then hash the two programs in libtmux-go at2de249band atmaster.
Expected
Each Go program the recording covers plays (data-results appears three times, as on the Ruby page).
Actual
https://libtmux.org/en/go/latest/ 1
https://libtmux.org/en/go/latest/core/ 1
https://libtmux.org/en/ruby/latest/ 3
The recording hashes each program with sha256 over the program text without its final newline, and the hashes match libtmux-go 2de249b and no later revision:
recording / 2de249b 449267f / master (8380c18)
examples/run-to-completion/main.go 6e3d739f8885fc64c5ae803ecf56aab08546162103f80efcc5efb17e6c578865 f467770e84764296c3fde0bc0351e4502a052dd5c23d9c844cfc019e7bfd2736
examples/control-mode-subscribe/main.go ab45e0d2f462ce8f10c52c8bf105c3f999b2fd87b302c6b3f8812a124aee70aa 40b42f0bc92af6faedacd94955f4d4f7eab103bcb428175c5615eb8df9b46039
Environment
Revisions checked
- docs
983db91. go.json: top-levelrevision449267f7cd1d4f7a495768665c47b7b1972ab00a;run-applications.revisionandwatch.revisionboth2de249b600d65218ee8b8fdc07c6b2b919242151;typed-graphhas norevisionof its own, so it follows the top-level one.- libtmux-go:
2de249b,449267f,masterat8380c18.
Evidence
- The two programs differ between
2de249band449267fby one commit, libtmux-go@75e0fea (docs(fix): Match runtime guarantees), 4 lines added and 4 removed per file. The lines I read are comments, for example// A private server: a socket and an empty config of its own, so thisbecoming// Choose an unused socket name: cleanup kills the server selected here. - The recording stores
program.sha256assha256(program.code)(gen-core-recording.mjs#L257), wherecodeis the cached program text with a trailing newline removed (common.mjs#L34-L39). The recipes nameexamples/run-to-completion/main.goandexamples/control-mode-subscribe/main.go(go.mjs#L156-L160,go.mjs#L175-L177). Hashing those files with the final newline removed reproduces the recorded values at2de249b. - The recorded hashes are at
go.json#L1251-L1256andgo.json#L2020-L2025. recordingProblemsreportsis of a different program than the one displayedwhen the hashes differ (core-recording.ts#L113), andplayableCapabilitythen returns no player so the page keeps the plain example (core-player.ts#L48-L53).- The published Go pages contain the new comment text
Choose an unused socket name, so they display the449267f-era programs. - Not verified: the exact revision the published Go build read the programs from, and that the hash comparison is the failing check in the build (I did not run the site build).
References
site/src/data/apimodels trail five ports by up to 470 commits #258 covers the committed API models trailing the Core recordings; it does not cover the recordings falling back to the plain program.
Metadata
Metadata
Assignees
Labels
No labels
Activity