Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/test-failure-detection/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ runs:
echo '[]' > "$signatures_file"

# Define common test validation filter to avoid duplication
local test_failure_filter='select(.Action == "fail" and .Test != null and .Test != "" and .Test != "null" and (.Test | test("^Test[A-Za-z]")))'
local test_failure_filter='select(.Action == "fail" and .Test != null and .Test != "" and .Test != "null" and (.Test | test("^Test[A-Za-z].*")))'

# Fast single-pass JSON extraction for test failures (< 1s for 10K lines)
# Filter JSON lines and parse in one pass - eliminates 2-minute hang
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fortress-test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ jobs:
# Count ONLY failed test events, not package/suite failures which are expected
# Look for Action="fail" AND Package field AND Test field (indicating actual test failure)
JSON_FAILURES=$(grep '^{' test-output.log 2>/dev/null | \
jq -r 'select(.Action == "fail" and .Test != null and .Test != "" and (.Package // "") != "" and (.Test | test("^Test[A-Za-z]"))) | .Test' 2>/dev/null | wc -l | xargs || echo "0")
jq -r 'select(.Action == "fail" and .Test != null and .Test != "" and (.Package // "") != "" and (.Test | test("^Test[A-Za-z].*"))) | .Test' 2>/dev/null | wc -l | xargs || echo "0")

if [[ $JSON_FAILURES -gt 0 ]]; then
echo "⚠️ Found $JSON_FAILURES actual failing test functions in JSON output"
Expand Down