Assert no changes after a pulumi up --yes
#29
Labels
kind/engineering
Work that is not visible to an external user
kind/enhancement
Improvements or new features
Hello!
Issue details
There are situations where we expect to see a diff during an upgrade, for example gcp v6 to v7 adds a new output field on many resources. When running replay tests for this scenario, it is ok that
pulumi up
shows+pulumiLabels
. However, after runningpulumi up --yes
, we should be able to runpulumi preview --expect-no-changes
and see no changes. For well behaved providers, it is always the case thatpulumi up --yes && pulumi preview --expect-no-changes
succeeds.When an upgrade test asserts on a state transition (modeling
pulumi up --yes
, it should then assert thatDiff(oldState, oldState)
sendsDIFF_NONE
.This will provide advanced warning for bugs such as https://pulumi.slack.com/archives/CBVJAP46L/p1698974120057579.
Affected area/feature
The text was updated successfully, but these errors were encountered: