We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nix-eval-jobs
hydra-eval-jobs
1 parent 8b1d8f4 commit 0b6d8a6Copy full SHA for 0b6d8a6
scripts/check-hydra.nix
@@ -24,8 +24,8 @@ writeScript "check-hydra.sh" ''
24
fi
25
EVAL_TIME=$(cat eval-time.txt)
26
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)
+ ERRORS=$(jq 'select(.error)|@text "\(.attrPath|join(".")): \(.error)"' < eval.json)
+ NUM_ERRORS=$([ -z "$ERRORS" ] && echo 0 || echo "$ERRORS" | wc -l)
29
rm eval.json eval-time.txt
30
31
if [ "$NUM_ERRORS" != 0 ]
0 commit comments