Skip to content

Commit

Permalink
ci: Simplify QNS output (#2023)
Browse files Browse the repository at this point in the history
Now that we're sorting by role, no need to underline. Also fix issue
when there are no results.
  • Loading branch information
larseggert authored Jul 30, 2024
1 parent b22512c commit 4dc6ca4
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/qns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,9 @@ jobs:
ROLE=server
fi
RUN="results/${PREFIX} results"
{
[ "$CLIENT" == "$LATEST" ] || echo -n "<ins>"
echo -n "$CLIENT"
[ "$CLIENT" == "$LATEST" ] || echo -n "</ins>"
echo -n "$DELIM"
[ "$SERVER" == "$LATEST" ] || echo -n "<ins>"
echo -n "$SERVER"
[ "$SERVER" == "$LATEST" ] || echo -n "</ins>"
} > "pair.md"
PAIR="$CLIENT $DELIM $SERVER"
if [ ! -e "$RUN/result.json" ]; then
{
echo -n "* "
cat "pair.md"
echo -n ": "
echo "run cancelled after $TIMEOUT min"
} >> "$ROLE.failed.md"
echo "* $PAIR: run cancelled after $TIMEOUT min" >> "$ROLE.failed.md"
continue
fi
jq < "$RUN/result.json" '
Expand All @@ -210,12 +197,7 @@ jobs:
RESULT=$(jq < "$RUN/$ROLE.grouped.json" -r '.results.'"$GROUP"'[]' | fmt -w 1000)
LOG=$(jq -r < "$RUN/$ROLE.grouped.json" -r '.log_url')
[ -n "$RESULT" ] || continue
{
echo -n "* ["
cat "pair.md"
echo -n "]($LOG): "
echo "**$RESULT**"
} >> "$ROLE.$GROUP.md"
echo "* [$PAIR]($LOG): **$RESULT**" >> "$ROLE.$GROUP.md"
done
done
done
Expand All @@ -228,7 +210,12 @@ jobs:
echo "#### $LATEST as server"
cat server.failed.md
else
echo "None :tada:"
echo -n "None"
if [ -e "client.succeeded.md" ] || [ -e "server.succeeded.md" ] || [ -e "client.unsupported.md" ] || [ -e "server.unsupported.md" ]; then
echo ":tada:"
else
echo ":question:"
fi
fi
echo "<details><summary>All results</summary>"
echo
Expand Down

0 comments on commit 4dc6ca4

Please sign in to comment.