Skip to content

Commit

Permalink
tests: upload ci logs (#741)
Browse files Browse the repository at this point in the history
Signed-off-by: dongmen <[email protected]>
  • Loading branch information
asddongmen authored Dec 30, 2024
1 parent e78f686 commit 882481a
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/integration_test_mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,25 @@ jobs:
run: |
export TICDC_NEWARCH=true && make integration_test CASE=changefeed_reconstruct
# only upload logs of the last case
# - name: Copy logs to hack permission
# if: ${{ always() }}
# run: |
# DIR=$(sudo find /tmp/tidb_cdc_test/ -type d -name 'sync_diff' -exec dirname {} \;)
# CASE=$(basename $DIR)
# mkdir -p ./logs/$CASE
# cat $DIR/stdout.log
# tail -n 10 $DIR/cdc.log
# sudo cp -r -L $DIR/{cdc.log,stdout.log,sync_diff} ./logs/$CASE/
# sudo chown -R runner ./logs
# sudo tar -czvf ./logs.tar.gz ./logs

- name: Copy logs to hack permission
if: ${{ always() }}
run: |
DIR=$(sudo find /tmp/tidb_cdc_test/ -type d -name 'cdc_data' -exec dirname {} \;)
CASE=$(basename $DIR)
mkdir -p ./logs/$CASE
cat $DIR/stdout.log
tail -n 10 $DIR/cdc.log
sudo cp -r -L $DIR/{*.log,sync_diff} ./logs/$CASE/
sudo chown -R runner ./logs
sudo tar -czvf ./logs.tar.gz ./logs
# Update logs as artifact seems not stable, so we set `continue-on-error: true` here.
# - name: Upload logs
# uses: actions/upload-artifact@v4
# if: ${{ always() }}
# with:
# name: upstream-switch-logs
# path: |
# ./logs.tar.gz
- name: Upload logs
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: upstream-switch-logs
path: |
./logs.tar.gz
failover_e2e_test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 882481a

Please sign in to comment.