Skip to content

unzip: switch to Seqera containers, fix dependent tests - #13669

Merged
adamrtalbot merged 18 commits into
nf-core:masterfrom
adamrtalbot:update/unzip-seqera-containers
Nov 17, 2026
Merged

adamrtalbot merged 18 commits into
nf-core:masterfrom
adamrtalbot:update/unzip-seqera-containers

Conversation

@adamrtalbot

@adamrtalbot adamrtalbot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Switches unzip from BioContainers to Seqera containers, built with nf-core modules containers create unzip. This adds the containers: block to meta.yml and conda lock files for linux/amd64 and linux/arm64. p7zip stays at 16.02 (latest on conda-forge).

Supersedes #11014. The topic versions migration in that PR has since landed on master via #12006, so the container swap is the only remaining change.

Changing unzip triggers the tests of every module that uses it in test setup. Several of those were already broken on master, so they are fixed here too:

  • xeniumranger/relabel, xeniumranger/resegment, xeniumranger/rename, qcatch: test closures used _ or shadowed meta, which no longer compile under Nextflow 26.04 strict syntax.

  • qcatch: anndata 0.13 crashes qcatch 0.2.12 under conda (TypeError sorting layers), so anndata is pinned to 0.12.17 and the container rebuilt with nf-core modules containers create qcatch; the anndata version is now emitted. The report embeds UMAP coordinates, which differ between the conda build and the container even with identical package versions, so the test snapshots sanitizeOutput(process.out, unstableKeys: ["report"]) and checks the report text instead. The snapshot was regenerated with nf-test, then the h5ad and metrics md5s were set to the x64 values CI produced, because regenerating under amd64 emulation on arm64 gives different md5s.

  • malt/build: snapshot updated, since unstable directory outputs are now listed by file name.

  • malt/run: alignment order differs between multi-threaded runs, so the test now compares a hash of the sorted SAM lines.

  • cellrangeratac/count: stub snapshot updated for sorted meta map keys. The module read meta.samples, which is not an allowed meta key and fails lint, so the sample name is now taken from the FASTQ names ({sample}_S1_L001_R1_001.fastq.gz), which cellranger-atac requires anyway. Behaviour change: pipelines that set meta.samples to choose which samples to process will no longer have it honoured; every sample name found in the staged FASTQ names is passed to --sample.

  • xeniumranger/relabel, xeniumranger/resegment, cellrangerarc/count, cellrangeratac/count: the full tests sat idle until the 2h limit. The CI runner has about 13.4 GB free, and with --localmem=15 Martian's job manager waits forever for 15 GB (configured to use 15GB of local memory, but only 13.4GB is currently available). Each test's tests/nextflow.config now sets memory = '12.GB'. With that setting, cellrangerarc/count's PCA/LSA/tSNE/UMAP outputs change; those 9 md5s were copied by hand from CI, where docker and singularity agree.

Snapshots were checked against the output CI reported on x64.

Known CI issue: the xeniumranger tests can run out of disk (no space left on device) when they share a shard with the malt tests, whose test data unpacks to 4-6 GB per test. The nf-test runner volume is temporarily bumped from 40gb to 80gb in .github/workflows/nf-test.yml to show they pass; that commit should be reverted before merge.

Generated by Claude Code

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda

Built with nf-core modules containers create. Adds containers metadata and conda lock files to meta.yml.

Generated by Claude Code
Nextflow 26.04 reserves `_` as an identifier, so the tests failed to compile.

Generated by Claude Code
The setup block declares `meta`, so reusing it as a closure parameter fails to compile under strict syntax. Snapshot regenerated on linux/amd64.

Generated by Claude Code
Unstable directory outputs are now listed by file name.

Generated by Claude Code
Alignment order differs between multi-threaded runs, giving a different SAM md5 on the same container.

Generated by Claude Code
Meta map keys are now snapshotted in sorted order.

Generated by Claude Code
@adamrtalbot adamrtalbot changed the title unzip: switch to Seqera containers unzip: switch to Seqera containers, fix dependent tests Nov 10, 2026
@github-actions github-actions Bot added size/m and removed size/s labels Nov 10, 2026
anndata 0.13 breaks qcatch 0.2.12 (TypeError sorting layers). Pin to
the version in the container. The snapshot regenerated under Rosetta
did not match native x64 CI, so restore master's values.

Generated by Claude Code
meta.samples is not an allowed meta key. cellranger-atac requires
FASTQs named {sample}_S1_L001_R1_001.fastq.gz, so take the sample
name from the file names instead.

Generated by Claude Code
Shows the xeniumranger tests pass when they do not run out of disk
alongside the malt tests. Revert before merge.

Generated by Claude Code
The HTML report embeds UMAP coordinates, which differ between the conda
build and the container even with identical package versions. Check the
report is non-empty instead. The snapshot entry was removed by hand,
since regenerating under amd64 emulation changes the x64 md5s.

Generated by Claude Code
The 10x tests sit idle until the 2h limit on the 15.3 GiB CI runner.
relabel prints Martian's job manager log and fails after 20 minutes;
resegment gets 12 GB so mrp is not asked to reserve 15 GB. Revert the
relabel diagnostics before merge.

Generated by Claude Code
The CI runner has about 13.4 GB free. With --localmem=15, Martian's job
manager waits for 15 GB that never frees up, so xeniumranger
relabel/resegment and cellranger-arc/atac count sat idle until the 2h
limit. Also drop the temporary relabel diagnostics.

Generated by Claude Code
With the 12 GB test memory the PCA/LSA/tSNE/UMAP outputs change. Values
copied from CI, where docker and singularity produced identical output;
regenerating under amd64 emulation on arm64 does not match x64.

Generated by Claude Code
@adamrtalbot
adamrtalbot marked this pull request as ready for review November 11, 2026 10:12
@adamrtalbot
adamrtalbot requested review from a team as code owners November 11, 2026 10:12

@vagkaratzas vagkaratzas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • qcatch: the environment.yml change needs a container rebuild (nf-core modules containers create qcatch) and a versions_anndata emit; the report check should go back inside the snapshot as a .contains() on stable text.
  • The nf-test.yml volume bump still has to be reverted before merge, as the PR body says.
  • The unzip change itself looks good: Seqera containers, lock files and the containers: block are all in place, and CI is green on every profile.

While you are here (not blocking):

  • modules/nf-core/malt/build/main.nf:7, modules/nf-core/malt/run/main.nf:7: still BioContainers; port to Seqera containers.
  • modules/nf-core/qcatch/environment.yml:9: no versions_python emit.
  • modules/nf-core/cellrangeratac/count/main.nf:9: no input for the optional --peaks BED that cellranger-atac count accepts.
  • modules/nf-core/cellrangerarc/count/tests/main.nf.test:47,183: the module_args = '' blocks are dead now that tests/nextflow.config no longer reads params.module_args; drop them.
  • modules/nf-core/malt/build/tests/nextflow.config: ext.args lacks the ?: '' default; modules/nf-core/malt/run/tests/nextflow.config:7,11 and modules/nf-core/qcatch/tests/nextflow_doublets.config:9 hardcode ext.args instead of params.module_args.
  • Tests in cellrangerarc/count, cellrangeratac/count, malt/build, qcatch and xeniumranger/{relabel,rename,resegment} snapshot outputs without sanitizeOutput(process.out); the xeniumranger ones also assert versions separately.
  • modules/nf-core/qcatch/tests/main.nf.test:45: hand-picks channels instead of unstableKeys; modules/nf-core/malt/run/tests/main.nf.test:66: the log check sits outside the snapshot.
  • Test names in unzip, cellrangerarc/count, cellrangeratac/count and xeniumranger/* don't follow <organism> - <inputs> - <outputs>.
  • Hardcoded test data URLs: modules/nf-core/malt/build/tests/main.nf.test:71, modules/nf-core/qcatch/tests/main.nf.test:22,64, modules/nf-core/xeniumranger/{relabel:21,rename:18,resegment:19}/tests/main.nf.test.
  • Implicit it in cellrangerarc/count/tests/main.nf.test:34, cellrangeratac/count/tests/main.nf.test:32, malt/build/tests/main.nf.test:40,91, malt/run/tests/main.nf.test:35; Channel instead of channel in qcatch/tests/main.nf.test:22,64,99.
  • meta.yml tools lack args_id in all touched modules; modules/nf-core/unzip/meta.yml:28 has an EDAM URL without its format comment.
  • PR checklist: CI passed on singularity and conda, so those boxes can be ticked.

Script hits set aside as false positives: unzip p7zip version is emitted as versions_7za; the malt/run snapshot does wrap sanitizeOutput, it just spans several lines.

Diff 6.92/10 · Overall 6.25/10
nf-core-reviewer 0.8.0dev / vagkaratzas-review (rubric v7) · claude-opus-5-5

Comment thread .github/workflows/nf-test.yml Outdated
- runner=4cpu-linux-${{ matrix.arch }}
- image=ubuntu24-full-${{ matrix.arch }}
- volume=40gb
- volume=80gb

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder from the PR body: revert this volume bump before merge, or split it into its own PR if the runners need 80 GB for good.

Comment thread modules/nf-core/qcatch/environment.yml Resolved
Comment thread modules/nf-core/qcatch/environment.yml Resolved
adamrtalbot and others added 3 commits November 11, 2026 10:33
Rebuild the Seqera container for the anndata pin with
nf-core modules containers create, which adds the containers block and
conda lock files. Emit the anndata version, and check stable report text
inside the snapshot instead of only its size.

Generated by Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te/unzip-seqera-containers

# Conflicts:
#	modules/nf-core/maltextract/tests/main.nf.test
@adamrtalbot

Copy link
Copy Markdown
Contributor Author

Thanks @vagkaratzas.

Blocking points:

  • qcatch (451e175): container rebuilt with nf-core modules containers create qcatch (new images, containers: block, .conda-lock/ files), versions_anndata emitted, and the report check is back inside the snapshot as .contains('Number of retained cells').
  • nf-test.yml volume bump: this stays until a maintainer decides whether to revert it before merge or keep 80 GB in its own PR. Without it, the xeniumranger tests run out of disk when they share a shard with the malt tests.

The non-blocking points are fair, but they are clean-ups to modules this PR only touches because their tests use unzip. I'd rather keep this PR to the container swap and the fixes needed to get those tests passing, and handle the rest per module in follow-up PRs. A better long-term fix is to move these tests off UNZIP setups altogether with nft-utils extract(), as #13690 did for maltextract.

I've ticked the singularity and conda boxes in the checklist.

Comment added by Claude Code

@vagkaratzas vagkaratzas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Blocking: the qcatch snapshot assertion is hand-picked instead of sanitizeOutput, and the cellrangerarc/count test config drops ext.args while the tests keep dead module_args = '' blocks.
  • Several snapshot values were edited by hand: the 9 cellrangerarc/count md5s, the qcatch report size entry and the malt/run alignments md5. Only version strings may be edited by hand, and anything else must come from nf-test --update-snapshot on the CI architecture. Please regenerate them that way, or confirm with a maintainer that CI-copied values are acceptable here.
  • The unzip container switch itself looks right: Seqera Wave URLs, containers: block and lock files are present. CI (lint and confirm-pass-nf-test) is green and G3 passes locally.

While you are here (not blocking):

  • modules/nf-core/cellrangeratac/count/tests/main.nf.test:47,92: the module no longer reads meta.samples, which is not an allowed meta key, so drop samples:[...] from the meta maps. The sample name now comes from the FASTQ names.
  • modules/nf-core/malt/build/main.nf:10-11 and modules/nf-core/malt/run/main.nf:10-11: still legacy biocontainers containers.
  • modules/nf-core/qcatch/environment.yml:9: no versions_python emit.
  • modules/nf-core/qcatch/tests/main.nf.test:22,64 and the xeniumranger tests: hardcoded URLs instead of params.modules_testdata_base_path.
  • Test names in cellrangerarc/count, cellrangeratac/count and the xeniumranger modules do not follow <organism> - <inputs> - <outputs/config>.
  • Several tests lack a bare assert process.success before assertAll, and use implicit it.
  • meta.yml: missing args_id on tools, empty ontologies and missing EDAM format comments across malt, qcatch, cellranger* and xeniumranger.
  • modules/nf-core/malt/build/tests/nextflow.config and modules/nf-core/malt/run/tests/nextflow.config: ext.args is not driven by params.module_args.

Not run: M15-style tool-doc input/output comparison and other judgment rules for modules whose main.nf this PR does not touch. G2 comes from CI only, not rerun locally.

Diff 8.53/10 · Overall 5.38/10
nf-core-reviewer 0.8.0dev / vagkaratzas-review (rubric v7) · claude-sonnet-5-5

Comment thread .github/workflows/nf-test.yml Outdated
- runner=4cpu-linux-${{ matrix.arch }}
- image=ubuntu24-full-${{ matrix.arch }}
- volume=40gb
- volume=80gb

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runner volume bump is temporary, per the PR description. Revert it before merge; maintainers should not merge it as is.

qcatch: snapshot sanitizeOutput(process.out) with the report as an
unstable key, keeping the report text check. The h5ad and metrics md5s
are the x64 values CI produced with the current container.

cellrangerarc/count: drop the unused module_args params blocks.

Generated by Claude Code

@vagkaratzas vagkaratzas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • unzip container swap looks right: Wave URLs, containers: block, lock files, 7za version topic all in place. CI lint, nf-test and local nextflow lint (G3, NXF 26.04.0) all pass.
  • Before merge: revert the volume=80gb workflow change, and confirm the hand-edited snapshot values (cellrangerarc/count md5s, qcatch removed report entry).
  • cellrangeratac/count no longer reads meta.samples and derives the sample from FASTQ names; this is a behaviour change for pipelines passing meta.samples, so mention it in the PR notes. Note malt/run hashing sorted SAM lines is fine (script T1 hit there is a false positive: sanitizeOutput is inside snapshot(...)).

Approval should be on its way soon.

While you are here (not blocking):

  • modules/nf-core/malt/build/main.nf:10-11 and modules/nf-core/malt/run/main.nf:10-11: still legacy biocontainers; port to Seqera containers.
  • modules/nf-core/qcatch/environment.yml:9: python has no versions_python emit.
  • modules/nf-core/qcatch/tests/main.nf.test:22,60 and xeniumranger/{relabel,rename,resegment} tests, malt/build tests/main.nf.test:71: hardcoded URLs instead of params.modules_testdata_base_path.
  • modules/nf-core/qcatch/tests/main.nf.test:83,103; cellrangerarc/count, cellrangeratac/count, malt/build, xeniumranger/* tests: snapshots without sanitizeOutput.
  • modules/nf-core/qcatch/tests/nextflow_doublets.config:9, malt/build and malt/run tests/nextflow.config: ext.args not from params.module_args.
  • Test names not in <organism> - <inputs> - <outputs/config> form: unzip, cellrangerarc/count, cellrangeratac/count, xeniumranger/*; missing bare assert process.success first.
  • Channel / implicit it in qcatch, cellrangerarc/count, cellrangeratac/count, malt tests.
  • Missing args_id on tools and EDAM format comments / empty ontologies in meta.yml of several touched modules.

Not assessed: M15 (tool manuals not checked; PR changes no module inputs/outputs).

Diff 10.00/10 · Overall 7.05/10
nf-core-reviewer 0.8.0dev / vagkaratzas-review (rubric v7) · claude-sonnet-5-5

Comment added by Claude Code

Comment thread .github/workflows/nf-test.yml Outdated
- runner=4cpu-linux-${{ matrix.arch }}
- image=ubuntu24-full-${{ matrix.arch }}
- volume=40gb
- volume=80gb

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary bump to 80gb must be reverted before merge, as the PR body says. Please drop this commit once CI has shown the xeniumranger tests pass.

Comment on lines +35 to +47
"lsa_components.csv:md5,041ea2680865c02c4b79f8daa48287d1",
"lsa_dispersion.csv:md5,1bdae634bd63d044dcfd8ae821b3744c",
"lsa_features_selected.csv:md5,b4e3cc5cac26dc6df059c1b8e38e72a8",
"lsa_projection.csv:md5,3bce47a5a0e8dc0cb24c2ecbba5c745b",
"lsa_variance.csv:md5,ff92c64ec140084673fd7ec48ce48993",
"tsne_projection.csv:md5,b0ff0a327a7cad898087c169b9815bab",
"umap_projection.csv:md5,8a34ad7bcf4ae7d14ad8f451acb4a12e",
"pca_components.csv:md5,82a4384a22390821cbfe06b2de9e9b4d",
"lsa_projection.csv:md5,27e4b8fc1dfbc7fdd9f9c9a3a648408d",
"lsa_variance.csv:md5,119baec458780688a8f3932c98f1a8c1",
"tsne_projection.csv:md5,e7b683c4ff24298579e0e63cef2664e5",
"umap_projection.csv:md5,a2812bd2bbd120199a1256fe4aa33e4b",
"pca_components.csv:md5,a2588775619d89abc59131077488e529",
"pca_dispersion.csv:md5,a6c8d15062a67bf828c1b58d1bc1eff8",
"pca_features_selected.csv:md5,34acd3e8d57f68bf592856c0c69847e7",
"pca_projection.csv:md5,6a2bf5e268da6705b92ec02309b3f61e",
"pca_variance.csv:md5,060e80415e690a7bfc9cd385c929842f",
"tsne_projection.csv:md5,aa42abe3c868c7d0e35628acf1a24966",
"pca_projection.csv:md5,d2bc8570c4a25b27d31c6806b56e20ae",
"pca_variance.csv:md5,df508c709704c18a5388c478c435444d",
"tsne_projection.csv:md5,7b3f7a284fc7f2e1f756893dae7aba75",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 9 md5s were copied by hand from CI. Snapshots may only change through nf-test; ideally regenerate on x64 CI-equivalent hardware, or note in the PR which maintainer confirmed the values. The same applies to the hand-removed report size entry in qcatch/tests/main.nf.test.snap.

@vagkaratzas vagkaratzas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, just dont forget to revert - volume=80gb before force merging

Comment thread .github/workflows/nf-test.yml Resolved
@adamrtalbot
adamrtalbot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into nf-core:master with commit 281ff6b Nov 17, 2026
63 of 71 checks passed
@adamrtalbot
adamrtalbot deleted the update/unzip-seqera-containers branch November 17, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants