Skip to content

pulumi lexicon: disruption classes from the preview observation's plan attributes #5378

Closed

Description

@lex00

chant lifecycle plan reports every Pulumi update with disruption unknown, even when the member was observed at preview depth.

annotateDisruption (packages/core/src/cli/handlers/lifecycle.ts:1633) hands the lexicon each entry's observed attributes. The pulumi classifier, classifyPulumiDisruption in lexicons/pulumi/src/disruption.ts, answers only from a previewSteps attribute. The preview observation from #5332 (lexicons/pulumi/src/preview-observation.ts) writes the terraform plan depth's attribute names (planAction, planActions, planActionReason and planReplacePaths) and has no previewSteps. Nothing sets previewSteps on an observed resource, so the classifier gets no steps and core reads the missing verdict as unknown.

Acceptance criteria

  • classifyPulumiDisruption answers from the plan attributes the preview observation writes, with the table in disruption.ts.
  • Callers that build queries with pulumiDisruptionQueries keep their previewSteps answers.
  • A test runs lifecycle plan on a pulumi member observed at preview depth and shows an in-place, a replace and a destroy verdict.
  • An entry with no plan attributes still reads unknown.
  • The pulumi lexicon exports a *_FLOOR for it in src/chant-floors.ts.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions