feat(soak): Show the background jobs each round, and stop the loop spinning
Script B's monitoring loop had no pause at all - each round started the instant the last one ended, so an overnight soak filled the log with near-identical samples taken seconds apart. The section was even labelled "Get data every 10mins" while running with no delay whatsoever. The loop now ends each round with pause 60 and prints both job lists: bgctl list for the platform job runner, jobs for anything the macro backgrounded in that shell. A stress job that dies mid-soak shows up as a shorter list on the next round instead of going unnoticed until the end. 60s is still hard-coded and the Status sheet asks for 10 minutes, so the Phase 3 item stays open - this makes the loop sane, it does not close it. Also adds docs/LTC2980_channel_map.csv: the nine settings/*.conf flattened into one Board,CONN,Ch,NetName,Vnom sheet, generated by tools/gen_channel_map.sh. The CSV is output, not source. NC channels are kept as NC/- because the channel number is also the PMBus page - dropping the gaps would shift every channel after them. Two things the merged table makes visible: SWB0 and SWB1 carry identical net names and voltages (only the bus and CB_I2C_CH differ), so those are two copies that can drift apart silently; and there are exactly 8 NC channels, all on CONN14/CONN15. tools/100G_PRBS.txt, TR518.txt and fan_ctrl.txt join the existing traffic_loopback_*.txt references. TR518 is not scripted yet and cannot share the hardware with blanton_traffic_linespeed - both drive port loopback and L2 learning. Script A -> V1.0.10. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014RetWKFZFG1ZHcitQAyhwM
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
; =============================================================================
|
||||
; Script A for Blanton
|
||||
; Version : V1.0.9
|
||||
; Date : 2026-08-26
|
||||
; Version : V1.0.10
|
||||
; Date : 2026-08-27
|
||||
; Author : ETWen
|
||||
; =============================================================================
|
||||
; Version History:
|
||||
@@ -65,6 +65,15 @@
|
||||
; ScriptA/B/C Job log path /host/hw-eval/current/jobs -> /host/hw-eval/jobs
|
||||
; ScriptC Mount the USB (usb_target.sh) before copying the job logs
|
||||
; ScriptC Reorder results: stress logs, then MGMT ping, then 100G status
|
||||
; V1.0.10 2026-08-27 ScriptB Monitor loop lists the background jobs every round
|
||||
; + bgctl list - platform jobs
|
||||
; + jobs - shell jobs of the login shell
|
||||
; + pause 60 - the loop used to run with no pause at all
|
||||
; docs/LTC2980_channel_map.csv Channel / net / Vnom map built from settings/*.conf
|
||||
; tools/gen_channel_map.sh Regenerates that CSV - the CSV is output, not source
|
||||
; tools/100G_PRBS.txt Bench command references, kept for hand-run debug
|
||||
; tools/TR518.txt TR518 = built-in packet test (swutil / bcmcmd tr 518)
|
||||
; tools/fan_ctrl.txt MAX31790 rebind + fan-speed-control.sh
|
||||
; =============================================================================
|
||||
include "config.ttl"
|
||||
|
||||
|
||||
@@ -161,11 +161,16 @@ endif
|
||||
|
||||
|
||||
|
||||
; ========== Get data every 10mins ==========
|
||||
; ========== Monitor loop: platform data + background jobs (pause 60s per round) ==========
|
||||
while 1
|
||||
include "utils/setup_pmon.ttl"
|
||||
wait prompt_sonic_root
|
||||
sendln "bgctl list"
|
||||
wait prompt_sonic_root
|
||||
sendln "jobs"
|
||||
; ========== Check Margin ==========
|
||||
if EN_Margin = 1 then
|
||||
include "utils/show_margin_status.ttl"
|
||||
endif
|
||||
endwhile
|
||||
pause 60
|
||||
endwhile
|
||||
|
||||
Reference in New Issue
Block a user