pulumi/tests/integration
bors[bot] 1ccfa9fdc4
Merge #11009 #11027
11009: Fix update plans with dependent replacements r=Frassle a=Frassle

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

We weren't correctly handling the case where a resource was marked for deletion due to one of it's dependencies being deleted. We would add an entry to it's "Ops" list, but then overwrite that "Ops" list when we came to generate the recreation step.

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

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [x] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


11027: Do not execute pending deletes at the start of deployment r=Frassle a=Frassle

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

This removes all the handling of pending deletes from the start of deployments. Instead we allow resources to just be deleted as they usually would at the end of the deployment.

There's a big comment in TestPendingDeleteOrder that explains the order of operations in a succesful run and how that order differs if we try and do pending deletes up-front.

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

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [x] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Fraser Waters <fraser@pulumi.com>
2022-11-01 10:17:07 +00:00
..
about ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
aliases ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
cloud_secrets_provider Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
component_provider_schema ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
config_basic ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
config_capture_e2e/nodejs Changing build.proj to run all languages and tests on windows 2020-01-27 21:16:37 +02:00
config_secrets_warn ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component Inherit the providers map between components 2022-10-20 15:35:50 -07:00
construct_component_error_apply Fix a hang in nodejs remote components when an error is thrown within an apply (#7365) 2021-06-25 18:41:54 -07:00
construct_component_methods ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_methods_errors ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_methods_resources ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_methods_unknown ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_output_values ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_plain ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_provider ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_slow ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_unknown ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_nested_component/go [cli] Experimental support for remote operations 2022-10-27 16:15:59 -07:00
custom_timeouts ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
delete_before_create ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
dependency_steps ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
double_pending_delete Do not execute pending deletes at the start of deployment 2022-10-14 15:52:13 +01:00
duplicate_urns ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
dynamic Lower the BrokenDynamicProvider regression test from integration to mock (#7951) 2021-09-10 17:25:48 -04:00
ee_perf Use prefered `new pulumi.Config()` form 2019-01-31 16:11:57 -08:00
empty ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
enums Fix non-determinism in Python dynamic provider serialization (#9656) 2022-05-22 20:15:29 -07:00
exclude_protected Implement the --exclude-protected feature (#8359) 2021-11-15 11:45:14 -08:00
explicit_provider Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
gather_plugin Merge remote-tracking branch 'origin/master' into useLocalDeps 2022-09-22 15:16:05 +01:00
get_created Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
get_resource ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
go [yaml] Update Pulumi YAML to v0.5.8 2022-09-26 17:19:57 -07:00
invalid_package_json Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
large_resource ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
nodejs updated error message to catch syntax errors (#10465) 2022-08-23 21:33:29 -05:00
partial_state ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
partial_values Propagate inputs to outputs during preview. (#3327) 2019-11-11 12:09:34 -08:00
policy ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
printf ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
project_main Add a 'main' test for golang 2022-09-22 14:46:48 +01:00
project_main_abs Enable absolute and relative parent paths for pulumi main (#6734) 2021-04-08 21:39:52 -07:00
project_main_parent/foo Enable absolute and relative parent paths for pulumi main (#6734) 2021-04-08 21:39:52 -07:00
protect_resources ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
provider_secret_config Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
python fix: handle exception for main not found in python (#10617) 2022-09-07 08:42:38 -07:00
python_await [sdk/python] - Await all async tasks (#6606) 2021-03-30 10:56:17 -07:00
query ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
read ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
recreate_resource_check ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
refresh/go Fix regression validating project files with `refresh: always` set 2022-09-22 11:51:54 -07:00
rotate_passphrase ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
secret_outputs [sdk/python] Fix secret regression (#5496) 2020-10-01 14:57:51 -07:00
single_resource Suppress JSON outputs in preview correctly (#2771) 2019-05-25 12:10:38 +02:00
stack_bad_parenting Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
stack_component dotnet program-gen now targets .NET 6 (#10143) 2022-07-21 21:04:02 +02:00
stack_dependencies Remove existing lock files 2018-11-12 15:33:58 -08:00
stack_outputs dotnet program-gen now targets .NET 6 (#10143) 2022-07-21 21:04:02 +02:00
stack_parenting Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
stack_project_name Actually fix the naming test (#10554) 2022-08-31 20:52:23 +01:00
stack_reference [yaml] Update Pulumi YAML to v0.5.8 2022-09-26 17:19:57 -07:00
stack_reference_multi/python Regression tests for StackReference in the Python SDK (#3913) 2020-02-17 10:40:46 -08:00
stack_reference_secrets Make getOrganization total, default to 'organization' 2022-09-22 11:06:51 -07:00
steps ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
targets ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
transformations ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
tsconfig Add tsconfig option to specify tsconfig path (#8452) 2021-11-22 11:42:39 -08:00
types ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
unsafe_snapshot_tests/bad_resource Update tests/integration/unsafe_snapshot_tests/bad_resource/resource.ts 2022-09-15 08:00:36 -07:00
.gitignore ci: Enable async component builds 2022-09-14 10:06:05 -07:00
appdash_test.go Add trace proxying to fix sub-process trace collection into files (#7248) 2021-06-10 22:57:18 -04:00
component_setup.sh Inherit the providers map between components 2022-10-20 15:35:50 -07:00
integration_dotnet_smoke_test.go Merge remote-tracking branch 'origin/master' into useLocalDeps 2022-09-22 15:16:05 +01:00
integration_dotnet_test.go Merge remote-tracking branch 'origin/master' into useLocalDeps 2022-09-22 15:16:05 +01:00
integration_go_smoke_test.go Inherit the providers map between components 2022-10-20 15:35:50 -07:00
integration_go_test.go Merge remote-tracking branch 'origin/master' into useLocalDeps 2022-09-23 13:40:44 +01:00
integration_nodejs_smoke_test.go Merge remote-tracking branch 'origin/master' into useLocalDeps 2022-09-22 15:16:05 +01:00
integration_nodejs_test.go Merge remote-tracking branch 'origin/master' into useLocalDeps 2022-09-23 13:40:44 +01:00
integration_python_smoke_test.go Merge remote-tracking branch 'origin/master' into useLocalDeps 2022-09-22 15:16:05 +01:00
integration_python_test.go Merge remote-tracking branch 'origin/master' into useLocalDeps 2022-09-22 15:16:05 +01:00
integration_test.go Revert changing the temp dir TestDestroyStackRef 2022-10-12 15:43:25 +02:00