Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark fixes #3005

Merged
merged 3 commits into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
steps:
- name: Setup namespace name
id: setup
run: echo "::set-output name=namespace::benchmark-$(date +"%Y-%m-%d-%s")"
run: echo "namespace=benchmark-$(date +"%Y-%m-%d-%s")" >> $GITHUB_OUTPUT

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -115,18 +115,27 @@ jobs:
- name: Server checks
run: |
nohup kubectl port-forward -n ${{ steps.setup.outputs.namespace }} service/dragonfly-sample 6379:6379 &

pip install -r tools/requirements.txt
python3 tools/benchmark/post_run_checks.py

- name: Get Dragonfly logs
uses: nick-fields/retry@v3
if: always()
run: |
kubectl logs -n ${{ steps.setup.outputs.namespace }} dragonfly-sample-0
with:
timeout_minutes: 1
max_attempts: 3
command: |
kubectl logs -n ${{ steps.setup.outputs.namespace }} dragonfly-sample-0

- name: Get Dragonfly replica logs
uses: nick-fields/retry@v3
if: always()
run: |
kubectl logs -n ${{ steps.setup.outputs.namespace }} dragonfly-sample-1
with:
timeout_minutes: 1
max_attempts: 3
command: |
kubectl logs -n ${{ steps.setup.outputs.namespace }} dragonfly-sample-1

- name: Scale down to zero
if: always()
Expand Down
Loading