Skip to content

Commit

Permalink
ci: Better formatting for QNS diff (#2255)
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Nov 26, 2024
1 parent 5fe0c89 commit 998571d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/qns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,20 @@ jobs:
fi
[ -n "$RESULT" ] || continue
DIFF=$(wdiff -n "$BASELINE" - <<< "$RESULT" || true)
RESULT=$(echo "$DIFF" | sed -E "s/\[-|-\]/~~/g; s/\{\+|\+\}/\*\*/g")
RESULT=$(echo "$DIFF" | sed -E "s/\[-/ _~~/g; s/-\]/~~_ /g; s/\{\+/ <ins>\*\*/g; s/\+\}/\*\*<\/ins> /g")
echo "* [$PAIR]($LOG): $RESULT" >> "$ROLE.$GROUP.md"
done
done
done
{
echo "### Failed Interop Tests"
if [ -e client.failed.md ] || [ -e server.failed.md ]; then
echo "[QUIC Interop Runner](https://github.com/quic-interop/quic-interop-runner), *client* vs. *server*"
echo -n "[QUIC Interop Runner](https://github.com/quic-interop/quic-interop-runner), *client* vs. *server*"
SHA=$(cat results-main/baseline-sha.txt || true)
if [ -n "$SHA" ]; then
echo ", differences relative to $SHA."
fi
echo
echo "#### $LATEST as client"
cat client.failed.md
echo "#### $LATEST as server"
Expand Down Expand Up @@ -253,7 +258,9 @@ jobs:
} >> comment.md
- if: github.ref == 'refs/heads/main'
run: mv results results-main
run: |
mv results results-main
echo "${{ github.sha }}" > results-main/baseline-sha.txt
- if: github.ref == 'refs/heads/main'
uses: actions/cache/save@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
Expand Down

0 comments on commit 998571d

Please sign in to comment.