Skip to content

Run uat-testnet load tests #2590

Run uat-testnet load tests

Run uat-testnet load tests #2590

# Run a set of load on uat-testnet on a schedule
#
name: '[dev/uat] Run load tests'
run-name: Run uat-testnet load tests
on:
schedule:
- cron: '10 * * * *'
workflow_dispatch:
jobs:
run-check:
runs-on: [self-hosted, Linux, X64, ten-test-gh-runner-03]
steps:
- name: 'Check out ten-test'
uses: actions/checkout@v3
with:
path: ./ten-test
- name: 'Check out go-ten code'
uses: actions/checkout@v3
with:
repository: ten-protocol/go-ten
path: ./go-ten
- name: 'Build required artifacts for running tests'
run: |
cd ${{ github.workspace }}/ten-test
./get_artifacts.sh
ls -l ${{ github.workspace }}/ten-test/artifacts
- name: 'Run load and perf tests'
run: |
cd ${{ github.workspace }}/ten-test/tests
/usr/local/bin/pysys.py run -m ten.uat -i remote_load -c 8
- name: 'Collate pdf output'
if: always()
run: |
cd ${{ github.workspace }}/ten-test
pdftk $(find . -name \*.pdf | sort) cat output results_graphs.pdf || true
- name: 'Upload testcase output'
uses: actions/upload-artifact@v4
if: always()
with:
name: test-artifact
path: |
${{ github.workspace }}/ten-test/**/Output
!${{ github.workspace }}/ten-test/**/node_modules
retention-days: 1
- name: 'Upload performance output'
uses: actions/upload-artifact@v4
if: always()
with:
name: performance-artifact
path: |
${{ github.workspace }}/ten-test/results_graphs.pdf
if-no-files-found: ignore
retention-days: 1