Skip to content

Commit e046762

Browse files
committed
switch to workflow dispatch call
Signed-off-by: Andrew Brandt <[email protected]>
1 parent dc0c651 commit e046762

File tree

1 file changed

+48
-29
lines changed

1 file changed

+48
-29
lines changed

.github/workflows/zxf-single-day-perf-test.yaml

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,54 @@ jobs:
2929
with:
3030
egress-policy: audit
3131

32-
# Get the `build-XXXXX' tag (latest tag) to run the performance test
33-
# use it later as ${{ steps.tag.outputs.tag }}
34-
- name: Get Build Tag
35-
id: tag
36-
run: |
37-
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
38-
# Triggered by tag push
39-
tag_name="${GITHUB_REF#refs/tags/}"
40-
else
41-
# Triggered by workflow_dispatch
42-
tag_name="${{ github.event.inputs.tag-to-run }}"
43-
fi
44-
echo "Using tag: $tag_name"
45-
echo "tag_name=$tag_name" >> "$GITHUB_OUTPUT"
32+
# # Get the `build-XXXXX' tag (latest tag) to run the performance test
33+
# # use it later as ${{ steps.tag.outputs.tag }}
34+
# - name: Get Build Tag
35+
# id: tag
36+
# run: |
37+
# if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
38+
# # Triggered by tag push
39+
# tag_name="${GITHUB_REF#refs/tags/}"
40+
# else
41+
# # Triggered by workflow_dispatch
42+
# tag_name="${{ github.event.inputs.tag-to-run }}"
43+
# fi
44+
# echo "Using tag: $tag_name"
45+
# echo "tag_name=$tag_name" >> "$GITHUB_OUTPUT"
46+
#
47+
# # Clone the perf analysis automation repo
48+
# - name: Checkout the performance analysis automation repo
49+
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
# with:
51+
# fetch-depth: "1"
52+
# ref: main
53+
# repository: swirldslabs/performance-analysis-automation
54+
# token: ${{ secrets.PERF_ANALYSIS_TOKEN }}
55+
#
56+
# - name: Confirm checkout of performance analysis automation repo
57+
# run: |
58+
# echo "Current director is:"
59+
# pwd
60+
# echo "Current folder contents are:"
61+
# ls -la
4662

47-
# Clone the perf analysis automation repo
48-
- name: Checkout the performance analysis automation repo
49-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
63+
# Call the performance workflow with appropriate input version
64+
- name: Call CITR Performance Workflow
65+
uses: step-security/workflow-dispatch@05938d638f4ddc45d2c59dfd122d3ba247fb7015 # v1.2.6
5066
with:
51-
fetch-depth: "0"
52-
ref: main
53-
repository: swirldslabs/performance-analysis-automation
67+
workflow: .github/workflows/performance-CITR.yml
68+
repo: swirldslabs/performance-analysis-automation # ensure we are executing in the perf analysis automation repo
69+
ref: main # ensure we are always using the workflow definition from the main branch
5470
token: ${{ secrets.PERF_ANALYSIS_TOKEN }}
55-
56-
- name: Confirm checkout of performance analyis automation repo
57-
run: |
58-
echo "Current director is:"
59-
pwd
60-
echo "Current folder contents are:"
61-
ls -la
62-
63-
# Call the performance workflow with appropriate input version
71+
inputs: '{
72+
"namespace": "Latitude3",
73+
"hederaversion": "main",
74+
"soloversion": "latest_tested_solo-charts0.59",
75+
"NLG_Accounts": "100000000",
76+
"NLG_Time": "330m",
77+
"NLG_Time3": "2h",
78+
"AddAppProps": "",
79+
"AddSettings": "",
80+
"CryptoBenchMerkleDb_javaargs": "-XX:+UseZGC -XX:+ZGenerational -XX:ZAllocationSpikeTolerance=2 -XX:ConcGCThreads=14 -XX:ZMarkStackSpaceLimit=12g -XX:MaxDirectMemorySize=24g -Xmx90g",
81+
"CryptoBenchMerkleDb_testparams": "-p maxKey=500000000 -p numRecords=100000 -p keySize=24 -p recordSize=1024 -p numFiles=6000"
82+
}'

0 commit comments

Comments
 (0)