Skip to content

Replace UNTAR/UNZIP setups with nft-utils extract() in variant-calling components - #13795

Merged
maxulysse merged 6 commits into
nf-core:masterfrom
maxulysse:extract-variants
Nov 17, 2026
Merged

maxulysse merged 6 commits into
nf-core:masterfrom
maxulysse:extract-variants

Conversation

@maxulysse

@maxulysse maxulysse commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Replace the UNTAR/UNZIP setup runs with nft-utils extract() in the tests of gatk4/{createsomaticpanelofnormals,genomicsdbimport,genotypegvcfs}, clair3, rtgtools/{rocplot,vcfeval}, vcf2maf, pypgx/runngspipeline and hlala/preparegraph, following #13690.

  • setup now calls extract(<archive>).resolve('<top-level dir>') in the non-stub tests only, and inputs use file('${dir}') (with the meta UNTAR used to pass) instead of UNTAR.out.untar/UNZIP.out.unzipped_archive; tag "untar"/tag "unzip" removed
  • modules test-data URLs use NXF_MODULES_TESTDATA_BASE or the default of params.modules_testdata_base_path, which nf-test's setup code cannot read
  • Stub tests take dummy inputs ([], or file('${moduleTestDir}') for hlala/preparegraph, which stages its input with stageInMode 'copy'; its stub snapshots the graph file names only) instead of downloaded data
  • cellrangeratac/mkfastq: the stubs take file('cellranger-atac-tiny-bcl-1.0.0') instead of moduleTestDir, which made them write tests/outs/ into the checkout
  • hlala/preparegraph: snapshot drops the unzip/ copy of the graph; rtgtools/vcfeval: output md5s updated, the staged SDF is now named genome_sdf instead of test
  • rtgtools/vcfeval: remove tests/nextflow.config, which only held an empty withName: UNTAR block; the stub uses echo "" | gzip for the test_stub_gzip_syntax lint
  • Channel. replaced by channel. in the touched tests

Tested with nf-test test <components> --profile=+docker: all pass.

🤖 Generated with Claude Code

maxulysse and others added 2 commits November 17, 2026 13:10
…calling components

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stDir

The stub writes into its bcl input, which wrote tests/outs into the checkout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
maxulysse and others added 4 commits November 17, 2026 13:22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cellrangeratac/mkfastq and vcf_annotate_vepyr stubs take a plain path name;
hlala/preparegraph copies its input, so its stub stages moduleTestDir and
snapshots graph file names only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@Lukecele Lukecele 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.

LGTM! The migration from UNTAR/UNZIP setup processes to nft-utils extract() across variant-calling tests is very clean and eliminates unnecessary test process overhead. All 16 CI test shards and lint jobs are 100% green. Thanks @maxulysse!

@maxulysse
maxulysse added this pull request to the merge queue Nov 17, 2026
Merged via the queue into nf-core:master with commit ab771f1 Nov 17, 2026
61 checks passed
@maxulysse
maxulysse deleted the extract-variants branch November 17, 2026 15:57
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.

2 participants