Skip to content

Commit

Permalink
Fix test artifact upload path incorrectly
Browse files Browse the repository at this point in the history
In order to make it easier for users to quickly locate
error logs, we have copied the entire directory to a
fixed location and thoroughly tested it without
encountering any issues.
  • Loading branch information
sandiandian authored and Baowen648 committed Oct 17, 2023
1 parent 6fa1a9c commit 3e3afb6
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 108 deletions.
105 changes: 51 additions & 54 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,24 @@ jobs:
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
name: icw-test
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
/code/gpdb_src/src/test/regress/expected/
/code/gpdb_src/src/test/isolation2/regression.out
/code/gpdb_src/src/test/isolation2/regression.diffs
/code/gpdb_src/src/test/isolation2/results/
/code/gpdb_src/src/test/isolation2/expected/
/code/gpdb_src/gpAux/gpdemo/datadirs/standby/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
icw-orca-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -109,25 +108,24 @@ jobs:
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
name: icw-orca-test
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
/code/gpdb_src/src/test/regress/expected/
/code/gpdb_src/src/test/isolation2/regression.out
/code/gpdb_src/src/test/isolation2/regression.diffs
/code/gpdb_src/src/test/isolation2/results/
/code/gpdb_src/src/test/isolation2/expected/
/code/gpdb_src/gpAux/gpdemo/datadirs/standby/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
icw-parallel-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -157,25 +155,24 @@ jobs:
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
name: icw-parallel-test
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
/code/gpdb_src/src/test/regress/expected/
/code/gpdb_src/src/test/isolation2/regression.out
/code/gpdb_src/src/test/isolation2/regression.diffs
/code/gpdb_src/src/test/isolation2/results/
/code/gpdb_src/src/test/isolation2/expected/
/code/gpdb_src/gpAux/gpdemo/datadirs/standby/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
105 changes: 51 additions & 54 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,24 @@ jobs:
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
name: icw-test
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
/code/gpdb_src/src/test/regress/expected/
/code/gpdb_src/src/test/isolation2/regression.out
/code/gpdb_src/src/test/isolation2/regression.diffs
/code/gpdb_src/src/test/isolation2/results/
/code/gpdb_src/src/test/isolation2/expected/
/code/gpdb_src/gpAux/gpdemo/datadirs/standby/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
icw-orca-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -130,25 +129,24 @@ jobs:
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
name: icw-orca-test
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
/code/gpdb_src/src/test/regress/expected/
/code/gpdb_src/src/test/isolation2/regression.out
/code/gpdb_src/src/test/isolation2/regression.diffs
/code/gpdb_src/src/test/isolation2/results/
/code/gpdb_src/src/test/isolation2/expected/
/code/gpdb_src/gpAux/gpdemo/datadirs/standby/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
icw-parallel-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -178,25 +176,24 @@ jobs:
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
name: icw-parallel-test
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
/code/gpdb_src/src/test/regress/expected/
/code/gpdb_src/src/test/isolation2/regression.out
/code/gpdb_src/src/test/isolation2/regression.diffs
/code/gpdb_src/src/test/isolation2/results/
/code/gpdb_src/src/test/isolation2/expected/
/code/gpdb_src/gpAux/gpdemo/datadirs/standby/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
release:
name: Upload Release Asset
needs: ["icw-orca-test","icw-test","icw-parallel-test"]
Expand Down

0 comments on commit 3e3afb6

Please sign in to comment.