Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
tschneider-aneo committed Nov 13, 2024
1 parent 50a0858 commit ac5e8ab
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions .github/workflows/bench-aws.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Benchmark ArmoniK with Bench"
name: "Benchmark with Bench client"

on:
push:
Expand All @@ -8,19 +8,26 @@ on:
types: [published]

jobs:
# define-matrix:
# runs-on: ubuntu-latest

# outputs:
# types: ${{ steps.types.outputs.type }}
# exclude: ${{ steps.types.outputs.exclude }}
# steps:
# - name: Define Colors
# id: types
# env:
# TRIGGER: ${{ github.event_name }}
# run: |
# echo 'type=["localhost", "aws"]' >> "$GITHUB_OUTPUT"
define-matrix:
name: Define matrix
runs-on: ubuntu-latest
outputs:
types: ${{ steps.types.outputs.type }}
include: ${{ steps.types.outputs.include }}
steps:
- name: Define Colors
id: types
env:
TRIGGER: ${{ github.event_name }}
run: |
set -ex
if [ "$TRIGGER" = 'push' ]; then
echo 'type=["localhost"]' >> "$GITHUB_OUTPUT"
echo 'include=[{"type": "localhost", "ntasks":100, "polling-limit": 300}]' >> "$GITHUB_OUTPUT"
elif [ "$TRIGGER" = 'release' ]
echo 'type=["localhost", "aws"]' >> "$GITHUB_OUTPUT"
echo 'include=[{"type": "localhost", "ntasks":100, "polling-limit": 300}, {"type": "localhost", "ntasks":100, "polling-limit": 300}]' >> "$GITHUB_OUTPUT"
fi
benchmark:
name: ${{ matrix.type }}
Expand All @@ -33,10 +40,10 @@ jobs:
include:
- type: localhost
ntasks: 100
polling-limit: 300
polling-limit: 1000
- type: aws
ntasks: 1000
polling-limit: 600
polling-limit: 1000
env:
prefix: benchmark
outputs:
Expand Down Expand Up @@ -104,7 +111,7 @@ jobs:
with:
grpc-client-endpoint: ${{ steps.get-armonik-endpoint.outputs.grpc-endpoint }}
session-name: ${{ steps.bench.outputs.session-name }}
poll-duration-limit: 720
poll-duration-limit: ${{ matrix.polling-limit }}

- name: Upload benchmark results to artifact registry
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit ac5e8ab

Please sign in to comment.