Skip to content

nothing ties the Op docs' YAML samples to generator output, and it has gone stale twice in one day #2331

Closed

Description

@lex00

What

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.

It has now gone stale twice in a single day:

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.

Refs #2299, #2302, #2321, #2322, #2330.

Activity

  1. added
    bug
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions