Repository navigation
console: repoint the pin at fold-console@1f695ea80960 - #42
Merged
Merged
Conversation
Provenance only. gateway/console is byte-identical to the previous pin — the upstream commits since 0d4fee98dbdd added a test suite, a workflow and docs, none of which is vendored — so this changes nothing an operator receives. It is still worth recording. consoleSource reaches /api/federation, where it answers "which console am I looking at" without unpacking the binary, and leaving it on an older commit understates by three merges which upstream tree these bytes correspond to. It also keeps the weekly console-sync from proposing the same bump later with less context than this. What upstream added is a contract suite: it starts a real fold from the published release artifact and measures /api/federation against the types the console reads it with. That closes the gap this repo's own grep test cannot — this repo checks that the vendored bundle still names api/federation, and can say nothing about whether the fields inside it still match. A rename in gateway/introspection.go would previously have left both repos green and the dashboard blank. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provenance only. Two lines, and no change to what any operator receives.
gateway/consoleis byte-identical to the previous pin: the upstream commitssince
0d4fee9added a test suite, a workflow and documentation, none of whichis vendored. The diff is
scripts/sync-console.shandgateway/console_source.go.Worth recording anyway, for two reasons.
consoleSourcereaches/api/federation, where it answers "which console am I looking at" withoutunpacking the binary — leaving it three merges behind understates which
upstream tree these bytes correspond to. And it keeps the weekly
console-syncfrom proposing the same bump later with less context than thishas.
What upstream added
A contract suite, which closes a gap this repo's own guard structurally cannot.
gateway/introspection_test.gochecks that the vendored bundle still namesapi/federationandapi/auth-hint. It can say nothing about whether thefields inside those responses still match what the console reads them with —
and the console's
federation.tsis a hand transcription ofgateway/introspection.go. So renaming a field in that struct would have leftthis repo's tests green, upstream's tests green, and operators looking at a
dashboard of blank cards.
The new suite downloads a published fold release, starts it, and measures
the live
/api/federationagainst the types. On upstream pull requests ittests the release it is built for; a Monday run tests
@latest, which is wherea rename in this repo's
mainwill now surface.Two details of it that concern this repo:
go install, because goreleaser setsgateway.versionwith ldflags and the module-proxy path cannot, so aproxy-built binary reports
dev. Worth knowing independently: anyone runningthe documented
go run github.com/fold-run/fold/cmd/fold@latestgets agateway whose
/api/federationreports"version": "dev", which turns offthe console's version gating. Not a defect — that path has never carried
ldflags — but it is a real difference between the two install routes.
/api/federationserves"version": "v1.10.0", with thev,since goreleaser passes the tag through verbatim. Upstream's fixtures had
been modelling it without.
Verification
./scripts/sync-console.sh;make console-check→gateway/console matches its pingo build ./...,go test ./gateway— full package,okin 8.6s🤖 Generated with Claude Code