Skip to content

Commit

Permalink
fix: Properly adding RESULTS_DIR as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot committed Aug 23, 2024
1 parent 533a7c2 commit 3aa7dc6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/loadtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
workflow_dispatch:
inputs:
### Required
num_threads:
description: 'Number of concurrent threads (USERS) for each test in sequence'
default: 200
required: true
type: integer
dops_api_url:
description: 'The url endpoint for the dops'
default: onroutebc-test-dops.apps.silver.devops.gov.bc.ca
Expand Down Expand Up @@ -43,10 +48,11 @@ jobs:
--loglevel INFO
--jmeterlogconf=log.conf
-JBEARER_TOKEN=${{inputs.bearer_token}}
-JDOPS_API_URL=${{inputs.dops_api_url}}
-JNUM_THREADS=${{inputs.num_threads}}
-JFRONTEND_API_URL=${{inputs.frontend_api_url}}
-JDOPS_API_URL=${{inputs.dops_api_url}}
-JVEHICLES_API_URL=${{inputs.vehicles_api_url}}
-JRESULTS_DIR=loadtest/results
-JRESULTS_DIR=loadtests/results
- uses: actions/[email protected]
with:
Expand Down
7 changes: 6 additions & 1 deletion loadtests/orbc_load_test_plan_dops.jmx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
<hashTree/>
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments">
<elementProp name="NUM_THREADS" elementType="Argument">
<stringProp name="Argument.name">NUM_THREADS</stringProp>
<stringProp name="Argument.value">200</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="FRONTEND_API_URL" elementType="Argument">
<stringProp name="Argument.name">FRONTEND_API_URL</stringProp>
<stringProp name="Argument.value">onroutebc-test-frontend.apps.silver.devops.gov.bc.ca</stringProp>
Expand Down Expand Up @@ -114,7 +119,7 @@
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">1000</stringProp>
<stringProp name="ThreadGroup.num_threads">${NUM_THREADS}</stringProp>
<stringProp name="ThreadGroup.ramp_time">${__P(rampup,300)}</stringProp>
<longProp name="ThreadGroup.start_time">1365261073000</longProp>
<longProp name="ThreadGroup.end_time">1365261073000</longProp>
Expand Down
9 changes: 7 additions & 2 deletions loadtests/orbc_load_test_plan_frontend.jmx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
<hashTree/>
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments">
<elementProp name="NUM_THREADS" elementType="Argument">
<stringProp name="Argument.name">NUM_THREADS</stringProp>
<stringProp name="Argument.value">200</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="FRONTEND_API_URL" elementType="Argument">
<stringProp name="Argument.name">FRONTEND_API_URL</stringProp>
<stringProp name="Argument.value">onroutebc-test-frontend.apps.silver.devops.gov.bc.ca/</stringProp>
Expand Down Expand Up @@ -124,7 +129,7 @@
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">100</stringProp>
<stringProp name="ThreadGroup.num_threads">${NUM_THREADS}</stringProp>
<stringProp name="ThreadGroup.ramp_time">${__P(rampup,300)}</stringProp>
<longProp name="ThreadGroup.start_time">1365261073000</longProp>
<longProp name="ThreadGroup.end_time">1365261073000</longProp>
Expand Down Expand Up @@ -1501,7 +1506,7 @@
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">100</stringProp>
<stringProp name="ThreadGroup.num_threads">${NUM_THREADS}</stringProp>
<stringProp name="ThreadGroup.ramp_time">${__P(rampup,300)}</stringProp>
<longProp name="ThreadGroup.start_time">1365261073000</longProp>
<longProp name="ThreadGroup.end_time">1365261073000</longProp>
Expand Down
10 changes: 5 additions & 5 deletions loadtests/orbc_load_test_plan_vehicles.jmx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
<hashTree/>
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments">
<elementProp name="USERS" elementType="Argument">
<stringProp name="Argument.name">USERS</stringProp>
<elementProp name="NUM_THREADS" elementType="Argument">
<stringProp name="Argument.name">NUM_THREADS</stringProp>
<stringProp name="Argument.value">200</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
Expand Down Expand Up @@ -609,7 +609,7 @@
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">${USERS}</stringProp>
<stringProp name="ThreadGroup.num_threads">${NUM_THREADS}</stringProp>
<stringProp name="ThreadGroup.ramp_time">${__P(rampup,300)}</stringProp>
<longProp name="ThreadGroup.start_time">1365261073000</longProp>
<longProp name="ThreadGroup.end_time">1365261073000</longProp>
Expand Down Expand Up @@ -736,7 +736,7 @@
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">${USERS}</stringProp>
<stringProp name="ThreadGroup.num_threads">${NUM_THREADS}</stringProp>
<stringProp name="ThreadGroup.ramp_time">${__P(rampup,300)}</stringProp>
<longProp name="ThreadGroup.start_time">1365261073000</longProp>
<longProp name="ThreadGroup.end_time">1365261073000</longProp>
Expand Down Expand Up @@ -948,7 +948,7 @@
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">${USERS}</stringProp>
<stringProp name="ThreadGroup.num_threads">${NUM_THREADS}</stringProp>
<stringProp name="ThreadGroup.ramp_time">${__P(rampup,300)}</stringProp>
<longProp name="ThreadGroup.start_time">1365261073000</longProp>
<longProp name="ThreadGroup.end_time">1365261073000</longProp>
Expand Down

0 comments on commit 3aa7dc6

Please sign in to comment.