Skip to content

Commit 9cd6b76

Browse files
authored
chore: fix upload e2e engine report to oss (#566)
1 parent ce514c5 commit 9cd6b76

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/cloud-e2e-engine.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,10 @@ jobs:
780780
id: upload_test_result
781781
run: |
782782
engine_file_log="test_engine_api_result.txt"
783+
engine_file_log_tmp="test_engine_api_result_tmp.txt"
783784
engine_file_log_path="${{ github.workspace }}/${engine_file_log}"
784-
touch ${engine_file_log_path}
785+
engine_file_log_path_tmp="${{ github.workspace }}/${engine_file_log_tmp}"
786+
touch ${engine_file_log_path} ${engine_file_log_path_tmp}
785787
786788
CLOUD_BRANCH="${{ needs.get-test-engine.outputs.cloud-branch }}"
787789
CLOUD_ENV_NAME="${{ needs.get-test-engine.outputs.cloud-env-name }}"
@@ -831,15 +833,15 @@ jobs:
831833
;;
832834
esac
833835
done
834-
835-
cat ${engine_file_log_path}
836+
sed -E 's/(\[PASSED\]|\[FAILED\]|\[TIMEDOUT\])/\n\1/g;s/(\[END\])/\n\1\n/g;s/\] +/\]/g' ${engine_file_log_path} > ${engine_file_log_path_tmp}
837+
cat ${engine_file_log_path_tmp}
836838
cd test/report
837839
bash update_test_period.sh ./md
838840
mkdir -p reports/cn
839841
for i in $(seq 1 3); do
840842
python3 ./report.py \
841843
--type=engine \
842-
--raw=${engine_file_log_path} \
844+
--raw=${engine_file_log_path_tmp} \
843845
--main_report=${ENGINE_REPORT_FILE_NAME}
844846
gen_ret=$?
845847
if [[ $gen_ret -eq 0 ]]; then

0 commit comments

Comments
 (0)