Skip to content

Commit

Permalink
Fixes from review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Roberts committed May 1, 2024
1 parent bb929a1 commit 8a13150
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
@@ -1,4 +1,4 @@
changes:
- type: fix
scope: cli/engine
description: "Fixes #15564, --expect-no-changes now causes pulumi cli to fail if the only changes are output changes"
description: "Make --expect-no-changes fail even if the only changes are output changes"
2 changes: 2 additions & 0 deletions pkg/cmd/pulumi/stack_history.go
Expand Up @@ -163,6 +163,8 @@ func displayUpdatesJSON(updates []backend.UpdateInfo, decrypter config.Decrypter
info.EndTime = makeStringRef(time.Unix(update.EndTime, 0).UTC().Format(timeFormat))
resourceChanges := make(map[string]int)
for k, v := range update.ResourceChanges {
// Filter out the the OpOutputChange events because they are pseudo
// events that shouldn't be included in the stack history
if k != deploy.OpOutputChange {
resourceChanges[string(k)] = v
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/engine/lifecycletest/pulumi_test.go
Expand Up @@ -5720,10 +5720,10 @@ func TestOutputChanges(t *testing.T) {
"frob": "baz",
})
programF := deploytest.NewLanguageRuntimeF(func(_ plugin.RunInfo, monitor *deploytest.ResourceMonitor) error {
urn, _, _, _, err := monitor.RegisterResource("pkgA:m:typA", "resA", true, deploytest.ResourceOptions{})
rrResp, err := monitor.RegisterResource("pkgA:m:typA", "resA", true, deploytest.ResourceOptions{})
assert.NoError(t, err)

err = monitor.RegisterResourceOutputs(urn, outs)
err = monitor.RegisterResourceOutputs(rrResp.URN, outs)
assert.NoError(t, err)

return nil
Expand Down

0 comments on commit 8a13150

Please sign in to comment.