Repository navigation
feat(docs): generate service reference from the plugin registry (#364) - #374
Merged
Merged
Conversation
…n registry (#364) Root-cause fix for the doc drift behind #363 (README said 63 plugins, the Service Reference said 37 and called itself authoritative). - cmd/gen-service-reference boots the default registry and rewrites the coverage matrix in docs/services.md between BEGIN/END marker comments, listing all 63 registered plugins with their protocol. Content outside the markers -- the hand-written per-service operation/CFN/cost detail -- is left untouched. - Per-plugin display name/protocol come from a maintained metadata map; the generator fails if a registered plugin has no entry or an entry names no plugin, so new plugins must be documented as part of adding them. - go:generate directive on RegisterDefaultPlugins; make docs-reference / docs-reference-check targets; a 'Service Reference Drift' CI job runs the check on every PR. Verified: go generate is idempotent, the drift guard fails when a plugin lacks metadata, build/lint/test clean. Closes #364.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Second PR of the v0.76.0 documentation-reliability milestone. Root-cause fix for the drift behind #363.
What
cmd/gen-service-referenceboots the default plugin registry and rewrites the coverage matrix indocs/services.mdbetween marker comments — listing all 63 registered plugins with their wire protocol. Everything outside the markers (the hand-written per-service operation / CloudFormation / cost detail) is left untouched.Why this design
Guardrails
//go:generatedirective onRegisterDefaultPlugins;make docs-reference/make docs-reference-check.make docs-reference-checkon every PR.Verification
go generateis idempotent; the drift guard fails when a plugin lacks metadata (tested); build + lint + full test suite clean.Closes #364. Part of v0.76.0.