feat(cloudprovider): Launcher.Code names a failed try's metric code #35
Loading…
Reference in a new issue
No description provided.
Delete branch "launch-code"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
provider-netactuate classes create failures more finely than kit's
refused/no_instance/other. Its own series collided withmetrics.New's in the global Registry, so the codes come through an optionalLauncher.Code; an empty answer keeps kit's code. Closes kit-vmr.56.🤖 Generated with Claude Code
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-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 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.
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.