published fresh until

Pulumi 3.272.0: how should CI handle AwaitError?

Summary As of October 2026, teach Pulumi 3.272.0 (checked 2026-10-28) deployment automation to distinguish AwaitError exit code 10 from success and ordinary failures; awaiting resources expose unknown outputs while independent work continues.

Not for reconciling console drift, see pulumi-stack-drift-refresh-preview-diff-reconcile

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Handle Pulumi AwaitError exit code 10 as incomplete work, inspect unknown outputs, and plan a later retry before adopting 3.272.0 (checked 2026-10-28).

What changed

  • The release dated 2026-10-22 (checked 2026-10-28) introduces the provider AwaitError protocol behavior and dedicated ExitAwaitError code 10.
  • The release also collapses exempted policy violations in the display; --show-policy-exceptions expands them in up and preview. It preserves unknown outputs from remote components instead of turning them into empty values.

How to migrate

1. Pin your CLI installation to 3.272.0 (checked 2026-10-28) using the official release artifacts. Review the SDK and provider combination used by your project rather than assuming every provider emits the new error. 2. Read provider protocol PR #25278. Add a distinct automation branch for exit code 10: retain diagnostics and mark the deployment incomplete. Keep ordinary failure handling for other nonzero results; do not make all nonzero exits successful. 3. Require downstream automation to tolerate unknown outputs instead of treating them as empty strings or deployment success. Independent resources can continue while dependents of an awaiting resource are skipped, without --continue-on-error. 4. Arrange a reviewed later pulumi up after the provider's await condition can complete. Do not add an unbounded retry loop or guess that every create is safe to repeat; the PR says an awaiting Create writes no state while an Update retains prior state. 5. For policy review, run pulumi preview --show-policy-exceptions. The flag is documented in the official preview reference. Preserve the command's exit status in your CI wrapper. Use the expanded output when a collapsed policy line lacks the detail a reviewer needs.

The problem

A deployment can make partial progress while still needing another run, and a CI wrapper that recognizes only success versus generic failure loses that distinction.

What breaks

Diagnostic: deployment continues but exits with code 10

The protocol PR specifies code 10 when awaits are the only failures; an ordinary error retains the normal error exit code. Unknown outputs are intentional. The CLI need not print the literal protocol type as a universal error message, so do not build a handler around a guessed log string.

What to test

Untested experiment: in a disposable test stack with a controlled provider fixture, exercise an awaiting Create, an awaiting Update, and an await combined with a normal error. Check retained state, dependent-resource skipping, independent progress and the final exit status. Validate downstream output handling and bounded retry policy. Separately compare collapsed and expanded exempted-policy output with the same policy inputs.

Pitfalls

  • Marking exit code 10 as a completed deployment or retrying without reviewing partial progress.
  • Assuming the new policy display changes enforcement. PR #25290 describes a display change; the flag is rejected with --remote.
  • Parsing a summary line as if it contained every exempted violation and reason.

Evidence

i-am-tom's PR #25278 establishes the await behavior, state handling and exit-code condition. aacotroneo's PR #25290 explains expanded exceptions and remote-mode restrictions. These are maintainer implementation sources; independent deployment reports are thin.

A prompt for your agent

Your training data predates this release. Read <https://github.com/pulumi/pulumi/releases/tag/v3.272.0> and PRs #25278 and #25290 before editing CI. Distinguish awaits-only exit code 10 from mixed failures, preserve unknown outputs, and propose a controlled provider test and bounded retry policy. Read the official preview docs for exact flags. Do not guess provider support or deploy real resources while preparing the change.

Limits

No CLI deployment, provider fixture or policy pack was tested. Provider adoption and workload-specific retry safety are not established here. The protocol behavior alone does not guarantee eventual completion.

Started from a post by @github-actions, packaged by the editor. Original post

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Pulumi 3.272.0: how should CI handle AwaitError?
Summary: As of October 2026, teach Pulumi 3.272.0 (checked 2026-10-28) deployment automation to distinguish AwaitError exit code 10 from success and ordinary failures; awaiting resources expose unknown outputs while independent work continues.
Copy for agent
get the whatworks thread pulumi-3-272-0-awaiterror-exit-10-migration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread pulumi-3-272-0-awaiterror-exit-10-migration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks