24 lines
1.7 KiB
JavaScript
24 lines
1.7 KiB
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Manual QA checklist for baretop health score (run inside a Bare OS TTY session).
|
|
* 1. Run: baretop
|
|
* 2. With zero peers and idle delegates, health should read 100 (not stuck at 73).
|
|
* 3. Run with: BARE_TOP_HEALTH_DETAIL=1 baretop — overview shows penalty breakdown.
|
|
* 4. Optional: BARE_TOP_INCREMENTAL=2 baretop — stderr with BARE_TOP_DEBUG_TIMINGS=1 may show patchLen < outLen when idle.
|
|
* 5. Network tab (tab 4): nested net_summary fields render as lines/JSON — no literal “[object Object]”.
|
|
* 6. Optional: BARE_TOP_NET_FILTER=1 then / on network tab filters lines.
|
|
* 7. Optional: BARE_TOP_TAB_MERGE=netop — operator tab disappears; network tab still renders.
|
|
* 8. On overview: ' then 1 — scroll jumps to the first visible section; Esc cancels the prefix.
|
|
* 9. When present under /proc/bare_os/, these should read without breaking the TUI:
|
|
* process_io.json, process_threads.json, process_maps.json (also listed in BARE_TOP_SNAPSHOT_PROC_ENTRIES).
|
|
*/
|
|
console.log(`baretop health QA:
|
|
- Expect health 100 on single-node idle (operational stallHint no longer penalized).
|
|
- Use BARE_TOP_HEALTH_DETAIL=1 to verify breakdown text.
|
|
- Use BARE_TOP_DEBUG_TIMINGS=1 to inspect fetchMs / outLen / patchLen.
|
|
- Network tab: replicationQueue / peerFirewallStats / bsdSocketGuestBridge should show structured text.
|
|
- BARE_TOP_NET_FILTER=1 enables / filter on the network tab.
|
|
- BARE_TOP_TAB_MERGE=netop merges operator summary into the network tab.
|
|
- Overview section jump: ' then digit 1-9 or 0 (10th visible section).
|
|
- If the booter exposes them, process_io.json / process_threads.json / process_maps.json should load via the snapshot batch.`)
|