mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
Benchmark fixes (#3005)
* fix(benchmark): depcreated node 16 github actions
This commit is contained in:
parent
5a37c47aaf
commit
6b480237be
1 changed files with 15 additions and 6 deletions
21
.github/workflows/benchmark.yml
vendored
21
.github/workflows/benchmark.yml
vendored
|
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue