Skip to content

Commit

Permalink
fix: HTC Mock and Get Throughput actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tschneider-aneo committed Oct 16, 2024
1 parent 4704bb8 commit 11f03d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions get-throughput/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ runs:
POLL_DURATION_LIMIT: ${{ inputs.poll-duration-limit }}
run: |
set -ex
cd tools/ci/python
pip install requirements.txt
python program.py "$GRPC_CLIENT_ENDPOINT" "$SESSION_NAME" "$POLL_DURATION_LIMIT"
cd ${{ inputs.working-directory }}/tools/ci/python
pip install -r requirements.txt
python program.py "$GRPC_CLIENT_ENDPOINT" "$SESSION_NAME" --polling-limit "$POLL_DURATION_LIMIT"
9 changes: 6 additions & 3 deletions htcmock/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ inputs:
description: "A name that is provided as the value for key 'SessionName' for the 'HtcMock__Options' option"
required: false
default: "cicd"

outputs:
session-name:
description: "Name of the HTC Mock session to help retrieve its id"
value: ${{ steps.run.outputs.session-name }}
runs:
using: composite
steps:
Expand All @@ -41,7 +44,7 @@ runs:
run: |
set -ex
cd tools/ci
echo "session-name=$SESSION_NAME" >> "$GITHUB_OUTPUTS"
echo "session-name=$SESSION_NAME" >> "$GITHUB_OUTPUT"
sed "s/@@NTASKS@@/$NTASKS/g; s/@@SUBTASKS_LEVELS@@/$SUBTASKS_LEVELS/g; s/@@SESSION_NAME@@/$SESSION_NAME/g; s/@@GRPC_CLIENT_ENDPOINT@@/$GRPC_CLIENT_ENDPOINT/g" \
htcmock-job-template.yml |
${{ inputs.working-directory }}/tools/ci/htcmock-job-template.yml |
kubectl apply -f -

0 comments on commit 11f03d0

Please sign in to comment.