-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): add e2e action for operator manifest (#488)
* add e2e action for operator * add wait action * add test case for risingwave.yaml * update the e2e action * update hdfs manifest file * add manifeat test shell and shfmt * add shfmt make command * update action file * remove the hdfs test * fix risingwave-in-memory.yaml
- Loading branch information
bigfish.zhang
authored
Aug 3, 2023
1 parent
a98b5bf
commit 5bd9701
Showing
30 changed files
with
1,617 additions
and
1,432 deletions.
There are no files selected for viewing
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,48 @@ | ||
name: E2E Manifest Test (PR) | ||
|
||
on: | ||
workflow_dispatch: # For manually triggering workflow | ||
pull_request: | ||
branches: [ main ] | ||
merge_group: | ||
branches: [ main ] | ||
|
||
jobs: | ||
e2e-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Create Kind Cluster | ||
uses: helm/kind-action@v1.8.0 | ||
- name: Install Cert Manager | ||
shell: bash | ||
working-directory: ./ | ||
run: | | ||
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.12.0/cert-manager.yaml | ||
- name: Wait Cert Manager | ||
working-directory: ./ | ||
if: ${{ always() }} | ||
run: | | ||
curl -sSL -o cmctl.tar.gz https://github.com/cert-manager/cert-manager/releases/download/v1.12.0/cmctl-linux-amd64.tar.gz | ||
tar xzf cmctl.tar.gz | ||
sudo mv cmctl /usr/local/bin | ||
cmctl check api --wait=2m | ||
- name: Install Operator | ||
shell: bash | ||
working-directory: ./ | ||
if: ${{ always() }} | ||
run: | | ||
kubectl apply --server-side -f config/risingwave-operator.yaml | ||
- name: Wait Operator | ||
shell: bash | ||
working-directory: ./ | ||
if: ${{ always() }} | ||
run: | | ||
kubectl wait --for=condition=Ready Pods --all --namespace risingwave-operator-system --timeout=5m | ||
- name: E2E Manifest Test | ||
shell: bash | ||
working-directory: ./ | ||
if: ${{ always() }} | ||
run: | | ||
make manifest-test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ set -euo pipefail | |
|
||
echo "--- Build binaries" | ||
|
||
make build | ||
make build |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
set -euo pipefail |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ kind delete cluster --name e2e | |
|
||
echo "--- Running e2e tests" | ||
|
||
make e2e-test | ||
make e2e-test |
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
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.