Skip to content

Commit

Permalink
chore: change test pdf name
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Oct 25, 2024
1 parent 891e735 commit 215eb77
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/kbcli-test-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ jobs:
KUBEBLOCKS_VERSION="${{ inputs.KB_VERSION }}"
OSS_DIR="oss://${{ env.OSS_BUCKET }}/reports/kubeblocks/${KUBEBLOCKS_VERSION}/${TEST_DATE}"
upload_file_name="result.log.txt"
upload_file_name="TEST_RESULT_LOGS.txt"
for i in $(seq 1 3); do
ossutil cp -rf "${OSS_DIR}/${upload_file_name}" ./
Expand Down Expand Up @@ -1508,7 +1508,7 @@ jobs:
TEST_DATE=${{ needs.send-message.outputs.test-date }}
KUBEBLOCKS_VERSION="${{ inputs.KB_VERSION }}"
OSS_DIR="oss://${{ env.OSS_BUCKET }}/reports/kubeblocks/${KUBEBLOCKS_VERSION}/${TEST_DATE}"
upload_file_name="result.log.txt"
upload_file_name="TEST_RESULT_LOGS.txt"
for i in $(seq 1 3); do
ossutil cp -rf "${OSS_DIR}/${upload_file_name}" ./test/report/
Expand Down Expand Up @@ -1559,18 +1559,18 @@ jobs:
sed -i 's/^appscript==.*/#appscript==/' requirements.txt
pip3 install -r requirements.txt
- name: run report
- name: generate report
run: |
cd test/report
for i in $(seq 1 3); do
python3 ./report.py \
--raw=./result.log.txt \
--raw=./TEST_RESULT_LOGS.txt \
--ha_doc=./ha.md \
--main_doc=./main.md \
--upgrade_doc=./upgrade.md \
--main_report=./test_all.pdf \
--ha_report=./test_ha.pdf \
--upgrade_report=./test_upgrade.pdf
--main_report=./TEST_REPORT_ALL.pdf \
--ha_report=./TEST_REPORT_HA.pdf \
--upgrade_report=./TEST_REPORT_UPGRADE.pdf
gen_ret=$?
if [[ $gen_ret -eq 0 ]]; then
break
Expand All @@ -1580,7 +1580,7 @@ jobs:
echo "mv test reports to reports dir"
mkdir -p reports
mv ./test_all.pdf ./test_ha.pdf ./test_upgrade.pdf reports
mv ./TEST_REPORT_ALL.pdf ./TEST_REPORT_HA.pdf ./TEST_REPORT_UPGRADE.pdf reports
- name: Upload test reports to oss
run: |
Expand Down Expand Up @@ -1619,7 +1619,7 @@ jobs:
TEST_DATE=${{ needs.send-message.outputs.test-date }}
KUBEBLOCKS_VERSION="${{ inputs.KB_VERSION }}"
OSS_URL="https://${{ env.OSS_BUCKET }}.${{ env.OSS_ENDPOINT }}/reports/kubeblocks/${KUBEBLOCKS_VERSION}/${TEST_DATE}"
test_result_file_name="result.log.txt"
test_result_file_name="TEST_RESULT_LOGS.txt"
TEST_RESULT="${test_result_file_name}|${OSS_URL}/${test_result_file_name}"
report_file_path="./test/report/reports"
Expand Down

0 comments on commit 215eb77

Please sign in to comment.