-
Notifications
You must be signed in to change notification settings - Fork 6
130 lines (119 loc) · 4.36 KB
/
Copy pathresult-server-tests.yml
File metadata and controls
130 lines (119 loc) · 4.36 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
name: Result Server Tests
on:
pull_request:
paths:
- "result_server/**"
- "scripts/bk_functions.sh"
- "scripts/collect_timing.sh"
- "scripts/result.sh"
- "scripts/result_server/**"
- "scripts/estimation/**"
- "scripts/tests/test_bk_profiler.sh"
- "scripts/tests/test_estimation_gpu_kernel_ensemble_average.sh"
- "scripts/tests/test_estimation_gpu_kernel_lightgbm_v10.sh"
- "scripts/tests/test_estimation_gpu_kernel_mlp_v15.sh"
- "scripts/tests/fixtures/**"
- "scripts/tests/test_genesis_gpu_mlp_estimation.sh"
- "scripts/tests/test_result_profile_data.sh"
- "scripts/tests/test_send_estimate_artifacts.sh"
- "scripts/tests/test_send_results_profile_data.sh"
- "scripts/test_estimate_submit.sh"
- "programs/**/build.sh"
- "programs/**/estimate.sh"
- "programs/**/list.csv"
- "programs/**/run.sh"
- "config/system.csv"
- "config/queue.csv"
- "config/system_info.csv"
- "requirements-result-server.txt"
- ".github/workflows/result-server-tests.yml"
push:
branches:
- "**"
paths:
- "result_server/**"
- "scripts/bk_functions.sh"
- "scripts/collect_timing.sh"
- "scripts/result.sh"
- "scripts/result_server/**"
- "scripts/estimation/**"
- "scripts/tests/test_bk_profiler.sh"
- "scripts/tests/test_estimation_gpu_kernel_ensemble_average.sh"
- "scripts/tests/test_estimation_gpu_kernel_lightgbm_v10.sh"
- "scripts/tests/test_estimation_gpu_kernel_mlp_v15.sh"
- "scripts/tests/fixtures/**"
- "scripts/tests/test_genesis_gpu_mlp_estimation.sh"
- "scripts/tests/test_result_profile_data.sh"
- "scripts/tests/test_send_estimate_artifacts.sh"
- "scripts/tests/test_send_results_profile_data.sh"
- "scripts/test_estimate_submit.sh"
- "programs/**/build.sh"
- "programs/**/estimate.sh"
- "programs/**/list.csv"
- "programs/**/run.sh"
- "config/system.csv"
- "config/queue.csv"
- "config/system_info.csv"
- "requirements-result-server.txt"
- ".github/workflows/result-server-tests.yml"
workflow_dispatch:
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.12"
- "3.13"
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: requirements-result-server.txt
- name: Install result_server test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-result-server.txt
- name: Run site configuration preflight
run: python result_server/tests/check_site_config.py
- name: Run result_server pytest suite
run: python result_server/tests/run_result_server_tests.py
profile-data-shell:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check shell test dependencies
run: |
set -euo pipefail
command -v jq
jq --version
command -v python3
python3 --version
estimation_python=""
for candidate in python3.12 python3.11 python3; do
if command -v "$candidate" >/dev/null 2>&1; then
estimation_python=$(command -v "$candidate")
break
fi
done
test -n "$estimation_python"
"$estimation_python" - <<'PY'
import sys
raise SystemExit(0 if sys.version_info >= (3, 11) else 1)
PY
- name: Run profiler, profile-data, and estimation shell tests
run: |
bash scripts/tests/test_bk_profiler.sh
bash scripts/tests/test_result_profile_data.sh
bash scripts/tests/test_send_results_profile_data.sh
bash scripts/tests/test_send_estimate_artifacts.sh
bash scripts/tests/test_estimation_gpu_kernel_ensemble_average.sh
bash scripts/tests/test_estimation_gpu_kernel_lightgbm_v10.sh
bash scripts/tests/test_estimation_gpu_kernel_mlp_v15.sh
bash scripts/tests/test_genesis_gpu_mlp_estimation.sh