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
17 changes: 16 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,22 @@ jobs:
# spurious "NEW FAILURES: - " line and fail this gate.
jq -r '(.failures.parity // []) + (.failures.compile // []) | .[] | select(. != "")' "$REPORT" | sort -u > /tmp/all_fails.txt
if [[ -f "$KNOWN" ]]; then
jq -r 'keys[]' "$KNOWN" | sort -u > /tmp/known.txt
# Issue #797 — known_failures.json moved from flat strings to
# structured records. Keep the audit metadata (the `_schema`
# key at the top of the file) out of the test-name set so
# CI doesn't try to match a real test against it.
jq -r 'keys[] | select(. != "_schema")' "$KNOWN" | sort -u > /tmp/known.txt

# Schema sanity check — every non-_schema entry must be an
# object with non-empty `category` and `reason`. Fails the
# build on malformed entries so the format doesn't silently
# drift back to the legacy flat-string shape.
bad="$(jq -r 'to_entries | map(select(.key != "_schema")) | .[] | select((.value | type) != "object" or (.value.category // "") == "" or (.value.reason // "") == "") | .key' "$KNOWN")"
if [[ -n "$bad" ]]; then
echo "Malformed known_failures.json entries (missing category/reason or not an object):"
echo "$bad" | sed 's/^/ - /'
exit 1
fi
else
: > /tmp/known.txt
fi
Expand Down
Loading
Loading