Repository navigation
fix(STAMP docker.sh): stop on the host when a STAMP_* data path is not under --data_dir - #675
Merged
Merged
Conversation
…t under --data_dir --start_client, --preflight_check and --local_training now map STAMP_CLINI_TABLE, STAMP_SLIDE_TABLE (when set) and STAMP_FEATURE_DIR from /data/... to the host folder given as --data_dir and check that each exists (file for the tables, folder for the features) before any container or live_sync starts. A miss names the variable, the container path, the host path and the --data_dir used, and exits 1. A value that is not under /data gets a warning and the start goes on. On 26 Nov 2026 a site started its client with another --data_dir than its preflight; the swarm job died with FileNotFoundError on STAMP_SLIDE_TABLE and the strict 4-site run aborted 600 s later (NVFlare external_pre_init_timeout). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The STAMP_* data paths are container paths:
--data_dir HOSTis mounted at/data. On 26 Nov 2026 a site started its client with a different--data_dirthan the one its preflight check used. The swarm's training subprocess then died withFileNotFoundError: STAMP_SLIDE_TABLE is set but the file does not exist: /data/<SITE>/slide_table.csv. Because the DECADE benchmark is strict, the whole 4-site test run aborted 600 s later (NVFlareexternal_pre_init_timeout), when it should have failed at that one site's start.Until now the kit only checked that
STAMP_CLINI_TABLEandSTAMP_FEATURE_DIRwere set.What
The change is in
docker_config/master_template_STAMP.ymlonly. For--start_client,--preflight_checkand--local_training, right after the existing "missing STAMP_* variable" check:STAMP_CLINI_TABLE,STAMP_SLIDE_TABLE(only when set) andSTAMP_FEATURE_DIR. A value under/data/...is mapped to the same path under the--data_dirgiven (made absolute the same way as for the mount). The script then checks that the path exists: a file for the two tables, a folder for the features.[FAIL]line with the container path and the host path it maps to. A footer then gives the--data_dirused and says so if that folder itself is missing. The fix shown is "Start with the same --data_dir as your preflight check" for--start_client/--local_training; for--preflight_checkit asks for the--data_dirthat holds the data. The script then exits 1, before the image pull, the pre-run checks, live_sync or any container./datagets a[WARN], and the start goes on (it could live somewhere else on purpose).--start_clientstill returns early as before. That happens before this check, so the running client is left alone.Example (client started with another
--data_dir):ODELIA's
master_template.ymland the shared docs are unchanged (a parallel ODELIA session works on them).Tests
tests/unit_tests/test_stamp_docker_sh_kit.py(renders the template on the stub host). The fixture now creates the filesSTAMP_ENVpoints to under the stub--data_dir. New cases:--data_dirnamed, nothing started)--data_dirthan the preflight (every missing path listed,--data_dirnamed once)--data_dirthat does not exist; the preflight wording--data_dir(resolved from the kit'sstartup/, like the mount)STAMP_SLIDE_TABLEstill forwarded)/data(warns, the preflight still runs)The 9 failure-path tests fail on
main's template and pass with this change. Locally:test_stamp_*,test_docker_sh_*, template parity, handbook, kit-tools, deploy-harness and entrypoint tests: 273 passed, 1 xfailed.No kits were built and no images were pushed. Partner kits get this with the next DECADE kit build.
🤖 Generated with Claude Code