Skip to content

Commit

Permalink
ci: migrate to chaos testing inside slo action
Browse files Browse the repository at this point in the history
  • Loading branch information
polRk committed Nov 21, 2024
1 parent 593ef60 commit f0b0b0e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 44 deletions.
29 changes: 0 additions & 29 deletions .github/scripts/chaos-ydb.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/slo-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Publish YDB SLO Report
uses: ydb-platform/ydb-slo-action/report@main
uses: ydb-platform/ydb-slo-action/report@add-chaos-testing
with:
token: ${{ secrets.GITHUB_TOKEN }}
run_id: ${{ github.event.workflow_run.id }}
15 changes: 1 addition & 14 deletions .github/workflows/slo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
chmod +x .bin/${{matrix.sdk.id}}_linux_amd64
- name: Inititialize YDB SLO
uses: ydb-platform/ydb-slo-action/init@main
uses: ydb-platform/ydb-slo-action/init@add-chaos-testing
with:
github_pull_request_number: ${{ github.event.inputs.github_pull_request_number }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -85,15 +85,6 @@ jobs:
run: |
./tests/slo/.bin/${{matrix.sdk.id}}_linux_amd64 create grpc://localhost:2135 /Root/testdb
- name: Chaos YDB
run: |
chmod +x ./.github/scripts/chaos-ydb.sh
nohup ./.github/scripts/chaos-ydb.sh > chaos-ydb.log 2>&1 &
# - name: Chaos Network
# run: |
# sudo tc qdisc add dev lo root netem delay 100ms 50ms loss 5% corrupt 1%

- name: Run SLO Tests
run: |
./tests/slo/.bin/${{matrix.sdk.id}}_linux_amd64 run grpc://localhost:2135 /Root/testdb \
Expand All @@ -105,10 +96,6 @@ jobs:
-read-timeout 1000 \
-write-timeout 1000 || true
# - if: always()
# run: |
# sudo tc qdisc del dev lo root

- if: always()
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f0b0b0e

Please sign in to comment.