Skip to content

Commit b489199

Browse files
committed
Improve Github summary
1 parent 606e21a commit b489199

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

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

Lines changed: 19 additions & 6 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:
@@ -51,14 +55,23 @@ jobs:
5155
env:
5256
NEPTUNE_PERFORMANCE_LOG_FILE: "test-results/test-client-e2e-performance.log"
5357
NEPTUNE_PERFORMANCE_TEST_MODE: ${{ inputs.test_mode || 'normal' }}
58+
NEPTUNE_PERFORMANCE_TEST_TOLERANCE_FACTOR: 1.1
5459
run: |
55-
pytest --junitxml="test-results/test-client-e2e-performance.xml" --log-cli-level=INFO --durations=0 tests/performance
60+
taskset -c 2 pytest --junitxml="test-results/test-client-e2e-performance.xml" --log-cli-level=INFO --durations=0 tests/performance
61+
62+
- uses: actions/upload-artifact@v4
63+
with:
64+
name: test-client-e2e-performance.log
65+
path: test-results/test-client-e2e-performance.log
5666

5767
- name: Report
5868
uses: mikepenz/action-junit-report@v5
5969
if: always()
6070
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"
71+
check_name: 'Performance tests report'
72+
report_paths: "./test-results/test-client-e2e-performance.xml"
73+
detailed_summary: true
74+
verbose_summary: true
75+
include_passed: true
76+
include_time_in_summary: true
77+
resolve_ignore_classname: true

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)