Skip to content

Commit

Permalink
chore(ci): Wait for service termination
Browse files Browse the repository at this point in the history
- Try to fix flaky CI tests where user-report-system service has not been terminated before the next test starts to run
  • Loading branch information
christophd committed Sep 5, 2023
1 parent 94e7b2e commit 4a36c66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ jobs:
run: |
# Then run integration tests
yaks run test/consumers $YAKS_RUN_OPTIONS
yaks run test/user-report $YAKS_RUN_OPTIONS
yaks run test/user-report/UserReportCrime.feature $YAKS_RUN_OPTIONS
yaks run test/user-report/UserReportHealth.feature $YAKS_RUN_OPTIONS
yaks run test/bridges $YAKS_RUN_OPTIONS
- name: YAKS Report
if: failure()
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ jobs:
run: |
# Then run integration tests
yaks run test/consumers $YAKS_RUN_OPTIONS
yaks run test/user-report $YAKS_RUN_OPTIONS
yaks run test/user-report/UserReportCrime.feature $YAKS_RUN_OPTIONS
yaks run test/user-report/UserReportHealth.feature $YAKS_RUN_OPTIONS
yaks run test/bridges $YAKS_RUN_OPTIONS
- name: YAKS Report
if: failure()
Expand Down Expand Up @@ -204,7 +205,8 @@ jobs:
run: |
# Then run integration tests
yaks run test/consumers $YAKS_RUN_OPTIONS
yaks run test/user-report $YAKS_RUN_OPTIONS
yaks run test/user-report/UserReportCrime.feature $YAKS_RUN_OPTIONS
yaks run test/user-report/UserReportHealth.feature $YAKS_RUN_OPTIONS
yaks run test/bridges $YAKS_RUN_OPTIONS
- name: YAKS Report
if: failure()
Expand Down
3 changes: 3 additions & 0 deletions test/user-report/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ pre:
run: |
yaks role --add strimzi
post:
- name: Wait for service termination
run: |
kubectl wait --for=delete service/user-report-system --timeout=60s -n ${YAKS_NAMESPACE}
- name: Delete secret
run: |
kubectl delete secret example-event-streaming-user-reporting -n ${YAKS_NAMESPACE}
Expand Down

0 comments on commit 4a36c66

Please sign in to comment.