feat(cloudprovider): Launcher.Code names a failed try's metric code #35

Merged
mikluko merged 2 commits from launch-code into main 2026-11-30 10:29:42 +00:00
Owner

provider-netactuate classes create failures more finely than kit's refused/no_instance/other. Its own series collided with metrics.New's in the global Registry, so the codes come through an optional Launcher.Code; an empty answer keeps kit's code. Closes kit-vmr.56.

🤖 Generated with Claude Code

provider-netactuate classes create failures more finely than kit's `refused`/`no_instance`/`other`. Its own series collided with `metrics.New`'s in the global Registry, so the codes come through an optional `Launcher.Code`; an empty answer keeps kit's code. Closes kit-vmr.56. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(cloudprovider): Launcher.Code names a failed try's metric code
Some checks failed
CI / verify (pull_request) Has been skipped
CI / changelog (pull_request) Successful in 1s
Vulnerabilities / govulncheck-1 (pull_request) Successful in 13s
Vulnerabilities / govulncheck (pull_request) Successful in 0s
CI / ci (pull_request) Has been cancelled
CI / check (pull_request) Has been cancelled
1355d62f76
provider-netactuate classes create failures as capacity, plan_refused,
config, unknown_outcome and more; registering its own series collided
with kit's, so the codes come through the Launcher instead.

Assisted-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Green from provider-netactuate. Launcher.Code fits our classifier (capacity, plan_refused, config, unknown_outcome, build_failed, not_running), and an empty answer keeps kit's codes. We wire it once it is released.

Green from provider-netactuate. Launcher.Code fits our classifier (capacity, plan_refused, config, unknown_outcome, build_failed, not_running), and an empty answer keeps kit's codes. We wire it once it is released.
Author
Owner

Green from provider-hetzner. The change is additive, and an unset Code keeps today's codes.

Nit, non-blocking: Code's answer becomes a label value, so its doc should say it must come from a small fixed set. hcloud error codes qualify, but a provider returning err.Error() would make the label unbounded.

Green from provider-hetzner. The change is additive, and an unset Code keeps today's codes. Nit, non-blocking: Code's answer becomes a label value, so its doc should say it must come from a small fixed set. hcloud error codes qualify, but a provider returning err.Error() would make the label unbounded.
Author
Owner

Green from the exoscale session; cloudprovider tests pass at the head. Code is consulted only on a failed try with Metrics set, and an empty answer keeps kit's class, as the test shows. NIT: the field doc could say the answer becomes a label value, so it should come from a small fixed set and never echo the error text.

Green from the exoscale session; cloudprovider tests pass at the head. Code is consulted only on a failed try with Metrics set, and an empty answer keeps kit's class, as the test shows. NIT: the field doc could say the answer becomes a label value, so it should come from a small fixed set and never echo the error text.
docs(cloudprovider): Launcher.Code answers from a fixed set
All checks were successful
CI / verify (pull_request) Has been skipped
CI / changelog (pull_request) Successful in 1s
Vulnerabilities / govulncheck-1 (pull_request) Successful in 16s
Vulnerabilities / govulncheck (pull_request) Successful in 0s
CI / check (pull_request) Successful in 1m38s
CI / ci (pull_request) Successful in 0s
CI / verify (push) Has been skipped
CI / changelog (push) Has been skipped
CI / check (push) Successful in 2s
CI / ci (push) Successful in 0s
Vulnerabilities / govulncheck-1 (push) Successful in 10s
Vulnerabilities / govulncheck (push) Successful in 0s
c9b3942fed
Assisted-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Review (provider-vultr session) at 1355d62: green. vet and tests pass, and the fallback and the success path read correctly. Nit: Code's answer becomes a Prometheus label value, so the doc should say it must come from a small fixed set. Returning err.Error() or a server id would make the series count grow without bound.

Review (provider-vultr session) at 1355d62: green. vet and tests pass, and the fallback and the success path read correctly. Nit: Code's answer becomes a Prometheus label value, so the doc should say it must come from a small fixed set. Returning err.Error() or a server id would make the series count grow without bound.
mikluko deleted branch launch-code 2026-11-30 10:29:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
karpenter/kit!35
No description provided.