verification/ out of the package; ISSSTELEÓN check; a Dask-level task failure is an error row
- 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.
This commit is contained in:
+8
-3
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build, push and run the tea-verify DaskJob for the current commit.
|
||||
# deploy/verify.sh build + push + apply
|
||||
# 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
|
||||
@@ -9,6 +10,9 @@ 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
|
||||
@@ -17,5 +21,6 @@ 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 "s/tea-verify:COMMIT/tea-verify:$C/g" deploy/dask-verify.yaml | kubectl apply -f -
|
||||
echo "applied tea-verify:$C — follow with: deploy/verify.sh --logs"
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user