优化(wecom-public-health-alert-diagnostics-and-debounce): 增强公网健康告警诊断与防抖
这个提交包含在:
@@ -701,6 +701,16 @@ mv "$TEST_DIR/deadman-withheld-batch" "$DEADMAN_LAYOUT/archive/$SECOND_BATCH"
|
||||
--webhook-file "$TEST_DIR/wecom-webhook" --alert-helper "$ROOT_DIR/scripts/send-wecom-group-alert.py" >/dev/null
|
||||
[[ "$(wc -l <"$DEADMAN_CAPTURE")" == "2" ]]
|
||||
pass "ARM dead-man sends one recovery notification after finalized archives resume"
|
||||
python3 - "$DEADMAN_CAPTURE" <<'PYTHON'
|
||||
import json
|
||||
import sys
|
||||
|
||||
messages = [json.loads(line)["text"]["content"] for line in open(sys.argv[1], encoding="utf-8")]
|
||||
assert messages[0].startswith("内部 OA 运维告警\n"), messages
|
||||
assert messages[1].startswith("内部 OA 运维恢复通知\n"), messages
|
||||
assert all("OA 公网健康" not in message for message in messages), messages
|
||||
PYTHON
|
||||
pass "shared helper keeps dead-man alert and recovery titles unchanged"
|
||||
|
||||
DRIFT_BUILD_SHA="0123456789abcdef0123456789abcdef01234567"
|
||||
expect_failure "wrapper rejects an active runtime build that drifted from its installed contract" \
|
||||
|
||||
在新工单中引用
屏蔽一个用户