You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nothing ties the Op docs' YAML samples to generator output, and it has gone stale twice in one day #2331
lexicons/terraform/docs/pages/ops.mdx (authored) and lexicons/terraform/docs/src/content/docs/ops.mdx (derived) publish a sample of the generated gated-apply workflow. Nothing checks that sample against what generateGithubOpPipeline actually emits, so it silently rots whenever the generator changes.
The same files also described TerraformAdoptOp as having four phases after #2302 gave it five, and omitted the upgrade option those siblings carry. Same cause.
Why it matters
A published sample of generated output is a promise about what the generator does. Unguarded, it is a promise that drifts in the direction of documenting bugs that were already fixed — which is worse than showing nothing, because it reads as authoritative.
Do
Generate the sample rather than storing it, or assert it. Either render it at docs-build time from a real generateGithubOpPipeline call with the spec the surrounding prose describes, or keep it committed and add a test that regenerates and compares, failing with a diff when they part.
The phase table and options table have the same problem against TerraformAdoptOpConfig and its siblings, and want the same treatment.
Related: #2318 asks for a page collecting per-lexicon support and refusals, generated from the tier tables rather than typed. Same principle, different surface.
Activity
test(terraform): tie the ops page's YAML sample to the generator (#2331…