-
Notifications
You must be signed in to change notification settings - Fork 15
158 lines (135 loc) · 5.67 KB
/
Copy pathengine-benchmarks.yml
File metadata and controls
158 lines (135 loc) · 5.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
name: Engine Benchmarks
on:
pull_request:
paths:
- 'skainet-backends/benchmarks/jvm-cpu-publish/**'
- 'skainet-backends/benchmarks/jvm-cpu-jmh/**'
- 'skainet-backends/skainet-backend-api/**'
- 'skainet-backends/skainet-backend-cpu/**'
- 'benchmarks/**'
- 'scripts/run_engine_benchmarks.sh'
- 'scripts/run_engine_smoke.sh'
- 'scripts/validate_pts_profiles.sh'
- 'scripts/check_engine_json.sh'
- '.github/workflows/engine-benchmarks.yml'
push:
branches: [main, develop]
paths:
- 'skainet-backends/benchmarks/jvm-cpu-publish/**'
- 'skainet-backends/benchmarks/jvm-cpu-jmh/**'
- 'skainet-backends/skainet-backend-api/**'
- 'skainet-backends/skainet-backend-cpu/**'
- 'benchmarks/**'
- 'scripts/run_engine_benchmarks.sh'
- 'scripts/run_engine_smoke.sh'
- 'scripts/validate_pts_profiles.sh'
- 'scripts/check_engine_json.sh'
- '.github/workflows/engine-benchmarks.yml'
workflow_dispatch:
inputs:
confirm_publish:
description: 'Publish this run to OpenBenchmarking.org (full-self-hosted lane only). Requires a one-time `phoronix-test-suite openbenchmarking-login` on the runner.'
type: boolean
default: false
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Set default permission for all jobs to none
permissions: {}
jobs:
smoke-ubuntu-latest:
# Smoke pack on the default GitHub runner. Goal: prove the harness +
# JSON schema + PTS profile XMLs still compile and parse on every PR.
# Performance numbers from this lane are NOT publishable — virtualized
# runner, shared tenancy, no warmup steady-state.
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up JDK 21
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: 'zulu'
java-version: 21
- name: Install Phoronix Test Suite
# PTS isn't in Ubuntu 24.04's default repos; install_pts.sh pulls
# the upstream .deb from the official GitHub release.
run: |
./scripts/install_pts.sh
- name: Build publication harness shadow jar
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g -Dfile.encoding=UTF-8"
run: |
./gradlew --no-daemon --stacktrace \
:skainet-backends:benchmarks:jvm-cpu-publish:shadowJar
- name: Run engine smoke benchmarks
run: |
./scripts/run_engine_smoke.sh
- name: Validate JSON schema
run: |
./scripts/check_engine_json.sh out/engine/smoke
- name: Validate PTS profiles and suite
run: |
./scripts/validate_pts_profiles.sh
- name: Upload smoke records
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: engine-smoke-records-${{ github.run_id }}
path: out/engine/smoke/**/*.json
retention-days: 14
full-self-hosted:
# Full pack on the registered self-hosted runner. Only fires on release
# publish or manual dispatch — never on PRs — so untrusted code cannot
# land on the maintainer machine. Results always land as artifacts;
# publishing to OpenBenchmarking.org is a separate, explicitly gated
# step below (workflow_dispatch with confirm_publish: true only — a
# release publish alone never auto-publishes to the public leaderboard).
if: github.event_name == 'workflow_dispatch' || github.event_name == 'release'
runs-on: [self-hosted, linux, x86_64, skainet-bench-linux-x86]
timeout-minutes: 120
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Show runner identity
run: |
echo "Runner: $RUNNER_NAME labels=$RUNNER_LABELS"
uname -a
java -version 2>&1 | head -3
phoronix-test-suite version 2>/dev/null | head -1 || echo "PTS not installed"
- name: Build publication harness shadow jar
run: |
./gradlew --no-daemon --stacktrace \
:skainet-backends:benchmarks:jvm-cpu-publish:shadowJar
- name: Run full engine benchmarks
run: |
./scripts/run_engine_benchmarks.sh
- name: Validate JSON schema
run: |
./scripts/check_engine_json.sh "$(ls -td out/engine/*/ | head -1)"
- name: Validate PTS profiles and suite
run: |
./scripts/validate_pts_profiles.sh
- name: Upload full records
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: engine-full-records-${{ github.run_id }}
path: out/engine/**/*.json
retention-days: 90
- name: Publish to OpenBenchmarking.org
# Explicitly gated — only a manual workflow_dispatch with
# confirm_publish: true reaches this step. A release publish event
# alone runs the benchmarks and uploads artifacts above, but never
# this step, so a bad release tag can't silently publish public
# numbers. Requires a one-time `phoronix-test-suite
# openbenchmarking-login` on this runner — see
# docs/modules/ROOT/pages/contributing/benchmarks.adoc.
if: github.event_name == 'workflow_dispatch' && github.event.inputs.confirm_publish == 'true'
run: |
./scripts/upload_openbenchmarking.sh "$(ls -td out/engine/*/ | head -1)" --confirm