diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-10-16 13:49:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 13:49:59 +0300 |
commit | 0be743eaaabd4c43b7ebc508a4e00df9ac4bb1e9 (patch) | |
tree | ee706c07aa0746a6d0444660e42f528e58982284 | |
parent | 030f81861133ea64d781c4f811986919d703253e (diff) | |
download | ydb-0be743eaaabd4c43b7ebc508a4e00df9ac4bb1e9.tar.gz |
Fail summary in comment (#10474)
-rw-r--r-- | .github/actions/test_ya/action.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/actions/test_ya/action.yml b/.github/actions/test_ya/action.yml index e9e8a7f36f..ab3e142841 100644 --- a/.github/actions/test_ya/action.yml +++ b/.github/actions/test_ya/action.yml @@ -407,7 +407,13 @@ runs: echo "ya make returned $RC, build failed" echo "status=failed" >> $GITHUB_OUTPUT BUILD_FAILED=1 - echo "Build failed, see the [logs]($YA_MAKE_OUTPUT_URL)." | GITHUB_TOKEN="${{ github.token }}" .github/scripts/tests/comment-pr.py --color red + # sed is to remove richness (tags like '[[rst]]') + (( \ + cat $CURRENT_REPORT \ + | jq -r '.results[] | select((.status == "FAILED") and (.error_type == "REGULAR") and (.type = "build")) | "path: " + .path + "\n\n" + ."rich-snippet" + "\n\n\n"' \ + | sed 's/\[\[.*\]\]//' \ + ) || true) > $CURRENT_PUBLIC_DIR/fail_summary.txt + echo "Build failed, see the [logs]($YA_MAKE_OUTPUT_URL). Also see [fail summary]($CURRENT_PUBLIC_DIR_URL/fail_summary.txt)" | GITHUB_TOKEN="${{ github.token }}" .github/scripts/tests/comment-pr.py --color red break fi |