Skip to content

Commit

Permalink
store
Browse files Browse the repository at this point in the history
Signed-off-by: Ye Cao <[email protected]>
  • Loading branch information
dashanji committed Aug 11, 2024
1 parent 5ca8dc7 commit 997f0d0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 48 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/vineyard-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,11 @@ env:
jobs:
ci:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'v6d-io/v6d' }}
strategy:
fail-fast: false
matrix:
job:
- release
- unit-tests
- e2e-tests-airflow-integration
- e2e-tests-assembly-local
- e2e-tests-assembly-distributed
- e2e-tests-autogenerated-helm-chart
- e2e-tests-failover
- e2e-tests-repartition-dask
- e2e-tests-schedule-workflow
- e2e-tests-schedule-workflow-without-crd
- e2e-tests-schedule-workload
- e2e-tests-serialize
- e2e-tests-sidecar
- e2e-tests-spill
- e2e-tests-workflow
- e2e-tests-mars-examples
- e2e-tests-vineyardctl
- e2e-tests-deploy-raw-backup-and-recover
- e2e-tests-three-etcd-nodes-failover
- e2e-tests-five-etcd-nodes-failover
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -303,7 +284,7 @@ jobs:
WITH_STOAT: true

- name: Setup tmate session
if: false
if: true
uses: mxschmitt/action-tmate@v3

- uses: stoat-dev/stoat-action@v0
Expand Down
52 changes: 26 additions & 26 deletions k8s/test/e2e/etcd-failover/five-etcd-nodes-failover-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,29 @@ setup:
command: |
kubectl apply -f k8s/test/e2e/etcd-failover/producer.yaml
kubectl wait --for=condition=complete job/producer --timeout=300s
- name: random delete two different pods with launched etcd for 5 times
command: |
for i in {1..5}; do
num1=$(shuf -i 0-4 -n 1)
num2=$(shuf -i 0-4 -n 1)
while [ "$num1" -eq "$num2" ]; do
num2=$(shuf -i 0-4 -n 1)
done
kubectl delete pod "vineyardd-$num1" -n default --force
kubectl delete pod "vineyardd-$num2" -n default --force
#- name: random delete two different pods with launched etcd for 5 times
# command: |
# for i in {1..5}; do
# num1=$(shuf -i 0-4 -n 1)
# num2=$(shuf -i 0-4 -n 1)
# while [ "$num1" -eq "$num2" ]; do
# num2=$(shuf -i 0-4 -n 1)
# done
# kubectl delete pod "vineyardd-$num1" -n default --force
# kubectl delete pod "vineyardd-$num2" -n default --force
# wait for the instance quit messages to be propagated
sleep 240
kubectl rollout status statefulset/vineyardd
done
- name: install consumer
command: |
kubectl apply -f k8s/test/e2e/etcd-failover/consumer.yaml
kubectl wait --for=condition=complete job/consumer --timeout=300s
# sleep 240
# kubectl rollout status statefulset/vineyardd
# done
#- name: install consumer
# command: |
# kubectl apply -f k8s/test/e2e/etcd-failover/consumer.yaml
# kubectl wait --for=condition=complete job/consumer --timeout=300s
timeout: 60m

cleanup:
# always never success failure
on: success
on: never

verify:
# verify with retry strategy
Expand All @@ -58,11 +58,11 @@ verify:
# the interval between two attempts, e.g. 10s, 1m.
interval: 10s
cases:
- query: |
kubectl get pod -l app=consumer -oname | \
awk -F '/' '{print $2}' | \
head -n 1 | \
xargs kubectl logs | \
tail -n 1 | \
awk '{print $1}'
expected: ../verify/object-id.yaml
#- query: |
# kubectl get pod -l app=consumer -oname | \
# awk -F '/' '{print $2}' | \
# head -n 1 | \
# xargs kubectl logs | \
# tail -n 1 | \
# awk '{print $1}'
# expected: ../verify/object-id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ setup:

cleanup:
# always never success failure
on: success
on: never

verify:
# verify with retry strategy
Expand Down

0 comments on commit 997f0d0

Please sign in to comment.