Repository navigation
228 lines (194 loc) · 8.05 KB
/
Copy pathalgorithm_validation_tests.yml
File metadata and controls
228 lines (194 loc) · 8.05 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
name: Algorithm Validation Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
run_tests_in_one_node:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
with:
version: "0.13.5"
enable-cache: true
# Deployed services keep the uv cache locked; pruning would time out.
prune-cache: false
- name: Install dependencies
run: uv sync --locked --all-groups --no-install-project
- name: Copy .deployment.toml file
run: cp ./tests/algorithm_validation_tests/one_node_deployment_template.toml .deployment.toml
- name: Create config files
run: uv run --no-sync inv create-configs
- name: Deploy all api
run: uv run --no-sync inv deploy --no-install-dep
- name: Controller logs
run: cat /tmp/exaflow/controller.out
- name: Globalworker logs
run: cat /tmp/exaflow/globalworker.out
- name: Localworker logs
run: cat /tmp/exaflow/localworker1.out
- name: Controller logs (post run)
uses: webiny/action-post-run@2a0e96f0e55f0e698cf2a3d85670e3577ae30a30 # 3.1.0
with:
run: cat /tmp/exaflow/controller.out
- name: Globalworker logs (post run)
uses: webiny/action-post-run@2a0e96f0e55f0e698cf2a3d85670e3577ae30a30 # 3.1.0
with:
run: cat /tmp/exaflow/globalworker.out
- name: Localworker logs (post run)
uses: webiny/action-post-run@2a0e96f0e55f0e698cf2a3d85670e3577ae30a30 # 3.1.0
with:
run: cat /tmp/exaflow/localworker1.out
# Flower tests disabled pending MIP-1203.
# - name: Run Flower algorithm validation tests (with resource summary)
# run: |
# set -o pipefail
# eval "$(python3 .github/scripts/cgroup_snapshot.py)"
# TIME_LOG=$(mktemp)
# set +e
# /usr/bin/time -v -o "$TIME_LOG" uv run --no-sync pytest tests/algorithm_validation_tests/flower/ \
# --verbosity=4 \
# -n 2 \
# --reruns 6 \
# --reruns-delay 5
# TEST_EXIT_CODE=$?
# set -e
# REPORT_ARGS=(--title "Flower algorithm validation (1 node)")
# if [ -n "${CGROUP_BASELINE_CURRENT:-}" ]; then
# REPORT_ARGS+=(--baseline-runner-current "$CGROUP_BASELINE_CURRENT")
# fi
# if [ -n "${CGROUP_BASELINE_PEAK:-}" ]; then
# REPORT_ARGS+=(--baseline-runner-peak "$CGROUP_BASELINE_PEAK")
# fi
# python3 .github/scripts/report_time_stats.py "$TIME_LOG" "${REPORT_ARGS[@]}"
# cat "$TIME_LOG"
# exit $TEST_EXIT_CODE
- name: Run Exaflow algorithm validation tests (with resource summary)
run: |
set -o pipefail
eval "$(python3 .github/scripts/cgroup_snapshot.py)"
TIME_LOG=$(mktemp)
set +e
/usr/bin/time -v -o "$TIME_LOG" uv run --no-sync pytest tests/algorithm_validation_tests/exareme3 \
--verbosity=4 \
-n 16
TEST_EXIT_CODE=$?
set -e
REPORT_ARGS=(--title "Exaflow algorithm validation (1 node)")
if [ -n "${CGROUP_BASELINE_CURRENT:-}" ]; then
REPORT_ARGS+=(--baseline-runner-current "$CGROUP_BASELINE_CURRENT")
fi
if [ -n "${CGROUP_BASELINE_PEAK:-}" ]; then
REPORT_ARGS+=(--baseline-runner-peak "$CGROUP_BASELINE_PEAK")
fi
python3 .github/scripts/report_time_stats.py "$TIME_LOG" "${REPORT_ARGS[@]}"
cat "$TIME_LOG"
exit $TEST_EXIT_CODE
run_tests_in_five_nodes:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
with:
version: "0.13.5"
enable-cache: true
# Deployed services keep the uv cache locked; pruning would time out.
prune-cache: false
- name: Install dependencies
run: uv sync --locked --all-groups --no-install-project
- name: Copy .deployment.toml file
run: cp ./tests/algorithm_validation_tests/five_node_deployment_template.toml .deployment.toml
- name: Create config files
run: uv run --no-sync inv create-configs
- name: Deploy all api
run: uv run --no-sync inv deploy --no-install-dep
- name: Controller logs
run: cat /tmp/exaflow/controller.out
- name: Aggregation Server logs
run: cat /tmp/exaflow/aggregation_server.out
- name: Globalworker logs
run: cat /tmp/exaflow/globalworker.out
- name: Localworker logs
run: cat /tmp/exaflow/localworker1.out
- name: Controller logs (post run)
uses: webiny/action-post-run@2a0e96f0e55f0e698cf2a3d85670e3577ae30a30 # 3.1.0
with:
run: cat /tmp/exaflow/controller.out
- name: Globalworker logs (post run)
uses: webiny/action-post-run@2a0e96f0e55f0e698cf2a3d85670e3577ae30a30 # 3.1.0
with:
run: cat /tmp/exaflow/globalworker.out
- name: Localworker logs (post run)
uses: webiny/action-post-run@2a0e96f0e55f0e698cf2a3d85670e3577ae30a30 # 3.1.0
with:
run: cat /tmp/exaflow/localworker1.out
- name: Run Exaflow algorithm validation tests (with resource summary)
run: |
set -o pipefail
eval "$(python3 .github/scripts/cgroup_snapshot.py)"
TIME_LOG=$(mktemp)
set +e
/usr/bin/time -v -o "$TIME_LOG" uv run --no-sync pytest tests/algorithm_validation_tests/exareme3/ \
--verbosity=4 \
-n 16 \
-k "input1 and not input1-" # run tests 10-19
TEST_EXIT_CODE=$?
set -e
REPORT_ARGS=(--title "Exaflow algorithm validation (5 nodes)")
if [ -n "${CGROUP_BASELINE_CURRENT:-}" ]; then
REPORT_ARGS+=(--baseline-runner-current "$CGROUP_BASELINE_CURRENT")
fi
if [ -n "${CGROUP_BASELINE_PEAK:-}" ]; then
REPORT_ARGS+=(--baseline-runner-peak "$CGROUP_BASELINE_PEAK")
fi
python3 .github/scripts/report_time_stats.py "$TIME_LOG" "${REPORT_ARGS[@]}"
cat "$TIME_LOG"
exit $TEST_EXIT_CODE
# Flower tests disabled pending MIP-1203.
# - name: Run Flower algorithm validation tests (with resource summary)
# run: |
# set -o pipefail
# eval "$(python3 .github/scripts/cgroup_snapshot.py)"
# TIME_LOG=$(mktemp)
# set +e
# /usr/bin/time -v -o "$TIME_LOG" uv run --no-sync pytest tests/algorithm_validation_tests/flower \
# -n 2 \
# --verbosity=4 \
# --reruns=6 \
# --reruns-delay=5 \
# -k 'not mnist'
# TEST_EXIT_CODE=$?
# set -e
# REPORT_ARGS=(--title "Flower algorithm validation (5 nodes)")
# if [ -n "${CGROUP_BASELINE_CURRENT:-}" ]; then
# REPORT_ARGS+=(--baseline-runner-current "$CGROUP_BASELINE_CURRENT")
# fi
# if [ -n "${CGROUP_BASELINE_PEAK:-}" ]; then
# REPORT_ARGS+=(--baseline-runner-peak "$CGROUP_BASELINE_PEAK")
# fi
# python3 .github/scripts/report_time_stats.py "$TIME_LOG" "${REPORT_ARGS[@]}"
# cat "$TIME_LOG"
# exit $TEST_EXIT_CODE