File tree Expand file tree Collapse file tree 3 files changed +26
-6
lines changed
Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 1- name : Client e2e performance tests (mocked backend)
1+ name : Client e2e performance tests
2+
3+ permissions :
4+ checks : write
25
36on :
47 schedule :
3134
3235jobs :
3336 test :
37+ name : ' Performance tests'
3438 runs-on : tools-gha-runners-perf
3539 timeout-minutes : 120
3640 steps :
@@ -47,18 +51,33 @@ jobs:
4751 python -m pip install --upgrade pip &&
4852 pip install -r dev_requirements.txt
4953
54+ - name : Prepare system for tests
55+ run : |
56+ pyperf system show &&
57+ pyperf system tune &&
58+ pyperf system show
59+
5060 - name : Run performance tests
5161 env :
5262 NEPTUNE_PERFORMANCE_LOG_FILE : " test-results/test-client-e2e-performance.log"
5363 NEPTUNE_PERFORMANCE_TEST_MODE : ${{ inputs.test_mode || 'normal' }}
64+ NEPTUNE_PERFORMANCE_TEST_TOLERANCE_FACTOR : 1.1
5465 run : |
5566 pytest --junitxml="test-results/test-client-e2e-performance.xml" --log-cli-level=INFO --durations=0 tests/performance
5667
68+ - uses : actions/upload-artifact@v4
69+ with :
70+ name : test-client-e2e-performance.log
71+ path : test-results/test-client-e2e-performance.log
72+
5773 - name : Report
5874 uses : mikepenz/action-junit-report@v5
5975 if : always()
6076 with :
61- report_paths : " ./test-results/test-client-e2e-performance*.xml"
62- update_check : true
63- annotate_notice : true
64- job_name : " Client e2e performance tests"
77+ check_name : ' Performance tests report'
78+ report_paths : " ./test-results/test-client-e2e-performance.xml"
79+ detailed_summary : true
80+ verbose_summary : true
81+ include_passed : true
82+ include_time_in_summary : true
83+ resolve_ignore_classname : true
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ fastapi == 0.116.2
1313uvicorn == 0.35.0
1414humanize == 4.13.0
1515colorlog == 6.9.0
16+ pyperf == 2.9.0
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ def resolve_timeout(default_seconds: float) -> float:
235235 if test_mode == "baseline_discovery" :
236236 return 3_600.0 # 1 hour for baseline discovery
237237
238- tolerance = os .environ .get ("NEPTUNE_PERFORMANCE_TEST_TOLERANCE_FACTOR" , 1.1 )
238+ tolerance = float ( os .environ .get ("NEPTUNE_PERFORMANCE_TEST_TOLERANCE_FACTOR" , 1.1 ) )
239239
240240 return default_seconds * tolerance
241241
You can’t perform that action at this time.
0 commit comments