Skip to content

Commit

Permalink
Fixes duplicated run and upload actions for k8s-ci (#2751)
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow authored May 26, 2023
1 parent 3cf0798 commit 46d7ed8
Showing 1 changed file with 12 additions and 66 deletions.
78 changes: 12 additions & 66 deletions .github/workflows/k8s-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ jobs:
uses: dashanji/kubernetes-log-export-action@v4
env:
SHOW_TIMESTAMPS: 'true'
OUTPUT_DIR: ${{ github.workspace }}/helm-installation-logs
OUTPUT_DIR: ${{ github.workspace }}/k8s-ci-helm-installation-logs
NAMESPACES: "gs*,default"
MODE: start

Expand All @@ -465,13 +465,6 @@ jobs:
./graphscope
helm test graphscope --timeout 5m0s
- name: upload the k8s logs to artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: helm-installation-logs
path: ${{ github.workspace }}/helm-installation-logs

- name: Stop to export kubernetes logs
uses: dashanji/kubernetes-log-export-action@v4
env:
Expand All @@ -481,40 +474,7 @@ jobs:
uses: dashanji/kubernetes-log-export-action@v4
env:
SHOW_TIMESTAMPS: 'true'
OUTPUT_DIR: ${{ github.workspace }}/store-service-of-helm-installation-logs
NAMESPACES: "gs*,default"
MODE: start

- name: Test store service of helm installation
env:
GS_TEST_DIR: ${{ github.workspace }}/gstest
run: |
export GS_REGISTRY=""
export GS_TAG=${SHORT_SHA}
cd ${GITHUB_WORKSPACE}/python
python3 -m pytest --ignore=./graphscope/tests/kubernetes/test_store_service.py \
--cov=graphscope --cov-config=.coveragerc --cov-report=xml \
--cov-report=term --exitfirst -s -vvv --log-cli-level=INFO \
./graphscope/tests/kubernetes
- name: upload the k8s logs to artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: store-service-of-helm-installation-logs
path: ${{ github.workspace }}/store-service-of-helm-installation-logs

- name: Stop to export kubernetes logs
uses: dashanji/kubernetes-log-export-action@v4
env:
MODE: stop

- name: Start to export kubernetes logs
uses: dashanji/kubernetes-log-export-action@v4
env:
SHOW_TIMESTAMPS: 'true'
OUTPUT_DIR: ${{ github.workspace }}/demo-script-of-helm-installation-logs
OUTPUT_DIR: ${{ github.workspace }}/k8s-ci-demo-script-of-helm-installation-logs
NAMESPACES: "gs*,default"
MODE: start

Expand All @@ -528,13 +488,6 @@ jobs:
python3 -m pytest -s -vvv ./graphscope/tests/kubernetes/test_demo_script.py -k test_helm_installation
- name: upload the k8s logs to artifact
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: demo-script-of-helm-installation-logs
path: ${{ github.workspace }}/demo-script-of-helm-installation-logs

- name: Stop to export kubernetes logs
uses: dashanji/kubernetes-log-export-action@v4
env:
Expand All @@ -548,7 +501,7 @@ jobs:
uses: dashanji/kubernetes-log-export-action@v4
env:
SHOW_TIMESTAMPS: 'true'
OUTPUT_DIR: ${{ github.workspace }}/store-service-of-kubernetes-test-logs
OUTPUT_DIR: ${{ github.workspace }}/k8s-ci-store-service-of-kubernetes-test-logs
NAMESPACES: "gs*,default"
MODE: start

Expand All @@ -566,13 +519,6 @@ jobs:
--cov-report=term --exitfirst -s -vvv --log-cli-level=INFO \
./graphscope/tests/kubernetes
- name: upload the k8s logs to artifact
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: store-service-of-kubernetes-test-logs
path: ${{ github.workspace }}/store-service-of-kubernetes-test-logs

- name: Stop to export kubernetes logs
uses: dashanji/kubernetes-log-export-action@v4
env:
Expand All @@ -588,7 +534,7 @@ jobs:
uses: dashanji/kubernetes-log-export-action@v4
env:
SHOW_TIMESTAMPS: 'true'
OUTPUT_DIR: ${{ github.workspace }}/demo-script-of-hdfs-test-logs
OUTPUT_DIR: ${{ github.workspace }}/k8s-ci-demo-script-of-hdfs-test-logs
NAMESPACES: "gs*,default"
MODE: start

Expand Down Expand Up @@ -626,18 +572,18 @@ jobs:
# Check the result file have successfully written to the given location
# hdfs dfs -test -e /ldbc_sample/res.csv_0 && hdfs dfs -test -e /ldbc_sample/res.csv_1
- name: upload the k8s logs to artifact
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: demo-script-of-hdfs-test-logs
path: ${{ github.workspace }}/demo-script-of-hdfs-test-logs

- name: Stop to export kubernetes logs
uses: dashanji/kubernetes-log-export-action@v4
env:
MODE: stop

- name: Upload the k8s logs to artifact
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: k8s-test-logs
path: ${{ github.workspace }}/k8s-ci-*-logs

gie-test:
runs-on: [self-hosted, ubuntu2004]
needs: [build-analytical, build-interactive, build-learning]
Expand Down Expand Up @@ -821,7 +767,7 @@ jobs:
cd ${GITHUB_WORKSPACE}/interactive_engine/compiler && ./ir_k8s_failover_ci.sh default test-gie-standalone 2 1
- name: upload the k8s logs to artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: k8s-failover-logs
Expand Down

0 comments on commit 46d7ed8

Please sign in to comment.