Skip to content

Ignore deprecation warnings in plan comparison? #406

@bamarch

Description

@bamarch

Suggestion

Hi Dan - thanks for the TF action, since working together I've brought it along with me to new gigs :D

The feature to compare PR plans when applying provides a lot of value.

Recently though I have had some terraform-apply failures due to changed from the plan on the PR

The plan is the same, apart from a snippet after the summary that says "Warning: Argument is deprecated"

Image

For the same HCL and the same terraform state, the warning from the PR plan has chosen a resource with uks in the name whereas the apply on merge has chosen a resource with eus in the name for its example.

Unfortunately warnings are not deterministic in their choice of example resource:
hashicorp/terraform#30934

Suggestion:

Could the warnings section be ignored when comparing plans?

The content after the summany Plan: 26 to import, 0 to add, 1 to change, 0 to destroy. doesn't relate to actions that will be taken during an apply of the plan, so I think should be safe to omit from comparisons

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions