[Tool] Upload BE UT log (#31397)

Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
This commit is contained in:
andyziye 2023-09-20 09:37:14 +08:00 committed by GitHub
parent c047fdb69b
commit 2f51037d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -203,12 +203,12 @@ jobs:
echo ${{ steps.run_ut.outputs.ECI_ID }}
eci rm ${{ steps.run_ut.outputs.ECI_ID }}
- name: Upload log
- name: Upload Log
uses: actions/upload-artifact@v3
if: always()
if: always() && steps.run_ut.outcome == 'failure'
with:
name: BE UT LOG
path: ${{ steps.run_ut.outputs.RES_LOG }}
path: ${{ steps.run_ut.outputs.BE_LOG }}
retention-days: 1
- name: Clean ENV
@ -216,6 +216,7 @@ jobs:
run: |
rm -f ${{ steps.run_ut.outputs.RES_FILE }}
rm -f ${{ steps.run_ut.outputs.RES_LOG }}
rm -rf ${{ steps.run_ut.outputs.BE_LOG }}
rm -rf ${{ github.workspace }}/*
clang-tidy:

View File

@ -116,10 +116,13 @@ fi
mkdir ut_ports
if [[ $FILTER_TEST != "" ]];then
if [[ ${DUMPCASE} -ne 1 ]]; then
DUMP_FILTER_TEST="com.starrocks.sql.dump.QueryDumpRegressionTest,com.starrocks.sql.dump.QueryDumpCaseRewriter"
if [[ ${DUMPCASE} -ne 1 ]]; then
FILTER_TEST="${FILTER_TEST},com.starrocks.sql.dump.QueryDumpRegressionTest,com.starrocks.sql.dump.QueryDumpCaseRewriter"
if [[ $FILTER_TEST != "" ]];then
FILTER_TEST="${FILTER_TEST},${DUMP_FILTER_TEST}"
else
FILTER_TEST="${DUMP_FILTER_TEST}"
fi
FILTER_TEST=`echo $FILTER_TEST | sed -E 's/([^,]+)/!\1/g'`