Skip to content

Commit

Permalink
Export the e2e test log when releasing and keep the vineyardd image c…
Browse files Browse the repository at this point in the history
…onsistent with the built one (v6d-io#1534)

- Fix the e2e test log that can't be exported when releasing.
- Keep the vineyardd image consistent with the previously built one.

Signed-off-by: Ye Cao <[email protected]>
  • Loading branch information
dashanji authored Aug 22, 2023
1 parent 1a674d6 commit 23362c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/vineyard-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ jobs:
make -C k8s docker-build-push-multi-arch REGISTRY=${{ env.REGISTRY }} VERSION=latest
- name: Generate the python and vineyardd image for tests
if: ${{ matrix.job != 'release' }}
run: |
make -C k8s/test/e2e build-base-images
- name: Prepare directories for logs
if: ${{ matrix.job != 'release' }}
run: |
# create log directories for all tasks to prevent the "Path to upload does not exist" warnings
for job in e2e-tests-airflow-integration \
Expand All @@ -186,7 +184,6 @@ jobs:
- name: Start to export kubernetes logs
uses: dashanji/kubernetes-log-export-action@v5
if: ${{ matrix.job != 'release'}}
env:
SHOW_TIMESTAMPS: 'true'
OUTPUT_DIR: ${{ github.workspace }}/${{ matrix.job }}-logs
Expand Down Expand Up @@ -276,20 +273,23 @@ jobs:
- name: Stop to export kubernetes logs
uses: dashanji/kubernetes-log-export-action@v5
if: ${{ matrix.job != 'release' && failure() }}
if: ${{ failure() }}
env:
MODE: stop
OUTPUT_DIR: ${{ github.workspace }}/${{ matrix.job }}-logs
WITH_STOAT: true

- uses: stoat-dev/stoat-action@v0
if: ${{ matrix.job != 'release' && failure() }}
if: ${{ failure() }}

- name: Leave a message for logs URL
if: ${{ matrix.job != 'release' && failure() }}
if: ${{ failure() }}
run: |
short_sha=$(git rev-parse --short ${{ github.event.pull_request.head.sha }})
if [[ -n ${{ github.event.pull_request.head.sha }} ]]; then
short_sha=$(git rev-parse --short ${{ github.event.pull_request.head.sha }})
else
short_sha=$(git rev-parse --short ${{ github.event.push.head.sha }})
fi
case ${{ matrix.job }} in
e2e-tests-spill)
signed_url_key=0707
Expand Down
2 changes: 2 additions & 0 deletions k8s/test/e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ e2e-tests-mars-examples: prepare-e2e-test build-local-cluster load-vineyardd-ima
############# vineyardctl testing ################################################

e2e-tests-vineyardctl: prepare-e2e-test build-local-cluster load-vineyardd-image
@make -C ${K8S_DIR} install-cert-manager
@make -C ${E2E_DIR} install-vineyard-operator
@echo "Running vineyardctl e2e test..."
@cd ${ROOT_DIR} && ${GOBIN}/e2e run --config=${E2E_DIR}/vineyardctl/e2e.yaml
@echo "vineyardctl e2e test passed."
Expand Down
4 changes: 2 additions & 2 deletions k8s/test/e2e/vineyardctl/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ setup:
- name: download all workflow images into kind cluster
command: |
make -C k8s/test/e2e publish-workflow-images REGISTRY=localhost:5001
- name: install vineyard cluster(with operator)
- name: install vineyardd
command: |
go run k8s/cmd/main.go deploy vineyard-cluster
go run k8s/cmd/main.go deploy vineyardd --vineyardd.image="localhost:5001/vineyardd:alpine-latest"
- name: install job1
command: |
kubectl create namespace vineyard-job
Expand Down

0 comments on commit 23362c1

Please sign in to comment.