Skip to content

Commit 060a03b

Browse files
committed
Improve Github summary
1 parent 606e21a commit 060a03b

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

.github/workflows/tests-performance-client-e2e.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
name: Client e2e performance tests (mocked backend)
1+
name: Client e2e performance tests
2+
3+
permissions:
4+
checks: write
25

36
on:
47
schedule:
@@ -31,6 +34,7 @@ on:
3134

3235
jobs:
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

dev_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ fastapi == 0.116.2
1313
uvicorn == 0.35.0
1414
humanize == 4.13.0
1515
colorlog == 6.9.0
16+
pyperf == 2.9.0

tests/performance/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)