Repository navigation
maltextract: replace UNZIP setup with nft-utils extract() - #13690
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SPPearce
left a comment
There was a problem hiding this comment.
Does curlAndExtract work on local file paths? i.e. if modules_testdata_base_path is set locally, does it still work?
My suspicion is that this won't work |
…the test-data base Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Right, nft-utils 1.2.1 |
…Data.modulesBase() Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tData.groovy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…xtract() returns Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@SPPearce @prototaxites nft-utils 1.3.0 is released, so this PR now bumps |
prototaxites
left a comment
There was a problem hiding this comment.
Looking good. Have you validated it works with an offline copy of the test data?
I have tested with local data, it works |
adamrtalbot
left a comment
There was a problem hiding this comment.
I'm up for trying it! better than process dependencies in the tests.
Use nft-utils
extract()instead of asetuprun of the UNZIP module to unpackncbi_taxmap.zipin the maltextract test, as a trial before doing the same in the other modules with UNZIP setups.modules/nf-core/maltextract/tests/main.nf.test: dropsetup { run("UNZIP") }andtag "unzip"; insetup,ncbi_taxmap = extract(modules_testdata_base_path + 'genomics/.../ncbi_taxmap.zip')extracts into a temporary directory (deleted when nf-test exits, never underoutputDir), passed asinput[2] = file('${ncbi_taxmap}');modules_testdata_base_pathisNXF_MODULES_TESTDATA_BASEor the same default asparams.modules_testdata_base_path, because config params are not available in nf-test'ssetup/whenGroovy codenf-test.config: bumpnft-utils1.2.1 to 1.3.0, which addsextract()(local paths, s3, namedextractDir/compression, throws on failure)Tested with nft-utils 1.3.0:
nf-test test modules/nf-core/maltextract --profile=+docker(2/2 pass, snapshot unchanged).🤖 Generated with Claude Code
🧑🦱 Verified by @maxulysse