Skip to content

Commit 0b6d8a6

Browse files
committed
Check with nix-eval-jobs instead of hydra-eval-jobs
1 parent 8b1d8f4 commit 0b6d8a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/check-hydra.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ writeScript "check-hydra.sh" ''
2424
fi
2525
EVAL_TIME=$(cat eval-time.txt)
2626
jq . < eval.json
27-
ERRORS=$(jq -r 'map_values(.error)|to_entries[]|select(.value)|@text "\(.key): \(.value)"' < eval.json)
28-
NUM_ERRORS=$(jq -r '[ map_values(.error)|to_entries[]|select(.value) ] |length' < eval.json)
27+
ERRORS=$(jq 'select(.error)|@text "\(.attrPath|join(".")): \(.error)"' < eval.json)
28+
NUM_ERRORS=$([ -z "$ERRORS" ] && echo 0 || echo "$ERRORS" | wc -l)
2929
rm eval.json eval-time.txt
3030
3131
if [ "$NUM_ERRORS" != 0 ]

0 commit comments

Comments
 (0)