Skip to content

Commit

Permalink
Don't exclude failed steps, not matter how short their duration
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Sep 12, 2023
1 parent d9efe19 commit 9f1b366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ww.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jq -er --argjson minStepDuration "$MIN_STEP_DURATION" "$(cat <<-"-"
def safe(s): s|gsub("[:;#]";"");
.jobs[]|"\n section " + safe(.name) + "\n" + ([
.steps[]|select(.completed_at)|
(.+{duration:isodiff(.started_at;.completed_at)})|select(.duration>=$minStepDuration)|
(.+{duration:isodiff(.started_at;.completed_at)})|
select(.duration>=$minStepDuration or .conclusion!="success")|
" " + safe(.name) + " :" +
if .conclusion != "success" then "crit, " else "" end +
.started_at + ", " + (.duration|tostring) + "s"
Expand Down

0 comments on commit 9f1b366

Please sign in to comment.