fix(cd): ignore diagnostic pressure probes
Some checks failed
CD Pipeline / tests (push) Waiting to run
Code Review / ai-code-review (push) Successful in 18s
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-28 11:12:51 +08:00
parent e97b252475
commit 022bf0b802

View File

@@ -41,7 +41,14 @@ PS_COMMAND="${HOST_WEB_BUILD_PRESSURE_PS_COMMAND:-$(default_ps_command)}"
list_foreign_web_builds() {
bash -c "$PS_COMMAND" | awk '
BEGIN { IGNORECASE = 1 }
function is_diagnostic_command(line) {
return line ~ /(^|[[:space:]])(grep|rg|awk|sed|perl|find|pgrep|pkill)([[:space:]]|$)/ \
|| line ~ /bash -c .*grep/ \
|| line ~ /bash -c .*rg/ \
|| line ~ /bash -c .*awk/
}
/[n]ext[\/[:alnum:]._-]*[[:space:]]+build|[t]urbo[[:space:]]+build|[v]ite[[:space:]]+build/ {
if (is_diagnostic_command($0)) next
if ($0 ~ /\/workspace\/wooo\/awoooi/) next
if ($0 ~ /\/Users\/ogt\/awoooi/) next
if ($0 ~ /\/private\/tmp\/awoooi/) next
@@ -118,7 +125,14 @@ greater_than() {
list_headless_smoke_pressure() {
bash -c "$PS_COMMAND" | awk '
BEGIN { IGNORECASE = 1 }
function is_diagnostic_command(line) {
return line ~ /(^|[[:space:]])(grep|rg|awk|sed|perl|find|pgrep|pkill)([[:space:]]|$)/ \
|| line ~ /bash -c .*grep/ \
|| line ~ /bash -c .*rg/ \
|| line ~ /bash -c .*awk/
}
/[c]hrome.*\/tmp\/stockplatform|[s]tockplatform-[[:alnum:]_-]*smoke|[h]eadless=new/ {
if (is_diagnostic_command($0)) next
if ($0 ~ /scripts\/ci\/wait-host-web-build-pressure\.sh/) next
print
}