Skip to content

Propagate task.containerPlatform through Fusion#7074

Merged
pditommaso merged 1 commit intomasterfrom
fix-fusion-container-platform
Apr 25, 2026
Merged

Propagate task.containerPlatform through Fusion#7074
pditommaso merged 1 commit intomasterfrom
fix-fusion-container-platform

Conversation

@pditommaso
Copy link
Copy Markdown
Member

Summary

The Fusion code path in FusionHelper.runWithContainer bypassed setPlatform on the container builder, so process.arch was silently dropped when Fusion was enabled.

Thread task.getContainerPlatform() through FusionHelper.runWithContainer and apply it on the builder when present. The non-Fusion path already calls setPlatform in BashWrapperBuilder; this aligns the two.

Affects every container engine under Fusion (docker, podman, sarus, apple-container, ...).

Test plan

  • New unit test in FusionHelperTest asserts --platform linux/amd64 appears in the emitted docker command when the platform is passed.
  • Existing FusionHelperTest cases (no platform) still pass — the new parameter defaults to null.
  • ./gradlew :nextflow:test --tests "nextflow.fusion.*" --tests "nextflow.container.*" --tests "nextflow.executor.local.*" passes.

The Fusion code path bypassed setPlatform on the container builder, so
process.arch was silently dropped when Fusion was enabled. Thread the
task container platform through FusionHelper.runWithContainer and apply
it on the builder when present.

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 6a42974
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69ebdaa134d59b000863ebc8

1 similar comment
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 6a42974
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69ebdaa134d59b000863ebc8

@pditommaso pditommaso requested a review from bentsherman April 24, 2026 21:06
@pditommaso pditommaso merged commit b58a590 into master Apr 25, 2026
28 of 29 checks passed
@pditommaso pditommaso deleted the fix-fusion-container-platform branch April 25, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants