Skip to content

Commit

Permalink
Benchmark fixes (#3005)
Browse files Browse the repository at this point in the history
* fix(benchmark): depcreated node 16 github actions
  • Loading branch information
zacharya19 authored May 3, 2024
1 parent 5a37c47 commit 6b48023
Showing 1 changed file with 15 additions and 6 deletions.
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

0 comments on commit 6b48023

Please sign in to comment.