Skip to content

fix sfcompute v2 termination not found handling - #138

Merged
jarrad merged 3 commits into
mainfrom
agent/sfcompute-v2-not-found
Aug 3, 2026
Merged

fix sfcompute v2 termination not found handling#138
jarrad merged 3 commits into
mainfrom
agent/sfcompute-v2-not-found

Conversation

@jarrad

@jarrad jarrad commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

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

@jarrad
jarrad marked this pull request as ready for review August 3, 2026 20:41
@jarrad
jarrad requested a review from a team as a code owner August 3, 2026 20:41
@jarrad
jarrad merged commit e90c745 into main Aug 3, 2026
6 of 7 checks passed
@jarrad
jarrad deleted the agent/sfcompute-v2-not-found branch August 3, 2026 20:46
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.

2 participants