Repository navigation
Page on hosted launches that are refused or never come up - #1986
Closed
niall-sandboxaq wants to merge 11 commits into
Closed
niall-sandboxaq wants to merge 11 commits into
niall-sandboxaq wants to merge 11 commits into
Conversation
A machine that reports it needs attention before it has ever been ready now records the failure as launch_refused, and "Hosted machine launches failing" counts it. A refused first launch used to be recorded once and left in error, so no alert fired for it. Machines that have been ready are unchanged, so restarts can't page this way. Reasons and tags stay fixed words. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Closing: this is being folded into a single hosted agents v2 PR, built from current main. A link will be added here once it's up. The branch is kept for history. |
Collaborator
Author
|
Folded into #2216, which brings all of hosted agents v2 into one PR with one commit per area. Closing this one in its favour. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's wrong today
When the hosted controller refuses a machine's first launch with its own checks (for example, an image that fails its validation), the machine reports
needs_attentionand Core recordsfailedwith reasonneeds_attention. "Hosted machine launches failing" doesn't count that reason, and no other alert covers it: "Cloud calls failing" counts only AWS errors, and a refused first launch is recorded once and then left in error, so no existing alert fired for it. A deployment with a bad worker image would fail every new machine without paging.What this changes
needs_attentionand has never been ready (first_ready_atis empty), the hosted metric and log line record the finer reasonlaunch_refused, as a first launch that never connected is already told apart from a wake that didn't come back (wake_failed). Product telemetry keepsneeds_attention.stop_failed, and one that has been ready still recordsneeds_attention.launch_refusedwith the other launch reasons. Its message and the observability README name the new case.How it was tested
needs_attentionrecordslaunch_refused, also from an earlier revision's late report once it has been asked to run again (statestopped, wanted running); a machine that has been ready recordsneeds_attentionand isn't counted, also from a late report; a machine wanted down recordsstop_failedeven if never ready, from a current or a late report.9a63077d7with this change: the hosted controller, cloud controller machines, hosted machines, observability and admin tests pass, 506 of 506, against a real Postgres; with the two late-report cases added,test_hosted_controller.pypasses 109 of 109 with hosted agents v2 on and with it off. ruff, format and mypy clean.Not covered
🤖 Generated with Claude Code