pulumi/changelog/pending
Will Jones dc6f275f03
Fix dependency traversal for untargeted skipped creates (#17340)
When performing a `--target`ed operation, it is possible that the new
program introduces new resources that are not targeted. In such cases,
we can't emit `CreateStep`s (since that would not respect the
`--target`s), but we need to track the creations so that e.g. later
resources that will come to depend on these would-be resources can be
handled appropriately. The step generator maintains a list of so-called
"skipped creates" to this end.

Unfortunately, when later traversing the list of skipped creates to see
if any resources depend on them, "depend on" does not take into account
property dependencies and deleted-with relationships. This results in
snapshot integrity errors as we end up writing the broken dependencies
to the state. This commit rewrites the code to use the new
`GetAllDependencies()` method on `resource.State` to take account of the
other possible relationships, adding lifecycle tests for these new cases
and cleaning up the existing tests to be more specific about the errors
they expect.
2024-09-23 15:02:37 +00:00
..
20240909--auto-nodejs--support-an-abort-channel-for-gracefully-canceling-operations.yaml [nodejs] cancelation support for auto api (#16783) 2024-09-17 13:23:58 +00:00
20240909--auto-nodejs-python--support-refresh-consistently-in-up-preview-destroy.yaml auto: support refresh consistently in up/preview/destroy (#17209) 2024-09-17 09:39:02 +00:00
20240911--sdk-nodejs--allow-pulumi-about-in-nodejs-projects-to-resolve-dependencies-from-package-files-by-walking-up-the-file-tree.yaml Allow 'pulumi about' in nodejs projects to resolve dependencies from package files by walking up the file tree (#17239) 2024-09-17 12:23:17 +00:00
20240913--cli-display--show-the-count-of-unchanged-resources.yaml Show the count of unchanged resources (#17257) 2024-09-17 08:41:53 +00:00
20240916--sdkgen-python--first-class-output-versioned-invokes-that-maintain-secrets-in-python.yaml [python] First-class output-versioned invokes that maintain secrets (#17275) 2024-09-22 18:23:27 +00:00
20240917--cli-state--support-falling-back-to-snapshot-secret-managers-when-pulumi_fallback_to_state_secrets_manager-is-set.yaml Support falling back to snapshot secret managers (#17236) 2024-09-18 08:34:21 +00:00
20240917--engine--generated-and-matched-aliases-are-written-to-debug-logs.yaml Log alias generation to V(7) (#17280) 2024-09-17 07:24:33 +00:00
20240917--yaml--update-pulumi-yaml-to-1-10-1.yaml Update pulumi-yaml to 1.10.1 (#17287) 2024-09-17 19:25:39 +00:00
20240918--sdkgen-python--fully-generate-typeddict-input-types-by-default.yaml Fully generate TypedDict input types by default (#17296) 2024-09-20 17:16:14 +00:00
20240919--sdkgen-nodejs--bump-valid-nodejs-version-to-v3-133-the-one-that-contains-invokeoutput-and-friends.yaml [sdk-gen/nodejs] Bump valid nodejs version to v3.133 the one that contains invokeOutput and friends (#17316) 2024-09-20 12:47:16 +00:00
20240919--sdkgen-python--fix-sdk-gen-for-parameterized-providers.yaml Update python codegen to use 3.134.1 for param providers (#17303) 2024-09-19 19:25:04 +00:00
20240919--yaml--update-yaml-to-1-10-3.yaml Update yaml to 1.10.3 (#17304) 2024-09-19 15:29:42 +00:00
20240920--cli-config--fix-help-text-for-config-set-command.yaml fix help text for pulumi config set (#17319) 2024-09-20 13:43:51 +00:00
20240920--sdkgen-python--fix-python-defaulting-to-generating-typed-dicts-for-input-types.yaml Fix python typed dicts to be enabled by default (#17322) 2024-09-20 20:53:06 +00:00
20240922--engine--fix-token-expired-errors-due-to-network-issues.yaml Keep the token source loop going in the face of errors (#17127) 2024-09-23 08:26:27 +00:00
20240923--engine--fix-dependency-traversal-for-untargeted-skipped-creates.yaml Fix dependency traversal for untargeted skipped creates (#17340) 2024-09-23 15:02:37 +00:00
20240923--engine--retry-token-refresh-errors-immediately.yaml Retry token errors immediately (#17338) 2024-09-23 12:09:49 +00:00