Repository navigation
fix: remove the container passthrough added in 0.3.0 — it cannot work - #17
Merged
Merged
Conversation
Routing a rule's container: to spec.container is architecturally wrong for this
adapter. spec.command here is a Snakemake RE-INVOCATION (format_job_exec ->
python -m snakemake --mode remote ...), not the rule's shell. So setting
spec.container ran Snakemake inside the science image, which for a single-tool
bioconda image means no Snakemake, no storage plugin, no dnf, no sudo and no
root.
Confirmed on a real pinned arm64 image:
snakemake-spawn: python3.11 install failed -> rc=1
docker: invalid reference format -> rc=125 (docker:// left on)
This should not have shipped, and the reason is mine. The reporter retracted the
suggestion on #12 at 01:13Z with "Don't do that — it cannot work with this
adapter's architecture, and I'd rather say so before someone implements it",
then at 01:17Z opened PR #14 containing ONLY the half that works, then withdrew
that PR at 01:33Z. I opened PR #15 at 01:55Z — 42 minutes after the retraction —
implementing both halves including the retracted one, merged it, released it as
v0.3.0, and closed an issue they had asked to keep open for part 1.
I read the issue BODY and never the comments or the repo's open PRs. Verifying an
issue's claims against the code is not sufficient; the thread can already contain
the answer, and here it contained an explicit instruction not to do what I did.
Removed rather than caveated: advertising a setting that cannot work reads as a
supported feature. tests/test_no_container_passthrough.py fails if either the
build_task_spec argument or the --spawn-container setting returns, with the
reasoning inline so it is not re-added as an obvious one-field fix.
--spawn-cost-limit is untouched. That half was correct, is wanted, and was the
half the reporter had already split out.
MINOR (0.4.0), not PATCH: a setting that was advertised is being withdrawn. It
never functioned, so nothing can depend on its behaviour, but it was documented.
The shape that can work is #16: Snakemake already forwards
--software-deployment-method to the node and intends to own containerisation
itself; the node only lacks a runtime, and apptainer's el9 aarch64 RPMs install
on AL2023 and are pinnable. That needs the two decisions the reporter asked for
and is not a patch.
Refs #16
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.
Refs #16. Removes the
container:passthrough and--spawn-containerthat shipped in 0.3.0, because they cannot work.Why it cannot work
spec.commandin this adapter is a Snakemake re-invocation —format_job_exec→python -m snakemake --mode remote …— not the rule's shell. So settingspec.containerran Snakemake inside the science image. For a single-tool bioconda image that means no Snakemake, no storage plugin, nodnf, nosudo, and no root.Confirmed on a real pinned arm64 image:
This should not have shipped, and that is on me
The timeline is unambiguous:
cost_limit)I read the issue body and never its comments, nor the repo's open PRs. Verifying an issue's claims against the code — which I did — is not sufficient when the thread already contains the answer. Here it contained an explicit instruction not to do what I did, plus a correctly-scoped PR doing the half that was safe.
I also wrongly resolved issue 12, which that same comment had asked to keep open for part 1. (Phrasing this without the word GitHub treats as a closing keyword, because it would close it again from this PR.)
Removed, not caveated
Advertising a setting that cannot work reads as a supported feature.
tests/test_no_container_passthrough.pyfails if either thebuild_task_specargument or the--spawn-containersetting returns, with the reasoning inline — it would otherwise come back as an obvious one-field fix, which is exactly how it arrived.--spawn-cost-limitis untouched: that half is correct, wanted, and was already split out by the reporter.Version
0.4.0 (MINOR), not a patch: a documented setting is being withdrawn. It never functioned, so no behaviour can be depended on, but it was advertised in a release.
What happens next
#16's shape (1) is right and I'm not attempting it here. Snakemake already forwards
--software-deployment-methodto the node and intends to own containerisation itself; the node only lacks a runtime, and apptainer'sel9aarch64 RPMs install on AL2023 and are pinnable (which matters, or it reintroduces #13 one layer down). That needs the two decisions asked for on #12 — always-install vs conditional, and where to pin — which I'll answer on the issue rather than guess at again.