deploy: match Unknown-channel warnings by pipeline format
Test Suite / Detect changes (push) Canceled after 0s
Test Suite / Python (Windows, 3.14) (push) Canceled after 0s
Test Suite / Python (minimum, 3.11) (push) Canceled after 0s
Test Suite / Python (latest, 3.14 + coverage) (push) Canceled after 0s
Test Suite / webui (push) Canceled after 0s
Test Suite / Terminal UI (Windows) (push) Canceled after 0s
Test Suite / Terminal UI (push) Canceled after 0s
Test Suite / docker (push) Canceled after 0s
Test Suite / Detect changes (push) Canceled after 0s
Test Suite / Python (Windows, 3.14) (push) Canceled after 0s
Test Suite / Python (minimum, 3.11) (push) Canceled after 0s
Test Suite / Python (latest, 3.14 + coverage) (push) Canceled after 0s
Test Suite / webui (push) Canceled after 0s
Test Suite / Terminal UI (Windows) (push) Canceled after 0s
Test Suite / Terminal UI (push) Canceled after 0s
Test Suite / docker (push) Canceled after 0s
Agent tool-call echoes also hit this journal and can contain the literal string; require '| WARNING | - | Unknown channel:' to avoid false positives in the channel check.
This commit is contained in:
+5
-2
@@ -98,9 +98,12 @@ verify_deps() {
|
||||
channels_check() { # $1 = since timestamp; 0 if all expected channels are up
|
||||
local since="$1" journal enabled ch
|
||||
journal=$(journal_since "$since")
|
||||
if grep -q "Unknown channel" <<<"$journal"; then
|
||||
# Match the actual warning-pipeline format, not bare 'Unknown channel' —
|
||||
# the gateway also logs agent tool calls to this journal, and those echo
|
||||
# the literal string when the agent greps for it (false positives).
|
||||
if grep -qF '| WARNING | - | Unknown channel:' <<<"$journal"; then
|
||||
log "CHANNEL CHECK FAILED: 'Unknown channel' logged since restart:"
|
||||
grep "Unknown channel" <<<"$journal" | head -3 | sed 's/^/[deploy] /'
|
||||
grep -F '| WARNING | - | Unknown channel:' <<<"$journal" | head -3 | sed 's/^/[deploy] /'
|
||||
return 1
|
||||
fi
|
||||
enabled=$(grep -o "Channels enabled:.*" <<<"$journal" | tail -1 | sed 's/Channels enabled: *//' || true)
|
||||
|
||||
Reference in New Issue
Block a user