Fix CI workflow YAML for Playwright failure summary step
CI / skip-ci-check (pull_request) Successful in 30s
CI / docker-ci (pull_request) Successful in 32s
CI / python-lint (pull_request) Successful in 32s
CI / secret-scan (pull_request) Successful in 37s
CI / viewer-unit (pull_request) Successful in 1m41s
CI / admin-unit (pull_request) Successful in 1m55s
CI / e2e (pull_request) Failing after 2m18s

This commit is contained in:
2026-08-04 22:56:08 -04:00
parent 6ab99e383c
commit 5beefbcbc8
+7 -8
View File
@@ -229,14 +229,13 @@ jobs:
run: |
if [ -f test-results/junit.xml ]; then
echo "=== Failed tests (from junit.xml) ==="
python3 - <<'PY'
import xml.etree.ElementTree as ET
tree = ET.parse("test-results/junit.xml")
for suite in tree.getroot().iter("testsuite"):
for case in suite.iter("testcase"):
if case.find("failure") is not None or case.find("error") is not None:
print(case.attrib.get("name", "?"))
PY
node -e "
const fs = require('fs');
const xml = fs.readFileSync('test-results/junit.xml', 'utf8');
for (const m of xml.matchAll(/<testcase[^>]*name=\"([^\"]+)\"[^>]*>[\\s\\S]*?<(?:failure|error)/g)) {
console.log(m[1]);
}
"
fi
- name: Upload report