Skip to content

Commit

Permalink
Apply qdelamea requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tschneider-aneo committed Oct 30, 2024
1 parent eb7a81e commit 7c1dae0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/htcmock-localhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- "ts/add-htc-mock-worflow"
- "ts/ci-**"
- "main"
workflow_dispatch:
inputs:
ntasks:
Expand All @@ -19,6 +19,9 @@ on:
description: "Whether to purge session"
default: "false"
required: false
polling-limit:
description: "Polling duration for HTC Mock session completion"
default: 600
release:
types: [created, published]

Expand All @@ -41,19 +44,19 @@ jobs:
k3s: true
docker: true

- id: deploy
name: "Deploy ArmoniK"
uses: aneoconsulting/ArmoniK.Action.Deploy/deploy@main
with:
type: localhost

- name: Define runner env variables
run: |
echo "core-version=$(cat versions.tfvars.json | jq '.armonik_versions.core' | sed -r 's/"//g')" >> $GITHUB_ENV
echo "ntasks=${{ inputs.ntasks || 500 }}" >> $GITHUB_ENV
echo "subtasks-levels=${{ inputs.subtasks-levels || 5 }}" >> $GITHUB_ENV
echo "purge-data=${{ inputs.purge-data || false }}" >> $GITHUB_ENV
- id: deploy
name: "Deploy ArmoniK"
uses: aneoconsulting/ArmoniK.Action.Deploy/deploy@main
with:
type: localhost

- id: get-armonik-endpoint
name: "Get ArmoniK's control plane endpoint"
run: |
Expand Down Expand Up @@ -85,18 +88,17 @@ jobs:
- name: Upload bench results to artifact registry
uses: actions/upload-artifact@v4
with:
name: htc-mock-results
name: main_bench_htcmock_${{ env.GITHUB_RUN_ID }}
path: ${{ steps.get-throughput.outputs.bench-file-path }}

- name: (test) Upload bench results to s3
- name: Upload bench results to s3
env:
BENCH_RESULTS_PATH: ${{ steps.get-throughput.outputs.bench-file-path }}
COMMIT_SHA: ${{ github.sha }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
run: |
aws s3 cp "$BENCH_RESULTS_PATH" "s3://test-armonik-bench-storage/commit/$COMMIT_SHA/$date-htcmock-$ntasks_tasks.json"
aws s3 cp "$BENCH_RESULTS_PATH" "s3://test-armonik-bench-storage/main_bench_htcmock_$GITHUB_RUN_ID.json"
- if: "always()"
id: destroy
Expand Down
2 changes: 1 addition & 1 deletion tools/ci/htcmock-job-template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: htcmock-session
name: bench-htcmock
namespace: armonik
spec:
ttlSecondsAfterFinished: 0
Expand Down

0 comments on commit 7c1dae0

Please sign in to comment.