You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--container-mounts with a comma-separated list is silently dropped #1169
Slurm users are used to giving several bind mounts in one --container-mounts value, separated by commas. In Spur the value is taken as a single mount spec, and when that spec is not valid it is discarded without an error. The job starts and runs, and none of the mounts are there.
Cause
--container-mounts is a plain repeatable Vec<String> with no value delimiter (crates/spur-cli/src/sbatch.rs and srun.rs), so a:a,b:b,c:c reaches the node as one string. In spurd the specs are parsed with .filter_map(|m| parse_mount(m).ok()) (crates/spurd/src/agent_server.rs, both the job launch and build_container_launch). parse_mount (crates/spurd/src/container.rs) splits on : and accepts only 2 or 3 parts, so a list of three or more mounts fails and the whole value is dropped, with no log line and no error to the user. (A list of exactly two mounts happens to have 3 parts: it bind-mounts the first source at a directory literally named /b,/c.)
The documentation lists only the single-spec form, but nothing says a list is unsupported, and the failure is silent. Repeating the flag, one mount per flag, works.
Reproduced on v0.15.0 with four comma-separated mounts; the code on main is the same.
Expected: either the comma list is split into separate mounts, or submission is rejected with an error naming the bad spec. An invalid mount spec should never be dropped without a message.
Scope note: besides the comma-separated list, any mount that cannot be parsed or applied (unknown flag, missing source, unsupported option) must fail the step with an error naming the mount, instead of being dropped. Please also support read-only mounts and a tmpfs mount. See the requirement list in #1167.
Friendly ping: this is still reproducible on current main. A comma-separated --container-mounts list is still silently dropped, and an unparsable or unapplicable mount does not fail the step. Pending: (1) accept a comma-separated list, (2) fail the step with an error naming any mount that cannot be parsed or applied, (3) read-only and tmpfs mounts, per the list in #1167. Happy to provide a minimal reproduction or test a fix if that helps.
Activity
zoroyihan7 commentedon Nov 10, 2026
Scope note: besides the comma-separated list, any mount that cannot be parsed or applied (unknown flag, missing source, unsupported option) must fail the step with an error naming the mount, instead of being dropped. Please also support read-only mounts and a tmpfs mount. See the requirement list in #1167.
zoroyihan7 commentedon Nov 18, 2026
Friendly ping: this is still reproducible on current main. A comma-separated
--container-mountslist is still silently dropped, and an unparsable or unapplicable mount does not fail the step. Pending: (1) accept a comma-separated list, (2) fail the step with an error naming any mount that cannot be parsed or applied, (3) read-only and tmpfs mounts, per the list in #1167. Happy to provide a minimal reproduction or test a fix if that helps.