pulumi/pkg/resource/deploy/deploytest
Thomas Gummerer 4169755866
Implement up --continue-on-error (#15740)
Similar to destroy --continue-on-error, this flag allows `pulumi up`
to continue if any errors are encountered.

Currently when we encounter an error while creating/updating a
resource, we cancel the context of the deployment executor, and thus
the deployment stops once the resources that are being processed in
parallel with the failed one finish being updated.

For --continue-on-error, we ignore these errors, and let the
deployment executor continue.  In order for the deployment executor to
exit eventually we also have to mark these steps as done, as the
deployment executor will otherwise just hang, and callers with open
channels waiting for it to finish/report back will hang indefinitely.

The errors in the step will still be reported back to the user by the
OnResourceStepPost callback.

Fixes https://github.com/pulumi/pulumi/issues/14515

---------

Co-authored-by: Fraser Waters <fraser@pulumi.com>
2024-04-22 11:12:45 +00:00
..
analyzer.go Policy remediations feature (#14080) 2023-10-09 18:31:17 +00:00
analyzer_test.go [ci] `pkg/resource/deploy/deploytest/analyzer.go` coverage (#14971) 2023-12-21 05:42:37 +00:00
backendclient.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
callbacks.go Engine support for remote transforms (#15290) 2024-02-21 16:30:46 +00:00
languageruntime.go Use the local artifacts, not released artifacts in conformance tests (#15777) 2024-03-26 13:10:34 +00:00
languageruntime_test.go Use the local artifacts, not released artifacts in conformance tests (#15777) 2024-03-26 13:10:34 +00:00
pluginhost.go Add `plugin run` command (#12613) 2024-02-05 08:35:48 +00:00
pluginhost_test.go [conformance tests] Fix run root and use program info everywhere (#15191) 2024-01-25 23:28:58 +00:00
provider.go upgrade to latest version of golangci-lint (#15977) 2024-04-19 06:20:33 +00:00
provider_test.go [ci] `pkg/resource/deploy/deploytest/provider.go` coverage (#14970) 2023-12-22 19:13:20 +00:00
resourcemonitor.go Implement up --continue-on-error (#15740) 2024-04-22 11:12:45 +00:00
resourcemonitor_test.go deploytest/RegisterResource: return struct instead of values (#15988) 2024-04-19 11:08:56 +00:00
sink.go [ci] `pkg/resource/deploy` coverage (#14831) 2023-12-19 16:14:40 +00:00