Skip to content

Commit

Permalink
ci(workflow): add console integration test workflow (#434)
Browse files Browse the repository at this point in the history
Because

- The Console test is missing when we unify the Instill projects.

This commit

- Adds the missing console test workflow.
- Fixes GA bugs.

---------

Co-authored-by: EiffelFly <57251712+EiffelFly@users.noreply.github.com>
  • Loading branch information
donch1989 and EiffelFly authored Mar 5, 2024
1 parent fa3cb7a commit b7911ff
Show file tree
Hide file tree
Showing 9 changed files with 719 additions and 14 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/helm-integration-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:

- name: Checkout repo
uses: actions/checkout@v3
with:
repository: instill-ai/core

- name: Load .env file
uses: cardinalby/export-env-action@v2
Expand All @@ -50,14 +52,6 @@ jobs:
run: |
curl https://github.com/grafana/k6/releases/download/v${{ env.K6_VERSION }}/k6-v${{ env.K6_VERSION }}-linux-amd64.tar.gz -L | tar xvz --strip-components 1 && sudo cp k6 /usr/bin
- name: Checkout repo
uses: actions/checkout@v3

- name: Load .env file
uses: cardinalby/export-env-action@v2
with:
envFile: .env

- name: Launch Helm Instill Core (latest)
run: |
helm install core charts/core --namespace instill-ai --create-namespace \
Expand Down Expand Up @@ -155,6 +149,8 @@ jobs:

- name: Checkout repo
uses: actions/checkout@v3
with:
repository: instill-ai/core

- name: Load .env file
uses: cardinalby/export-env-action@v2
Expand Down
383 changes: 383 additions & 0 deletions .github/workflows/helm-integration-test-console.yml

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .github/workflows/helm-integration-test-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
matrix:
component:
[mgmt-backend, pipeline-backend, model-backend, controller-model]
uses: instill-ai/vdp/.github/workflows/helm-integration-test-backend.yml@main
uses: instill-ai/instill-core/.github/workflows/helm-integration-test-backend.yml@main
with:
component: ${{ matrix.component }}
target: latest
console:
uses: instill-ai/instill-core/.github/workflows/helm-integration-test-console.yml@main
with:
target: latest
6 changes: 5 additions & 1 deletion .github/workflows/helm-integration-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ jobs:
matrix:
component:
[mgmt-backend, pipeline-backend, model-backend, controller-model]
uses: instill-ai/vdp/.github/workflows/helm-integration-test-backend.yml@main
uses: instill-ai/instill-core/.github/workflows/helm-integration-test-backend.yml@main
with:
component: ${{ matrix.component }}
target: release
console:
uses: instill-ai/instill-core/.github/workflows/helm-integration-test-console.yml@main
with:
target: release
14 changes: 11 additions & 3 deletions .github/workflows/integration-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:

- name: Checkout repo
uses: actions/checkout@v3
with:
repository: instill-ai/core

- name: Load .env file
uses: cardinalby/export-env-action@v2
Expand All @@ -47,7 +49,7 @@ jobs:
run: |
curl https://github.com/grafana/k6/releases/download/v${{ env.K6_VERSION }}/k6-v${{ env.K6_VERSION }}-linux-amd64.tar.gz -L | tar xvz --strip-components 1 && sudo cp k6 /usr/bin
- name: Launch Instill Core (release)
- name: Launch Instill Core (latest)
run: |
make latest EDITION=local-ce:test ITMODE_ENABLED=true
Expand All @@ -56,7 +58,7 @@ jobs:
run: |
echo "COMPONENT_NAME=$(echo ${{ inputs.component }} | tr 'a-z-' 'A-Z_')" >> $GITHUB_OUTPUT
- name: Run ${{ inputs.component }} integration test (release)
- name: Run ${{ inputs.component }} integration test (latest)
run: |
git clone https://github.com/instill-ai/${{ inputs.component }}.git
cd ${{ inputs.component }}
Expand Down Expand Up @@ -93,6 +95,8 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: instill-ai/core

- name: Load .env file
uses: cardinalby/export-env-action@v2
Expand All @@ -108,7 +112,7 @@ jobs:
run: |
echo "COMPONENT_NAME=$(echo ${{ inputs.component }} | tr 'a-z-' 'A-Z_')" >> $GITHUB_OUTPUT
- name: Run ${{ inputs.component }} integration test (release)
- name: Run ${{ inputs.component }} integration test (latest)
run: |
git clone https://github.com/instill-ai/${{ inputs.component }}.git
cd ${{ inputs.component }}
Expand Down Expand Up @@ -144,6 +148,8 @@ jobs:

- name: Checkout repo
uses: actions/checkout@v3
with:
repository: instill-ai/core

- name: Load .env file
uses: cardinalby/export-env-action@v2
Expand Down Expand Up @@ -210,6 +216,8 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: instill-ai/core

- name: Load .env file
uses: cardinalby/export-env-action@v2
Expand Down
Loading

0 comments on commit b7911ff

Please sign in to comment.