0e942e04c1
- verification/ (hk1k, issste, common) moved out of src/: not in the wheel; the image imports it with PYTHONPATH=/opt/tea-modulo. - python -m verification issste: every biomarker, legacy and modern, on processed/eeg-edf-2025|2026; age from the EDF header inside the task; group numbers only (file names, paths, dates and rows stay in the job). - Pipeline.map (Dask): a task that dies (KilledWorker) becomes an error row instead of stopping the batch. - deploy/verify.sh [hk1k|issste]; issste uses 3 workers x 6 GiB per pod.
27 lines
1.3 KiB
Bash
Executable File
27 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build, push and run the tea-verify DaskJob for the current commit.
|
|
# deploy/verify.sh [hk1k] build + push + apply: tests + HK1K check
|
|
# deploy/verify.sh issste build + push + apply: ISSSTELEÓN check (group numbers only)
|
|
# deploy/verify.sh --logs follow the job pod's log
|
|
# deploy/verify.sh --delete remove the DaskJob
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
REG=192.168.20.18:5000
|
|
case "${1:-}" in
|
|
--logs) exec kubectl logs -f tea-verify-runner ;;
|
|
--delete) exec kubectl delete daskjob tea-verify --ignore-not-found ;;
|
|
""|hk1k) CHECK=hk1k; NW=4; MEM=4.25GiB ;;
|
|
issste) CHECK=issste; NW=3; MEM=6GiB ;;
|
|
*) echo "usage: deploy/verify.sh [hk1k|issste|--logs|--delete]" >&2; exit 2 ;;
|
|
esac
|
|
if [ -n "$(git status --porcelain --ignore-submodules=none)" ]; then
|
|
echo "uncommitted changes: commit first, so the image tag is a real commit" >&2; exit 1
|
|
fi
|
|
C=$(git rev-parse --short HEAD)
|
|
docker build -f deploy/Dockerfile.verify --build-arg TEA_COMMIT="$C" -t "$REG/tea-verify:$C" .
|
|
docker push "$REG/tea-verify:$C"
|
|
kubectl delete daskjob tea-verify --ignore-not-found
|
|
sed -e "s/tea-verify:COMMIT/tea-verify:$C/g" -e "s/CHECK/$CHECK/g" -e "s/NWORKERS/$NW/g" \
|
|
-e "s/MEMLIMIT/$MEM/g" deploy/dask-verify.yaml | kubectl apply -f -
|
|
echo "applied tea-verify:$C ($CHECK) — follow with: deploy/verify.sh --logs"
|