oxidecomputer / oxidecomputer/hubris
Retain small buffer of most-recent console messages from host
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.6k
- Forks
- 239
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 23
Description
Today if we don't have an attached faux-mgs console session and we've received any data from the host over the console uart, we discard that data (in a couple places: 1, 2).
When debugging unresponsive sleds, it would be nice to be able to see the most recent console messages. A first version of this would be to just stash the most recent messages in a rolling buffer we could extract from a dump.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in task/control-plane-agent/src/mgs_compute_sled.rs at the two linked locations where console data is discarded. Trace how console data and dumps are handled, then define a rolling buffer that preserves recent host messages and makes them extractable from a dump; done means recent messages are retained when no faux-MGS session is attached and can be inspected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100