Skip to content

chore(deps): provider-runtime v1.4.0 — recover interrupted creates instead of refusing forever (#22) - #25

Merged
braghettos merged 1 commit into
mainfrom
chore/provider-runtime-v1.4.0
Sep 28, 2026
Merged

braghettos merged 1 commit into
mainfrom
chore/provider-runtime-v1.4.0

Conversation

@braghettos

Copy link
Copy Markdown

Closes #22.

What this recovers

Six Repo CRs have been wedged on krateo-057 since 2026-09-21:

cannot determine creation result - remove the krateo.io/external-create-pending
annotation if it is safe to proceed

They were wedged by the go-git transport race that 0.15.4 fixed. That fix stopped new wedges; it could not recover existing ones. This bump is what recovers them.

provider-runtime v1.4.0 confirms the negative rather than holding on the ambiguity:

  • within a 2-minute grace: re-observe without recreating, so a create that did land is adopted rather than duplicated
  • once it has fully elapsed with the resource still absent: the create did not land, so clear the marker and let the normal create path run

All six markers are days old, so they resolve on the first reconcile after rollout.

No git-provider code change, and that is a correction

An earlier reading of #22 — mine — proposed making Observe consult the forge when the external name is empty, on the grounds that it currently reports absence from local bookkeeping.

That was wrong. Returning ResourceExists: false there is correct: it is how a new Repo gets created, and changing it could stop Create ever running. The local signal cannot be made meaningful for the recovery question, which is exactly why the runtime fix is time-based instead.

Tests

Unit suite green: 9 packages, -race, 0 failures.

Integration tests did not run locally — they need a Docker daemon for kind and it was not available. CI covers them, and this PR should not merge until it does.

🤖 Generated with Claude Code

…stead of refusing forever (#22)

v1.4.0 gives an unresolved create handshake a bounded path back. Previously, an interrupted
create whose external resource Observe could not find was terminal: the reconciler refused with
Requeue:false and nothing ever resolved the ambiguity, so the only documented remedy was a human
deleting krateo.io/external-create-pending by hand.

Six Repo CRs have been in exactly that state on krateo-057 since 2026-09-21, wedged by the
go-git transport race that 0.15.4 fixed. That fix stopped NEW wedges; it could not recover the
existing ones. This bump is what recovers them.

The runtime now confirms the negative rather than holding on the ambiguity: within a 2-minute
grace it re-observes without recreating, so a create that did land is adopted rather than
duplicated; once the grace has fully elapsed with the resource still absent, the create did not
land and the pending marker is cleared so the normal create path runs again. All six markers are
days old, so they resolve on the first reconcile after rollout.

No git-provider code change is needed. An earlier reading of #22 proposed making Observe consult
the forge when the external name is empty; that was wrong. Returning ResourceExists:false there
is CORRECT — it is how a new Repo gets created — and changing it could stop Create ever running.
The recovery is time-based precisely because the local signal cannot be made meaningful.

Verified: unit suite green (9 packages, -race). Integration tests need a Docker daemon and did
not run locally; CI covers them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@braghettos
braghettos force-pushed the chore/provider-runtime-v1.4.0 branch from d859e49 to ba6cd61 Compare September 28, 2026 08:56
@braghettos
braghettos merged commit 404d45f into main Sep 28, 2026
3 checks passed
@braghettos
braghettos deleted the chore/provider-runtime-v1.4.0 branch September 28, 2026 09:06
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.

Six Repo CRs are permanently wedged on "cannot determine creation result": 0.15.4 stops new wedges but cannot recover existing ones

1 participant