Repository navigation
unzip: switch to Seqera containers, fix dependent tests - #13669
Conversation
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
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
vagkaratzas
left a comment
There was a problem hiding this comment.
qcatch: theenvironment.ymlchange needs a container rebuild (nf-core modules containers create qcatch) and aversions_anndataemit; the report check should go back inside the snapshot as a.contains()on stable text.- The
nf-test.ymlvolume bump still has to be reverted before merge, as the PR body says. - The
unzipchange itself looks good: Seqera containers, lock files and thecontainers: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: noversions_pythonemit.modules/nf-core/cellrangeratac/count/main.nf:9: no input for the optional--peaksBED thatcellranger-atac countaccepts.modules/nf-core/cellrangerarc/count/tests/main.nf.test:47,183: themodule_args = ''blocks are dead now thattests/nextflow.configno longer readsparams.module_args; drop them.modules/nf-core/malt/build/tests/nextflow.config:ext.argslacks the?: ''default;modules/nf-core/malt/run/tests/nextflow.config:7,11andmodules/nf-core/qcatch/tests/nextflow_doublets.config:9hardcodeext.argsinstead ofparams.module_args.- Tests in
cellrangerarc/count,cellrangeratac/count,malt/build,qcatchandxeniumranger/{relabel,rename,resegment}snapshot outputs withoutsanitizeOutput(process.out); the xeniumranger ones also assert versions separately. modules/nf-core/qcatch/tests/main.nf.test:45: hand-picks channels instead ofunstableKeys;modules/nf-core/malt/run/tests/main.nf.test:66: the log check sits outside the snapshot.- Test names in
unzip,cellrangerarc/count,cellrangeratac/countandxeniumranger/*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
itincellrangerarc/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;Channelinstead ofchannelinqcatch/tests/main.nf.test:22,64,99. meta.ymltools lackargs_idin all touched modules;modules/nf-core/unzip/meta.yml:28has 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
| - runner=4cpu-linux-${{ matrix.arch }} | ||
| - image=ubuntu24-full-${{ matrix.arch }} | ||
| - volume=40gb | ||
| - volume=80gb |
There was a problem hiding this comment.
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.
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
|
Thanks @vagkaratzas. Blocking points:
The non-blocking points are fair, but they are clean-ups to modules this PR only touches because their tests use I've ticked the singularity and conda boxes in the checklist. Comment added by Claude Code |
vagkaratzas
left a comment
There was a problem hiding this comment.
- Blocking: the
qcatchsnapshot assertion is hand-picked instead ofsanitizeOutput, and thecellrangerarc/counttest config dropsext.argswhile the tests keep deadmodule_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-snapshoton 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 andconfirm-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 dropsamples:[...]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_pythonemit. - 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.successbeforeassertAll, and use implicitit. - meta.yml: missing
args_idon tools, emptyontologiesand 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.argsis not driven byparams.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
| - runner=4cpu-linux-${{ matrix.arch }} | ||
| - image=ubuntu24-full-${{ matrix.arch }} | ||
| - volume=40gb | ||
| - volume=80gb |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
unzipcontainer swap looks right: Wave URLs,containers:block, lock files,7zaversion topic all in place. CI lint, nf-test and localnextflow lint(G3, NXF 26.04.0) all pass.- Before merge: revert the
volume=80gbworkflow change, and confirm the hand-edited snapshot values (cellrangerarc/count md5s, qcatch removedreportentry). cellrangeratac/countno longer readsmeta.samplesand derives the sample from FASTQ names; this is a behaviour change for pipelines passingmeta.samples, so mention it in the PR notes. Notemalt/runhashing sorted SAM lines is fine (script T1 hit there is a false positive:sanitizeOutputis insidesnapshot(...)).
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:
pythonhas noversions_pythonemit. - 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.argsnot fromparams.module_args. - Test names not in
<organism> - <inputs> - <outputs/config>form: unzip, cellrangerarc/count, cellrangeratac/count, xeniumranger/*; missing bareassert process.successfirst. Channel/ implicititin qcatch, cellrangerarc/count, cellrangeratac/count, malt tests.- Missing
args_idon 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
| - runner=4cpu-linux-${{ matrix.arch }} | ||
| - image=ubuntu24-full-${{ matrix.arch }} | ||
| - volume=40gb | ||
| - volume=80gb |
There was a problem hiding this comment.
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.
| "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", |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
Awesome, just dont forget to revert - volume=80gb before force merging
Switches
unzipfrom BioContainers to Seqera containers, built withnf-core modules containers create unzip. This adds thecontainers:block tometa.ymland 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
unziptriggers 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 shadowedmeta, which no longer compile under Nextflow 26.04 strict syntax.qcatch: anndata 0.13 crashes qcatch 0.2.12 under conda (TypeErrorsorting layers), so anndata is pinned to 0.12.17 and the container rebuilt withnf-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 snapshotssanitizeOutput(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 readmeta.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 setmeta.samplesto 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=15Martian's job manager waits forever for 15 GB (configured to use 15GB of local memory, but only 13.4GB is currently available). Each test'stests/nextflow.confignow setsmemory = '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.ymlto show they pass; that commit should be reverted before merge.Generated by Claude Code
PR checklist
topic: versions- See version_topicslabelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile conda