|
@@ -273,12 +273,12 @@ runs:
|
|
echo "10 [Test history](${TESTMO_HISTORY_URL})" >> $SUMMARY_LINKS
|
|
echo "10 [Test history](${TESTMO_HISTORY_URL})" >> $SUMMARY_LINKS
|
|
fi
|
|
fi
|
|
|
|
|
|
- CURRENT_MESSAGE="**{platform_name}-${BUILD_PRESET}** is running..."
|
|
|
|
|
|
+ CURRENT_MESSAGE="ya make is running..."
|
|
if [ $IS_RETRY = 0 ]; then
|
|
if [ $IS_RETRY = 0 ]; then
|
|
- CURRENT_MESSAGE="Check $CURRENT_MESSAGE"
|
|
|
|
|
|
+ CURRENT_MESSAGE="$CURRENT_MESSAGE"
|
|
RERUN_FAILED_OPT=""
|
|
RERUN_FAILED_OPT=""
|
|
else
|
|
else
|
|
- CURRENT_MESSAGE="Failed tests rerun (try $RETRY) $CURRENT_MESSAGE"
|
|
|
|
|
|
+ CURRENT_MESSAGE="$CURRENT_MESSAGE (failed tests rerun, try $RETRY)"
|
|
RERUN_FAILED_OPT="-X"
|
|
RERUN_FAILED_OPT="-X"
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -337,7 +337,7 @@ runs:
|
|
if [ $FAILED_TESTS_COUNT -gt 500 ]; then
|
|
if [ $FAILED_TESTS_COUNT -gt 500 ]; then
|
|
IS_LAST_RETRY=1
|
|
IS_LAST_RETRY=1
|
|
TOO_MANY_FAILED="Too many tests failed, NOT going to retry"
|
|
TOO_MANY_FAILED="Too many tests failed, NOT going to retry"
|
|
- echo $TOO_MANY_FAILED | GITHUB_TOKEN="${{ github.token }}" .github/scripts/tests/comment-pr.py --fail
|
|
|
|
|
|
+ echo $TOO_MANY_FAILED | GITHUB_TOKEN="${{ github.token }}" .github/scripts/tests/comment-pr.py --color red
|
|
fi
|
|
fi
|
|
|
|
|
|
if [ "${{ inputs.run_tests }}" = "true" ]; then
|
|
if [ "${{ inputs.run_tests }}" = "true" ]; then
|
|
@@ -421,12 +421,12 @@ runs:
|
|
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
|
|
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
|
|
https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
|
|
https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
|
|
-d '{"state":"failure","description":"The check has been failed","context":"build_${{inputs.build_preset}}"}'
|
|
-d '{"state":"failure","description":"The check has been failed","context":"build_${{inputs.build_preset}}"}'
|
|
- echo "Build failed. see the [logs]($YA_MAKE_OUTPUT_URL)." | .github/scripts/tests/comment-pr.py --fail
|
|
|
|
|
|
+ echo "Build failed. see the [logs]($YA_MAKE_OUTPUT_URL)." | .github/scripts/tests/comment-pr.py --color red
|
|
else
|
|
else
|
|
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
|
|
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
|
|
https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
|
|
https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
|
|
-d '{"state":"success","description":"The check has been completed successfully","context":"build_${{inputs.build_preset}}"}'
|
|
-d '{"state":"success","description":"The check has been completed successfully","context":"build_${{inputs.build_preset}}"}'
|
|
- echo "Build successful." | .github/scripts/tests/comment-pr.py --ok
|
|
|
|
|
|
+ echo "Build successful." | .github/scripts/tests/comment-pr.py --color green
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|