From c691eef1998ae1c4b734c6d33f260ec86a025f91 Mon Sep 17 00:00:00 2001 From: gaorongze Date: Fri, 4 Aug 2023 11:16:55 +0800 Subject: [PATCH] Fix test artifact upload path incorrectly In order to make it easier for users to quickly error logs, we have copied the entire directory to a fixed location and thoroughly tested it without encountering any issues. --- .github/workflows/build.yml | 105 +++++++++++++++++----------------- .github/workflows/release.yml | 105 +++++++++++++++++----------------- 2 files changed, 102 insertions(+), 108 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d4d0d04de7..fc7e78213c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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] @@ -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] @@ -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/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c4b48a3651..2e2a056bd27 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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] @@ -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] @@ -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"]