Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create an istio registry per primary (#6891)
- Loading branch information
Showing
60 changed files
with
2,014 additions
and
1,576 deletions.
There are no files selected for viewing
83 changes: 83 additions & 0 deletions
83
.github/workflows/integration-tests-frontend-multicluster-multi-primary.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Integration Tests Frontend | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
target_branch: | ||
required: true | ||
type: string | ||
build_branch: | ||
required: true | ||
type: string | ||
istio_version: | ||
required: false | ||
type: string | ||
default: "" | ||
|
||
env: | ||
TARGET_BRANCH: ${{ inputs.target_branch }} | ||
|
||
jobs: | ||
integration_tests_frontend_multicluster_multi_primary: | ||
name: Cypress integration tests | ||
runs-on: ubuntu-20.04 | ||
env: | ||
# Copied from: https://github.com/bahmutov/cypress-gh-action-split-install/blob/ca3916d4e7240ebdc337825d2d78eb354855464b/.github/workflows/tests.yml#L7-L11 | ||
# prevents extra Cypress installation progress messages | ||
CI: 1 | ||
# avoid warnings like "tput: No value for $TERM and no -T specified" | ||
TERM: xterm | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.build_branch }} | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
cache: yarn | ||
cache-dependency-path: frontend/yarn.lock | ||
|
||
- name: Download go binary | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: kiali | ||
path: ~/go/bin/ | ||
|
||
- name: Ensure kiali binary is executable | ||
run: chmod +x ~/go/bin/kiali | ||
|
||
- name: Download frontend build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: build | ||
path: frontend/build | ||
|
||
# Need to install frontend dependencies to run cypress tests. | ||
- name: Install frontend dependencies | ||
working-directory: ./frontend | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Run frontend multi-cluster integration tests | ||
run: hack/run-integration-tests.sh --test-suite frontend-multi-primary $(if [ -n "${{ inputs.istio_version }}" ]; then echo "--istio-version ${{ inputs.istio_version }}"; fi) | ||
|
||
- name: Get debug info when integration tests fail | ||
if: failure() | ||
run: | | ||
kubectl --context kind-east logs -l app.kubernetes.io/name=kiali --tail=-1 --all-containers -n istio-system | ||
kubectl --context kind-east describe nodes | ||
kubectl --context kind-east get pods -l app.kubernetes.io/name=kiali -n istio-system -o yaml | ||
kubectl --context kind-east describe pods -n metallb-system | ||
kubectl --context kind-east logs -p deployments/controller -n metallb-system | ||
kubectl --context kind-east logs -p ds/speaker -n metallb-system | ||
kubectl --context kind-east logs deployments/controller -n metallb-system | ||
kubectl --context kind-east logs ds/speaker -n metallb-system | ||
- name: Upload cypress screenshots when tests fail | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: frontend/cypress/screenshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.