fix(cd): ignore diagnostic pressure probes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user