Skip to content

Commit 45d554f

Browse files
authored
Merge pull request #507 from NHSDigital/performance-large-org
Performance large org
2 parents 219f1d7 + ae8ffb0 commit 45d554f

File tree

6 files changed

+3925
-6
lines changed

6 files changed

+3925
-6
lines changed

.github/workflows/performance-large-org.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ on:
3434
default: '[email protected]'
3535

3636
jobs:
37-
nurse_journey_performance_test:
37+
large_org_performance_test:
3838
runs-on: ubuntu-latest
3939

4040
if: ${{ github.event_name == 'workflow_dispatch' }}
@@ -79,6 +79,14 @@ jobs:
7979
id: timestamp
8080
run: echo "timestamp=$(date '+%Y%m%d%H%M%S')" >> $GITHUB_ENV
8181

82+
- name: Start STS Server
83+
run: |
84+
nohup jmeter/bin/simple-table-server.sh \
85+
-DjmeterPlugin.sts.datasetDirectory=$GITHUB_WORKSPACE/${{ env.large-org-home }} \
86+
-DjmeterPlugin.sts.daemon=true \
87+
-DjmeterPlugin.sts.port=9191 \
88+
&
89+
8290
- name: Run JMeter test
8391
run: |
8492
gunzip ${{ env.large-org-home }}/consent.csv.gz
@@ -90,25 +98,29 @@ jobs:
9098
-j $large_org_output_dir/jmeter.log \
9199
-e -o $large_org_output_dir/report \
92100
-JjmeterPlugin.sts.loadAndRunOnStartup=true \
93-
-JjmeterPlugin.sts.datasetDirectory=${{ env.large-org-home }}
101+
-JjmeterPlugin.sts.datasetDirectory=${{ env.large-org-home }} \
94102
-Jjmeter.reportgenerator.report_title="MAVIS test report" \
95103
-Jjmeter.reportgenerator.overall_granularity=10000 \
96104
-Jjmeter.reportgenerator.sample_filter="^.*[^0-9]$" \
97105
-JAuthToken=${{secrets.HTTP_AUTH_TOKEN_FOR_TESTS}} \
98106
-JThreads=${{inputs.threads}} \
99107
-JDuration=${{inputs.duration}} \
100108
-JRampUp=${{inputs.ramp_up}} \
101-
-JLoops=1
109+
-JLoops=1 \
102110
-JUser=${{inputs.user}} \
103-
-JVaccinationLoop=${{inputs.vaccination_loop}} \
111+
-JVaccinationLoop=${{inputs.vaccination_loop}}
112+
gzip -c ${{ env.large-org-home }}/consent.csv > ${{ env.large-org-home }}/consent.csv.gz
113+
gzip -c ${{ env.large-org-home }}/vaccination.csv > ${{ env.large-org-home }}/vaccination.csv.gz
104114
105-
- name: Upload nurse journey JMeter output
115+
- name: Upload JMeter output
106116
uses: actions/upload-artifact@v4
107117
with:
108118
name: jmeter-large-org-output-${{ env.timestamp }}
109-
path: large_org_output_dir
119+
path: large-org-output
110120
if-no-files-found: warn
111121

122+
123+
112124
#GitHub pages temporarily disabled to save junk being published
113125
# - name: Publish report to GH Pages
114126
# uses: peaceiris/actions-gh-pages@v4
6.88 KB
Binary file not shown.
11.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)