Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: bvolovat <[email protected]>
  • Loading branch information
bvolovat committed Jan 5, 2025
1 parent 84c207f commit 373a62a
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/performance-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- s-8vcpu-16gb
- s-16vcpu-32gb
type: choice
default: s-4vcpu-8gb
default: s-8vcpu-8gb
required: true
NODE_COUNT:
description: 'Number of nodes'
Expand Down Expand Up @@ -94,12 +94,23 @@ jobs:
- name: Run performance Test
run: |
python performance.py \
-skip-cluster \
-nodes ${{ github.event.inputs.NODE_COUNT }} \
-account ${{ github.event.inputs.ACCOUNT_ID }} \
-accessKey ${{ github.event.inputs.ACCESS_KEY }} \
${{github.event.inputs.STORAGE_VERSION && "-storage-version ${github.event.inputs.STORAGE_VERSION}"}} \
${{github.event.inputs.NODE_AGENT_VERSION && "-node-agent-version ${github.event.inputs.NODE_AGENT_VERSION}"}} \
${{github.event.inputs.ENABLE_KDR && "-kdr"}} \
${{github.event.inputs.PRIVATE_NODE_AGENT && "-private-node-agent ${github.event.inputs.PRIVATE_NODE_AGENT}"}}
CMD="python performance.py -skip-cluster -nodes ${{ github.event.inputs.NODE_COUNT }} -account ${{ github.event.inputs.ACCOUNT_ID }} -accessKey ${{ github.event.inputs.ACCESS_KEY }}"
if [ ! -z "${{ github.event.inputs.STORAGE_VERSION }}" ]; then
CMD="$CMD -storage-version ${{ github.event.inputs.STORAGE_VERSION }}"
fi
if [ ! -z "${{ github.event.inputs.NODE_AGENT_VERSION }}" ]; then
CMD="$CMD -node-agent-version ${{ github.event.inputs.NODE_AGENT_VERSION }}"
fi
if [ "${{ github.event.inputs.ENABLE_KDR }}" == "true" ]; then
CMD="$CMD -kdr"
fi
if [ ! -z "${{ github.event.inputs.PRIVATE_NODE_AGENT }}" ]; then
CMD="$CMD -private-node-agent ${{ github.event.inputs.PRIVATE_NODE_AGENT }}"
fi
echo "Running command: $CMD"
eval $CMD

0 comments on commit 373a62a

Please sign in to comment.