mirror of https://github.com/pulumi/pulumi.git
fc10da33d9
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> |
||
---|---|---|
.. | ||
bWFwW2E6ezF9X2I6e21hcFtjOntmb299XX1dLTAtMA== | ||
bWFwW2E6ezJ9X2I6e21hcFtjOntiYXJ9XX1dLTAtMA== | ||
bWFwW2E6ezJ9X2I6e21hcFtjOntmb299XX1dLTAtMA== | ||
bWFwW2E6ezN9X2I6e21hcFtjOntiYXp9XX1dLTAtMA== | ||
bWFwW2E6ezQyfV9iOnttYXBbYzp7cXV4fV19XS0wLTA= | ||
bWFwW2E6ezR9X2I6e21hcFtjOntxdXh9XX1dLTAtMA== |