pulumi/pkg/engine/lifecycletest/testdata/output/TestUpdateShowsWarningWithP.../eventstream.json

9 lines
4.0 KiB
JSON
Raw Permalink Normal View History

Add display to the engine tests (#16050) We want to add more test coverage to the display code. The best way to do that is to add it to the engine tests, that already cover most of the pulumi functionality. It's probably not really possible to review all of the output, but at least it gives us a baseline, which we can work with. There's a couple of tests that are flaky for reasons I don't quite understand yet. I marked them as to skip and we can look at them later. I'd rather get in the baseline tests sooner, rather than spending a bunch of time looking at that. The output differences also seem very minor, so not super concerning. The biggest remaining issue is that this doesn't interact well with the Chdir we're doing in the engine. We could either pass the CWD through, or just try to get rid of that Chdir. So this should only be merged after https://github.com/pulumi/pulumi/pull/15607. I've tried to split this into a few commits, separating out adding the testdata, so it's hopefully a little easier to review, even though the PR is still quite large. One other thing to note is that we're comparing that the output has all the same lines, and not that it is exactly the same. Because of how the engine is implemented, there's a bunch of race conditions otherwise, that would make us have to skip a bunch of tests, just because e.g. resource A is sometimes deleted before resource B and sometimes it's the other way around. The biggest downside of that is that running with `PULUMI_ACCEPT` will produce a diff even when there are no changes. Hopefully we won't have to run that way too often though, so it might not be a huge issue? --------- Co-authored-by: Fraser Waters <fraser@pulumi.com>
2024-05-13 07:18:25 +00:00
{"sequence":0,"timestamp":0,"preludeEvent":{"config":{}}}
{"sequence":0,"timestamp":0,"diagnosticEvent":{"prefix":"\u003c{%fg 3%}\u003ewarning: \u003c{%reset%}\u003e","message":"\u003c{%reset%}\u003eAttempting to deploy or update resources with 2 pending operations from previous deployment.\n * urn:pulumi:test::test::pkgA:m:typA::resA, interrupted while updating\n * urn:pulumi:test::test::pkgA:m:typA::resB, interrupted while creating\nThese resources are in an unknown state because the Pulumi CLI was interrupted while waiting for changes to these resources to complete. You should confirm whether or not the operations listed completed successfully by checking the state of the appropriate provider. For example, if you are using AWS, you can confirm using the AWS Console.\n\nOnce you have confirmed the status of the interrupted operations, you can repair your stack using `pulumi refresh` which will refresh the state from the provider you are using and clear the pending operations if there are any.\n\nNote that `pulumi refresh` will need to be run interactively to clear pending CREATE operations.\u003c{%reset%}\u003e\n","color":"raw","severity":"warning"}}
{"sequence":0,"timestamp":0,"resourcePreEvent":{"metadata":{"op":"same","urn":"urn:pulumi:test::test::pulumi:providers:pkgA::default","type":"pulumi:providers:pkgA","old":{"type":"pulumi:providers:pkgA","urn":"urn:pulumi:test::test::pulumi:providers:pkgA::default","custom":true,"id":"9de76ee8-bc64-4e28-944e-36a301efb1af","parent":"","inputs":{},"outputs":{},"provider":""},"new":{"type":"pulumi:providers:pkgA","urn":"urn:pulumi:test::test::pulumi:providers:pkgA::default","custom":true,"id":"","parent":"","inputs":{},"outputs":{},"provider":""},"detailedDiff":null,"logical":true,"provider":""}}}
{"sequence":0,"timestamp":0,"resOutputsEvent":{"metadata":{"op":"same","urn":"urn:pulumi:test::test::pulumi:providers:pkgA::default","type":"pulumi:providers:pkgA","old":{"type":"pulumi:providers:pkgA","urn":"urn:pulumi:test::test::pulumi:providers:pkgA::default","custom":true,"id":"9de76ee8-bc64-4e28-944e-36a301efb1af","parent":"","inputs":{},"outputs":{},"provider":""},"new":{"type":"pulumi:providers:pkgA","urn":"urn:pulumi:test::test::pulumi:providers:pkgA::default","custom":true,"id":"9de76ee8-bc64-4e28-944e-36a301efb1af","parent":"","inputs":{},"outputs":{},"provider":""},"detailedDiff":null,"logical":true,"provider":""}}}
{"sequence":0,"timestamp":0,"resourcePreEvent":{"metadata":{"op":"same","urn":"urn:pulumi:test::test::pkgA:m:typA::resA","type":"pkgA:m:typA","old":{"type":"pkgA:m:typA","urn":"urn:pulumi:test::test::pkgA:m:typA::resA","custom":true,"id":"0","parent":"","inputs":{},"outputs":{},"provider":"urn:pulumi:test::test::pulumi:providers:pkgA::default::9de76ee8-bc64-4e28-944e-36a301efb1af"},"new":{"type":"pkgA:m:typA","urn":"urn:pulumi:test::test::pkgA:m:typA::resA","custom":true,"id":"","parent":"","inputs":{},"outputs":{},"provider":"urn:pulumi:test::test::pulumi:providers:pkgA::default::9de76ee8-bc64-4e28-944e-36a301efb1af"},"detailedDiff":null,"logical":true,"provider":"urn:pulumi:test::test::pulumi:providers:pkgA::default::9de76ee8-bc64-4e28-944e-36a301efb1af"}}}
{"sequence":0,"timestamp":0,"resOutputsEvent":{"metadata":{"op":"same","urn":"urn:pulumi:test::test::pkgA:m:typA::resA","type":"pkgA:m:typA","old":{"type":"pkgA:m:typA","urn":"urn:pulumi:test::test::pkgA:m:typA::resA","custom":true,"id":"0","parent":"","inputs":{},"outputs":{},"provider":"urn:pulumi:test::test::pulumi:providers:pkgA::default::9de76ee8-bc64-4e28-944e-36a301efb1af"},"new":{"type":"pkgA:m:typA","urn":"urn:pulumi:test::test::pkgA:m:typA::resA","custom":true,"id":"0","parent":"","inputs":{},"outputs":{},"provider":"urn:pulumi:test::test::pulumi:providers:pkgA::default::9de76ee8-bc64-4e28-944e-36a301efb1af"},"detailedDiff":null,"logical":true,"provider":"urn:pulumi:test::test::pulumi:providers:pkgA::default::9de76ee8-bc64-4e28-944e-36a301efb1af"}}}
{"sequence":0,"timestamp":0,"summaryEvent":{"maybeCorrupt":false,"durationSeconds":1,"resourceChanges":{"same":1},"PolicyPacks":{}}}
{"sequence":0,"timestamp":0,"cancelEvent":{}}