Repository navigation
Conversation
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.
Closes #275
The console gets its Attention view. It lists disconnected, incompatible and drained workers, quarantined and stalled devices, and workers over their RAM budget. Each item links to its worker. The nav shows the count beside Attention on every page. Both read
GET /v1/workers, like the workers views.A stalled device needs a new field. The doctor's stall test is now
isStalledTransitioninsrc/core/doctor.ts. The doctor's finding and the dispatcher's device decoration both call it. The dispatcher gets the drivers and the operation claims, and setsstalled: trueonstatus.get,list.getand worker view devices.simlock statusadds astalledmarker.Docs: CONSOLE.md (the Attention view), HTTP-API.md and CLI.md (
stalled), CONFIGURATION.md (what the stall threshold now drives).Done when
simlock doctorreports the same stalls as before:the doctor's stalled-transition finding is unchangedcompares whole findings at each threshold. The existing doctor stall tests pass unchanged.pnpm test:console, 117 passed.pnpm testpasses except the knowninstance-identityrace on macOS.pnpm test:e2epasses.Review
Spec review: 2 findings, 0 fixed. Code review: 8 findings over two rounds, 7 fixed.
Rejected:
doctor. That is now false, and architecture rule 13 says to fix it in the same change./v1/workers, and on a single hostworker.listreads the driver catalog on every call. — The spec puts the count on every page. The catalog read on each call is inworker.list(A worker answers the fleet operations as a fleet of one #270), and the Workers view already polls it every second. ADR 0013 expects these reads to answer from memory, so the fix belongs inworker.list.Written by an agent.