Repository navigation
add make check and docs/plugins.json - #121
Merged
Merged
Conversation
make check runs what CI_go runs (CI_go now calls the same Makefile targets) plus the internal-names check. cmd/list-plugins writes docs/plugins.json from the registry and docs/plugins.md and fails when they disagree; go test fails while the json is out of date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
main fails CI_go's gofmt step since the redis merge put catalog first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
This was referenced Nov 19, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
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.
Closes #118
What this changes
One command runs what CI runs, and the plugin list now exists as JSON too.
Makefile:make checkrunstidy,build,fmt,vet,imports(the allowlist),nethttp(the fetch-layer guard),test(go test -race -count=1),leak-guard(scripts/leak_guard.py --all) andcontract. Each is its own target.CI_gocalls those same targets, one per step, with the same step names and the same::errorannotations. Triggers, permissions and concurrency are unchanged; no new job or workflow. Local and CI can't drift because there's only one copy of each command.cmd/list-plugins(logic ininternal/pluginlist) joins the registry (plugin.Names(), and the format plugin from the package each plugin's type lives in) with the table indocs/plugins.mdand writesdocs/plugins.json: id, provider, layer, what it watches, format, source URL, status (+ note), provider page. It fails, naming the fix, when a registered plugin has no row, a row has no plugin (unlessplanned), the format is wrong, the layer or status is unknown, orproviders/<id>.mdis missing.make plugins-jsonruns it.go testfails whiledocs/plugins.jsonis out of date (TestPluginsJSONIsUpToDate), somake checkandCI_goboth catch "added a plugin, forgot the docs", with the message "runmake plugins-json".docs/plugins.schema.json: a small JSON Schema for the file; a test validatesplugins.jsonagainst it (a minimal validator for the keywords the schema uses, so no new dependency) and checks its enums match the generator and every format package.docs/plugins.mdgets aLayercolumn (API, SDK, package, runtime, CI, AI models), because the ticket asks for the layer in the JSON and the format plugin doesn't decide it (feedcovers CI, AI models and an API). The docs site's sync copies the table whole, so the column shows up there too.make checkbefore you say you're done", rule 1 now says what's checked and what isn't), CONTRIBUTING.md, README ("Run the tests"),docs/writing-a-plugin.md(steps 8 and 9),docs/plugins.md,docs/README.md, and the PR template's checklist line.Acceptance criteria (#118)
make checkpasses on a cleanmainand fails when any CI check would fail: it is the CI_go steps, plus the leak guard. (Locally, the gofmt in my Go toolchain flagsplugins/openapi/vercel_test.go, which CI's gofmt accepts; I didn't touch that file. CI is the reference.)docs/plugins.jsonlists every registered plugin (20, after merging main: redis and the three algolia plugins) and validates againstdocs/plugins.schema.json.make check(and CI_go) with a message namingmake plugins-json/ the missing row.make check.make contractrunsscripts/check_contract.pywhen given a patch-it checkout (make check PATCH_IT=../patch-it) and is skipped with a note otherwise, asCI_contractskips while patch-it can't be read anonymously. It isn't part ofCI_go.live,paused,planned, defined indocs/plugins.md); "in testing / building" describes layers of patch-it, which belongs in the README, not per plugin.Checklist
Layercolumn for every row; no plugin added or removed. I compared the 20 registered plugins with the 20 rows (the generator now does this too).env.Get/kit/(no fetching added)make checkpasses locally (except the known local-gofmt mismatch above)Calls I made (please check)
CI_go calls
make <target>per step instead of onemake checkstep, so the Actions UI keeps a named step per check.The freshness check is a Go test, not a separate CI step, so CI stays lean and
go test ./...alone catches it.Added the
Layercolumn to the public table (visible on docs.patch-it.dev after the next docs build).plugins.jsonis sorted by id; the table keeps its own order.Layers I assigned: the OpenAPI/apichangelog/Cloudflare plugins
API; model retirements and Vertex AIAI models;anthropic(SDK migration guide)SDK; numpy/textual/urllib3package; github-actionsCI; redisruntime(commands removed from the server: the closest layer, please check).Provider pages are per provider, not per id: the three algolia plugins link
providers/algolia.md, and the generator accepts anyproviders/<page>.mdthe row links to (it must exist).The redis merge dropped
apichangelogfrom the "Format plugin" column description indocs/plugins.md; I put it back next tocatalog.plugins list: every plugin in the code is live #122 (redis row → paused) will conflict with the Layer column here; whichever merges second keeps both (the row gets
runtimeandpaused: ...).plugins/all/all.gogofmt fix: since the redis merge,mainfails CI_go's gofmt step (thecatalogimport sorts beforeapichangelog). This PR sorts it so its own CI can pass; plugins list: every plugin in the code is live #122 fails for the same reason until this or a fix lands.Related PRs
🤖 Generated with Claude Code