Skip to content

fix sfcompute v2 termination not found handling - #138

Draft
jarrad wants to merge 1 commit into
mainfrom
agent/sfcompute-v2-not-found
Draft

fix sfcompute v2 termination not found handling#138
jarrad wants to merge 1 commit into
mainfrom
agent/sfcompute-v2-not-found

Conversation

@jarrad

@jarrad jarrad commented Jul 30, 2026

Copy link
Copy Markdown

What changed

  • normalize SFCompute V2 NotFoundError responses from instance termination to the shared ErrInstanceNotFound sentinel
  • discard the raw provider response body on this already-gone path
  • preserve other provider failures for callers to retry

Why

SFCompute can terminate an instance while returning an ambiguous failure. A later retry then receives a typed 404. Without provider-level normalization, dev-plane treats that 404 as retryable and keeps the orphan-termination workflow open through its full retry policy even though the desired state has already been reached.

Validation

  • GOCACHE=/tmp/codex-go-cache-cloud-sfc go test ./v1/providers/sfcomputev2
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant