Skip to content

fix(STAMP docker.sh): stop on the host when a STAMP_* data path is not under --data_dir - #675

Merged
Ultimate-Storm merged 1 commit into
mainfrom
claude/hungry-sanderson-e41560
Nov 27, 2026
Merged

Ultimate-Storm merged 1 commit into
mainfrom
claude/hungry-sanderson-e41560

Conversation

@Ultimate-Storm

Copy link
Copy Markdown
Contributor

Why

The STAMP_* data paths are container paths: --data_dir HOST is mounted at /data. On 26 Nov 2026 a site started its client with a different --data_dir than the one its preflight check used. The swarm's training subprocess then died with FileNotFoundError: 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 (NVFlare external_pre_init_timeout), when it should have failed at that one site's start.

Until now the kit only checked that STAMP_CLINI_TABLE and STAMP_FEATURE_DIR were set.

What

The change is in docker_config/master_template_STAMP.yml only. For --start_client, --preflight_check and --local_training, right after the existing "missing STAMP_* variable" check:

  • It checks STAMP_CLINI_TABLE, STAMP_SLIDE_TABLE (only when set) and STAMP_FEATURE_DIR. A value under /data/... is mapped to the same path under the --data_dir given (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.
  • On a miss, each failing variable gets a [FAIL] line with the container path and the host path it maps to. A footer then gives the --data_dir used 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_check it asks for the --data_dir that holds the data. The script then exits 1, before the image pull, the pre-run checks, live_sync or any container.
  • A value that is not under /data gets a [WARN], and the start goes on (it could live somewhere else on purpose).
  • If this kit's own client is already running, --start_client still returns early as before. That happens before this check, so the running client is left alone.

Example (client started with another --data_dir):

[FAIL] STAMP_SLIDE_TABLE: file not found.
       Path in the container:  /data/SITE_1/slide_table.csv
       Path on this computer:  /home/user/other_data/SITE_1/slide_table.csv

   --data_dir used:  /home/user/other_data   (mounted at /data in the container)
   Start with the same --data_dir as your preflight check, or correct the STAMP_* path above.
[ABORT] Nothing was started.

ODELIA's master_template.yml and 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 files STAMP_ENV points to under the stub --data_dir. New cases:

  • missing slide table, for each of the three modes (exit 1, both paths and the --data_dir named, nothing started)
  • another --data_dir than the preflight (every missing path listed, --data_dir named once)
  • a --data_dir that does not exist; the preflight wording
  • a relative --data_dir (resolved from the kit's startup/, like the mount)
  • a table that is a folder, and features that are a file
  • all paths present, for each mode (starts as before, STAMP_SLIDE_TABLE still forwarded)
  • a path not under /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

…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>
@Ultimate-Storm
Ultimate-Storm merged commit a033b7a into main Nov 27, 2026
6 of 7 checks passed
@Ultimate-Storm
Ultimate-Storm deleted the claude/hungry-sanderson-e41560 branch November 27, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants