forked from NVlabs/alpasim
-
Notifications
You must be signed in to change notification settings - Fork 0
542 lines (480 loc) · 21.1 KB
/
Copy pathtest.yml
File metadata and controls
542 lines (480 loc) · 21.1 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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
name: Test Stage
on:
push:
branches: [main, master, "pull-request/[0-9]+"]
workflow_dispatch:
inputs:
enable_infra_tests:
description: "Enable infra-coupled tests (docker/gpu/fake_lustre)"
required: false
default: "false"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
# Fast service-level tests that run directly in a job container.
test-services-native:
name: test-native-${{ matrix.service }}
runs-on: [self-hosted, type/docker]
container:
image: ubuntu:22.04
strategy:
fail-fast: false
matrix:
service: [grpc, runtime, wizard, tools, eval, utils]
steps:
- name: Install git for checkout
shell: bash
run: |
set -euo pipefail
apt-get update
apt-get install -y git git-lfs
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mark checkout as safe for git
shell: bash
run: |
set -euo pipefail
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Install test dependencies in job container
shell: bash
run: |
set -euo pipefail
apt-get update
apt-get install -y python3 python3-pip git-lfs
python3 -m pip install --upgrade pip setuptools wheel uv
git lfs pull --include="src/${{ matrix.service }}/tests/**/*" || true
- name: Compile gRPC protos
shell: bash
run: |
set -euo pipefail
cd src/grpc
uv sync
uv run compile-protos
- name: Run ${{ matrix.service }} tests
shell: bash
run: |
set -euo pipefail
cd "src/${{ matrix.service }}"
uv sync --all-extras
set +e
uv run --all-extras pytest -vvs --tb=short
status=$?
set -e
if [[ $status -eq 5 ]]; then
echo "No tests collected for ${{ matrix.service }}; treating as success."
exit 0
fi
exit $status
# Equivalent to GitLab test-services-in-docker.
# Runs automatically on PR/push. On manual runs, can be disabled via input.
test-services-in-docker:
if: ${{ github.event_name != 'workflow_dispatch' || inputs.enable_infra_tests == 'true' }}
name: test-docker-${{ matrix.service }}
runs-on: [self-hosted, type/docker, type/gpu]
# Docker socket mount lets this job drive sibling containers from inside
# the CI container ("Docker-outside-of-Docker" style).
container:
image: ubuntu:22.04
options: >-
--gpus all
-v /var/run/docker.sock:/var/run/docker.sock
strategy:
fail-fast: false
matrix:
service: [physics, controller, driver]
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
steps:
- name: Install git for checkout
shell: bash
run: |
set -euo pipefail
apt-get update
apt-get install -y git git-lfs
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mark checkout as safe for git
shell: bash
run: |
set -euo pipefail
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Install dependencies in job container
shell: bash
run: |
set -euo pipefail
apt-get update
apt-get install -y python3 python3-pip git-lfs ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
. /etc/os-release
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu ${VERSION_CODENAME} stable" \
> /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
docker compose version
python3 -m pip install --upgrade pip setuptools wheel uv
- name: Compute source/image
id: plan
shell: bash
run: |
set -euo pipefail
SERVICE="${{ matrix.service }}"
BASE_SHA="${{ github.event.before }}"
HEAD_SHA="${{ github.sha }}"
CHANGED_FILES="$(bash ./.github/scripts/changed-files.sh \
"${{ github.event_name }}" \
"${BASE_SHA}" \
"${HEAD_SHA}" \
"${{ github.event.repository.default_branch }}")"
# Build only when service source changed; otherwise this stage is a no-op.
SOURCE="stable"
if echo "${CHANGED_FILES}" | grep -Eq "^src/${SERVICE}/"; then
SOURCE="build"
fi
SHORT_SHA="$(echo "${{ github.sha }}" | cut -c1-8)"
TAG="pr-${SHORT_SHA}"
if [[ "${{ github.event_name }}" == "push" && "${{ github.ref_name }}" == "${DEFAULT_BRANCH}" ]]; then
TAG="release-${SHORT_SHA}"
fi
IMAGE="alpasim-${SERVICE}:${TAG}"
echo "source=${SOURCE}" >> "${GITHUB_OUTPUT}"
echo "image=${IMAGE}" >> "${GITHUB_OUTPUT}"
- name: Skip non-build sources
if: steps.plan.outputs.source != 'build'
run: |
echo "Skipping ${{ matrix.service }} (source=${{ steps.plan.outputs.source }})"
- name: Build service image
if: steps.plan.outputs.source == 'build'
shell: bash
run: |
set -euo pipefail
SERVICE="${{ matrix.service }}"
IMAGE="${{ steps.plan.outputs.image }}"
LOG_DIR="${GITHUB_WORKSPACE}/wizard_logs"
git lfs pull --include="src/**/*" || true
cd "${GITHUB_WORKSPACE}/src/wizard"
uv sync
uv run alpasim_wizard \
deploy=docker_build_only \
topology=1gpu \
driver=vavam \
services.${SERVICE}.image=${IMAGE} \
wizard.log_dir=${LOG_DIR}
cd "${GITHUB_WORKSPACE}"
# Build just this service image from the generated compose file.
docker compose -f "${LOG_DIR}/docker-compose.yaml" build "${SERVICE}-0"
- name: Run tests in docker container
if: steps.plan.outputs.source == 'build'
shell: bash
run: |
set -euo pipefail
SERVICE="${{ matrix.service }}"
IMAGE="${{ steps.plan.outputs.image }}"
PYTEST_OPTS="-vvs --tb=short"
set +e
docker run --rm --gpus all --entrypoint bash "${IMAGE}" -c \
"cd /repo/src/${SERVICE} && uv sync --all-extras && uv run pytest ${PYTEST_OPTS}"
status=$?
set -e
if [[ $status -eq 5 ]]; then
echo "No tests collected for ${SERVICE}; treating as success."
exit 0
fi
exit $status
# Equivalent to GitLab test-docker-compose (requires storage/fake_lustre).
# This must run only on runners that provide the fake lustre mount.
test-docker-compose:
if: ${{ github.event_name != 'workflow_dispatch' || inputs.enable_infra_tests == 'true' }}
name: test-docker-compose-${{ matrix.variant }}
runs-on: [self-hosted, type/docker, type/gpu, storage/fake_lustre]
timeout-minutes: 120
# Compose commands run inside this job container but target the host
# Docker daemon and host fake_lustre mount.
container:
image: ubuntu:22.04
options: >-
--gpus all
-v /var/run/docker.sock:/var/run/docker.sock
-v /raid/fake_lustre:/lustre
strategy:
fail-fast: false
matrix:
variant: [docker_oss]
env:
OUTPUT_PATH: /lustre/output/${{ github.run_id }}-${{ github.run_attempt }}
LOCAL_OUTPUT_PATH: /lustre/output/${{ github.run_id }}-${{ github.run_attempt }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HUGGINGFACE_HUB_TOKEN: ${{ secrets.HF_TOKEN }}
steps:
- name: Install git for checkout
shell: bash
run: |
set -euo pipefail
apt-get update
apt-get install -y git git-lfs
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies in job container
shell: bash
run: |
set -euo pipefail
apt-get update
apt-get install -y python3 python3-pip git-lfs ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
. /etc/os-release
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu ${VERSION_CODENAME} stable" \
> /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
docker compose version
python3 -m pip install --upgrade pip setuptools wheel uv
- name: Verify Hugging Face token is available
shell: bash
run: |
set -euo pipefail
if [[ -z "${HF_TOKEN:-}" ]]; then
echo "HF_TOKEN is not available in this workflow context."
echo "If this is a trusted branch in the main repo, verify repo/org secret configuration."
echo "If this is an untrusted context (e.g. fork), GitHub will not expose secrets."
exit 1
fi
- name: Validate fake_lustre mount
shell: bash
run: |
set -euo pipefail
test -d /lustre
docker run --rm -v /lustre:/lustre alpine sh -c 'test -d /lustre && echo fake_lustre_mount_ok'
- name: Generate and validate docker compose config
shell: bash
run: |
set -euo pipefail
mkdir -p \
"${LOCAL_OUTPUT_PATH}" \
"${LOCAL_OUTPUT_PATH}/data" \
"${LOCAL_OUTPUT_PATH}/data/drivers" \
"${LOCAL_OUTPUT_PATH}/data/alpackages" \
"${LOCAL_OUTPUT_PATH}/data/nre-artifacts" \
"${LOCAL_OUTPUT_PATH}/data/nre-artifacts/ego-hoods" \
"${LOCAL_OUTPUT_PATH}/data/trafficsim/unified_data_cache" \
"${LOCAL_OUTPUT_PATH}/data/huggingface" \
"${LOCAL_OUTPUT_PATH}/src" \
"${LOCAL_OUTPUT_PATH}/plugins"
# Match local smoke setup: ensure VaVAM assets exist for OSS driver.
bash "${GITHUB_WORKSPACE}/data/download_vavam_assets.sh" --model VaVAM-B
if [[ -d "${GITHUB_WORKSPACE}/data/drivers" ]]; then
cp -r "${GITHUB_WORKSPACE}/data/drivers/." "${LOCAL_OUTPUT_PATH}/data/drivers/" || true
fi
if [[ -d "${GITHUB_WORKSPACE}/data/nre-artifacts/ego-hoods" ]]; then
cp -r "${GITHUB_WORKSPACE}/data/nre-artifacts/ego-hoods" "${LOCAL_OUTPUT_PATH}/data/nre-artifacts/" || true
fi
if [[ -d "${GITHUB_WORKSPACE}/src" ]]; then
cp -r "${GITHUB_WORKSPACE}/src/." "${LOCAL_OUTPUT_PATH}/src/" || true
fi
if [[ -d "${GITHUB_WORKSPACE}/plugins" ]]; then
cp -r "${GITHUB_WORKSPACE}/plugins/." "${LOCAL_OUTPUT_PATH}/plugins/" || true
fi
# Compose mounts the copied src tree; generate grpc python files there.
cd "${LOCAL_OUTPUT_PATH}/src/grpc"
uv sync
uv run compile-protos
cd "${GITHUB_WORKSPACE}/src/wizard"
uv sync
# CI runners may expose only one GPU; pin all GPU-backed services to GPU 0.
HF_HOME="${LOCAL_OUTPUT_PATH}/data/huggingface" uv run alpasim_wizard \
deploy=local \
topology=1gpu \
driver=vavam \
wizard.log_dir="${LOCAL_OUTPUT_PATH}" \
wizard.run_method=NONE \
defines.filesystem="${LOCAL_OUTPUT_PATH}/data" \
services.driver.workdir=/repo/src/driver \
services.physics.workdir=/repo/src/physics \
services.runtime.workdir=/repo/src/runtime \
services.controller.workdir=/repo/src/controller \
services.renderer.gpus=[0] \
services.physics.gpus=[0] \
services.driver.gpus=[0]
test -f "${LOCAL_OUTPUT_PATH}/docker-compose.yaml"
# In Docker-socket mode, compose mounts must use host-visible paths.
# The wizard generates local paths first, then we rewrite to host paths.
REPO_ROOT_SRC="$(realpath "${GITHUB_WORKSPACE}/src")"
sed -i "s|${LOCAL_OUTPUT_PATH}|${OUTPUT_PATH}|g" "${LOCAL_OUTPUT_PATH}/docker-compose.yaml"
sed -i "s|${REPO_ROOT_SRC}|${OUTPUT_PATH}/src|g" "${LOCAL_OUTPUT_PATH}/docker-compose.yaml"
if [[ -d "${GITHUB_WORKSPACE}/plugins" ]]; then
REPO_ROOT_PLUGINS="$(realpath "${GITHUB_WORKSPACE}/plugins")"
sed -i "s|${REPO_ROOT_PLUGINS}|${OUTPUT_PATH}/plugins|g" "${LOCAL_OUTPUT_PATH}/docker-compose.yaml"
fi
docker compose -f "${LOCAL_OUTPUT_PATH}/docker-compose.yaml" config >/dev/null
echo "docker compose configuration validated for ${{ matrix.variant }}"
- name: Run docker compose integration stack
shell: bash
run: |
set -euo pipefail
PROJECT="gha-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${{ matrix.variant }}"
echo "Using compose project: ${PROJECT}"
cd "${LOCAL_OUTPUT_PATH}"
# runtime-0 is the one-shot service; backing services are long-running.
docker compose -f docker-compose.yaml --project-name "${PROJECT}" up --build --exit-code-from runtime-0 --remove-orphans
- name: Collect compose logs and tear down
if: always()
shell: bash
run: |
set +e
PROJECT="gha-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${{ matrix.variant }}"
LOG_DIR="${LOCAL_OUTPUT_PATH}/txt-logs"
mkdir -p "${LOG_DIR}"
cd "${LOCAL_OUTPUT_PATH}" || exit 0
# Always collect service logs to simplify failure triage.
services="$(docker compose -f docker-compose.yaml --project-name "${PROJECT}" ps --services 2>/dev/null)"
for service in ${services}; do
docker compose -f docker-compose.yaml --project-name "${PROJECT}" logs --no-color "${service}" > "${LOG_DIR}/${service}.log" 2>&1 || true
done
docker compose -f docker-compose.yaml --project-name "${PROJECT}" down -v --remove-orphans || true
# Tutorial smoke test (OSS only): generate tutorial-style compose and run core sim services.
test-tutorial-smoke:
if: ${{ github.event_name != 'workflow_dispatch' || inputs.enable_infra_tests == 'true' }}
name: test-tutorial-smoke
runs-on: [self-hosted, type/docker, type/gpu, storage/fake_lustre]
timeout-minutes: 120
# Same host daemon/mount strategy as docker-compose integration job.
container:
image: ubuntu:22.04
options: >-
--gpus all
-v /var/run/docker.sock:/var/run/docker.sock
-v /raid/fake_lustre:/lustre
env:
OUTPUT_PATH: /lustre/output/${{ github.run_id }}-${{ github.run_attempt }}-tutorial
LOCAL_OUTPUT_PATH: /lustre/output/${{ github.run_id }}-${{ github.run_attempt }}-tutorial
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HUGGINGFACE_HUB_TOKEN: ${{ secrets.HF_TOKEN }}
steps:
- name: Install git for checkout
shell: bash
run: |
set -euo pipefail
apt-get update
apt-get install -y git git-lfs
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies in job container
shell: bash
run: |
set -euo pipefail
apt-get update
apt-get install -y python3 python3-pip git-lfs ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
. /etc/os-release
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu ${VERSION_CODENAME} stable" \
> /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
docker compose version
python3 -m pip install --upgrade pip setuptools wheel uv
- name: Verify Hugging Face token is available
shell: bash
run: |
set -euo pipefail
if [[ -z "${HF_TOKEN:-}" ]]; then
echo "HF_TOKEN is not available in this workflow context."
exit 1
fi
- name: Validate fake_lustre mount
shell: bash
run: |
set -euo pipefail
test -d /lustre
docker run --rm -v /lustre:/lustre alpine sh -c 'test -d /lustre && echo fake_lustre_mount_ok'
- name: Generate tutorial compose config
shell: bash
run: |
set -euo pipefail
mkdir -p \
"${LOCAL_OUTPUT_PATH}" \
"${LOCAL_OUTPUT_PATH}/data/drivers" \
"${LOCAL_OUTPUT_PATH}/data/alpackages" \
"${LOCAL_OUTPUT_PATH}/data/nre-artifacts/ego-hoods" \
"${LOCAL_OUTPUT_PATH}/data/trafficsim/unified_data_cache" \
"${LOCAL_OUTPUT_PATH}/data/huggingface" \
"${LOCAL_OUTPUT_PATH}/src" \
"${LOCAL_OUTPUT_PATH}/plugins"
# Match local smoke setup: ensure VaVAM assets exist for OSS driver.
bash "${GITHUB_WORKSPACE}/data/download_vavam_assets.sh" --model VaVAM-B
if [[ -d "${GITHUB_WORKSPACE}/data/drivers" ]]; then
cp -r "${GITHUB_WORKSPACE}/data/drivers/." "${LOCAL_OUTPUT_PATH}/data/drivers/" || true
fi
if [[ -d "${GITHUB_WORKSPACE}/data/nre-artifacts/ego-hoods" ]]; then
cp -r "${GITHUB_WORKSPACE}/data/nre-artifacts/ego-hoods" "${LOCAL_OUTPUT_PATH}/data/nre-artifacts/" || true
fi
if [[ -d "${GITHUB_WORKSPACE}/src" ]]; then
cp -r "${GITHUB_WORKSPACE}/src/." "${LOCAL_OUTPUT_PATH}/src/" || true
fi
if [[ -d "${GITHUB_WORKSPACE}/plugins" ]]; then
cp -r "${GITHUB_WORKSPACE}/plugins/." "${LOCAL_OUTPUT_PATH}/plugins/" || true
fi
# Compose mounts the copied src tree; generate grpc python files there.
cd "${LOCAL_OUTPUT_PATH}/src/grpc"
uv sync
uv run compile-protos
cd "${GITHUB_WORKSPACE}/src/wizard"
uv sync
HF_HOME="${LOCAL_OUTPUT_PATH}/data/huggingface" uv run alpasim_wizard \
deploy=local \
topology=1gpu \
driver=vavam \
wizard.log_dir="${LOCAL_OUTPUT_PATH}" \
wizard.run_method=NONE \
defines.filesystem="${LOCAL_OUTPUT_PATH}/data" \
services.driver.workdir=/repo/src/driver \
services.physics.workdir=/repo/src/physics \
services.runtime.workdir=/repo/src/runtime \
services.controller.workdir=/repo/src/controller \
runtime.simulation_config.n_rollouts=1 \
runtime.simulation_config.n_sim_steps=60
test -f "${LOCAL_OUTPUT_PATH}/docker-compose.yaml"
test -f "${LOCAL_OUTPUT_PATH}/generated-user-config-0.yaml"
REPO_ROOT_SRC="$(realpath "${GITHUB_WORKSPACE}/src")"
sed -i "s|${LOCAL_OUTPUT_PATH}|${OUTPUT_PATH}|g" "${LOCAL_OUTPUT_PATH}/docker-compose.yaml"
sed -i "s|${REPO_ROOT_SRC}|${OUTPUT_PATH}/src|g" "${LOCAL_OUTPUT_PATH}/docker-compose.yaml"
if [[ -d "${GITHUB_WORKSPACE}/plugins" ]]; then
REPO_ROOT_PLUGINS="$(realpath "${GITHUB_WORKSPACE}/plugins")"
sed -i "s|${REPO_ROOT_PLUGINS}|${OUTPUT_PATH}/plugins|g" "${LOCAL_OUTPUT_PATH}/docker-compose.yaml"
fi
docker compose -f "${LOCAL_OUTPUT_PATH}/docker-compose.yaml" config >/dev/null
- name: Run tutorial compose stack
shell: bash
run: |
set -euo pipefail
PROJECT="gha-tutorial-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
cd "${LOCAL_OUTPUT_PATH}"
# Tutorial smoke intentionally scopes to core sim services; runtime-0 owns shutdown.
docker compose -f docker-compose.yaml --project-name "${PROJECT}" --profile sim up --build --exit-code-from runtime-0 --remove-orphans runtime-0 driver-0 physics-0 renderer-0 controller-0
- name: Collect tutorial logs and tear down
if: always()
shell: bash
run: |
set +e
PROJECT="gha-tutorial-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
LOG_DIR="${LOCAL_OUTPUT_PATH}/txt-logs"
mkdir -p "${LOG_DIR}"
cd "${LOCAL_OUTPUT_PATH}" || exit 0
services="$(docker compose -f docker-compose.yaml --project-name "${PROJECT}" ps --services 2>/dev/null)"
for service in ${services}; do
docker compose -f docker-compose.yaml --project-name "${PROJECT}" logs --no-color "${service}" > "${LOG_DIR}/${service}.log" 2>&1 || true
done
docker compose -f docker-compose.yaml --project-name "${PROJECT}" down -v --remove-orphans || true