-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start k3d in ci-container and execute e2e test to k8s cluster #2553
Changes from 5 commits
fe08e65
fe544c3
8d999da
1d21fdb
10aa9bb
1e61f7e
4ada8ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -22,22 +22,27 @@ on: | |||||||||||||
- "*.*.*-*" | ||||||||||||||
- "v*.*.*-*" | ||||||||||||||
pull_request: | ||||||||||||||
types: | ||||||||||||||
- "labeled" | ||||||||||||||
# types: | ||||||||||||||
# - "labeled" | ||||||||||||||
env: | ||||||||||||||
DATASET: fashion-mnist-784-euclidean.hdf5 | ||||||||||||||
jobs: | ||||||||||||||
dump-contexts-to-log: | ||||||||||||||
if: startsWith( github.ref, 'refs/tags/') || github.event.action == 'labeled' && github.event.label.name == 'actions/e2e-deploy' | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- uses: ./.github/actions/dump-context | ||||||||||||||
detect-ci-container: | ||||||||||||||
# if: startsWith( github.ref, 'refs/tags/') || github.event.action == 'labeled' && github.event.label.name == 'actions/e2e-deploy' | ||||||||||||||
uses: ./.github/workflows/_detect-ci-container.yml | ||||||||||||||
Comment on lines
+35
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the The - # if: startsWith( github.ref, 'refs/tags/') || github.event.action == 'labeled' && github.event.label.name == 'actions/e2e-deploy'
+ if: startsWith( github.ref, 'refs/tags/') || github.event.action == 'labeled' && github.event.label.name == 'actions/e2e-deploy' Committable suggestion
Suggested change
|
||||||||||||||
e2e-stream-crud: | ||||||||||||||
name: "E2E test (Stream CRUD)" | ||||||||||||||
needs: [dump-contexts-to-log] | ||||||||||||||
needs: [detect-ci-container] | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
timeout-minutes: 60 | ||||||||||||||
container: | ||||||||||||||
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }} | ||||||||||||||
options: "--privileged --add-host host.docker.internal:host-gateway" | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- name: Set Git config | ||||||||||||||
|
@@ -73,9 +78,12 @@ jobs: | |||||||||||||
POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }} | ||||||||||||||
e2e-stream-crud-for-operator: | ||||||||||||||
name: "E2E test (Stream CRUD) for operator" | ||||||||||||||
needs: [dump-contexts-to-log] | ||||||||||||||
needs: [detect-ci-container] | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
timeout-minutes: 60 | ||||||||||||||
container: | ||||||||||||||
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }} | ||||||||||||||
options: "--privileged --add-host host.docker.internal:host-gateway" | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- name: Set Git config | ||||||||||||||
|
@@ -133,9 +141,12 @@ jobs: | |||||||||||||
POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }} | ||||||||||||||
e2e-stream-crud-under-index-management-jobs: | ||||||||||||||
name: "E2E test (Stream CRUD) under index management jobs" | ||||||||||||||
needs: [dump-contexts-to-log] | ||||||||||||||
needs: [detect-ci-container] | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
timeout-minutes: 60 | ||||||||||||||
container: | ||||||||||||||
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }} | ||||||||||||||
options: "--privileged --add-host host.docker.internal:host-gateway" | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- name: Set Git config | ||||||||||||||
|
@@ -175,9 +186,12 @@ jobs: | |||||||||||||
POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }} | ||||||||||||||
e2e-stream-crud-skip-exist-check: | ||||||||||||||
name: "E2E test (Stream CRUD: skip strict exist check)" | ||||||||||||||
needs: [dump-contexts-to-log] | ||||||||||||||
needs: [detect-ci-container] | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
timeout-minutes: 60 | ||||||||||||||
container: | ||||||||||||||
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }} | ||||||||||||||
options: "--privileged --add-host host.docker.internal:host-gateway" | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- name: Set Git config | ||||||||||||||
|
@@ -213,9 +227,12 @@ jobs: | |||||||||||||
POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }} | ||||||||||||||
e2e-multiapis-crud: | ||||||||||||||
name: "E2E test (Multi-APIs CRUD)" | ||||||||||||||
needs: [dump-contexts-to-log] | ||||||||||||||
needs: [detect-ci-container] | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
timeout-minutes: 60 | ||||||||||||||
container: | ||||||||||||||
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }} | ||||||||||||||
options: "--privileged --add-host host.docker.internal:host-gateway" | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- name: Set Git config | ||||||||||||||
|
@@ -247,9 +264,12 @@ jobs: | |||||||||||||
POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }} | ||||||||||||||
e2e-jobs: | ||||||||||||||
name: "E2E test (Jobs)" | ||||||||||||||
needs: [dump-contexts-to-log] | ||||||||||||||
needs: [detect-ci-container] | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
timeout-minutes: 60 | ||||||||||||||
container: | ||||||||||||||
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }} | ||||||||||||||
options: "--privileged --add-host host.docker.internal:host-gateway" | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- name: Set Git config | ||||||||||||||
|
@@ -278,9 +298,12 @@ jobs: | |||||||||||||
POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }} | ||||||||||||||
e2e-stream-crud-with-readreplica: | ||||||||||||||
name: "E2E test (Stream CRUD) with read replica" | ||||||||||||||
needs: [dump-contexts-to-log] | ||||||||||||||
needs: [detect-ci-container] | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
timeout-minutes: 60 | ||||||||||||||
container: | ||||||||||||||
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }} | ||||||||||||||
options: "--privileged --add-host host.docker.internal:host-gateway" | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- name: Set Git config | ||||||||||||||
|
@@ -326,9 +349,12 @@ jobs: | |||||||||||||
POD_NAME: ${{ steps.deploy_vald_readreplica.outputs.POD_NAME }} | ||||||||||||||
e2e-stream-crud-with-mirror: | ||||||||||||||
name: "E2E test (Stream CRUD) with mirror" | ||||||||||||||
needs: [dump-contexts-to-log] | ||||||||||||||
needs: [detect-ci-container] | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
timeout-minutes: 60 | ||||||||||||||
container: | ||||||||||||||
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }} | ||||||||||||||
options: "--privileged --add-host host.docker.internal:host-gateway" | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||
- name: Set Git config | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the
if
condition for better control.The
if
condition is commented out. It should be uncommented to ensure the job runs only under the specified conditions.Committable suggestion