Skip to content

fix: remove the container passthrough added in 0.3.0 — it cannot work - #17

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/16-remove-broken-container-passthrough
Oct 4, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/16-remove-broken-container-passthrough

Conversation

@scttfrdmn

@scttfrdmn scttfrdmn commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Refs #16. Removes the container: passthrough and --spawn-container that shipped in 0.3.0, because they cannot work.

Why it cannot work

spec.command in this adapter 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. For a single-tool bioconda image that 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   (with docker:// left on)

This should not have shipped, and that is on me

The timeline is unambiguous:

time event
01:13Z reporter retracts the suggestion on #12: "Don't do that — it cannot work with this adapter's architecture, and I'd rather say so before someone implements it"
01:17Z reporter opens PR #14 containing only the half that works (cost_limit)
01:33Z reporter withdraws PR #14
01:55Z I open PR #15 implementing both halves, including the retracted one
01:58Z merged, then released as v0.3.0
04:37Z reported broken

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.py fails if either the build_task_spec argument or the --spawn-container setting returns, with the reasoning inline — it would otherwise come back as an obvious one-field fix, which is exactly how it arrived.

--spawn-cost-limit is 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-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 (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.

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
@scttfrdmn
scttfrdmn merged commit 07c0143 into main Oct 4, 2026
2 checks passed
@scttfrdmn
scttfrdmn deleted the fix/16-remove-broken-container-passthrough branch October 4, 2026 05:45
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.

1 participant