I've been noticing lately that when in my main.nf....
# nostupidquestions
e
I've been noticing lately that when in my main.nf.test files i give an input[0] with a meta id = "test"..I get random empty files in the snapshot, even in stubs. Changing the meta id to something like "test_stub" solves this. Anybody else getting the same/seen this behaviour? Is meta [ id:'test' ] being used somewhere unexpectedly?
This is an example, when trying to update the famsa_align module to latest version..if I keep the
test
meta id and don't change the name I receive this in the snapshot:
@Simon Pearce
s
link to PR/branch?
e
I won't push it like this, changing the test name locally and it's fixing it
meta id name*
a
You don’t have a branch with the code in at least?
e
I am using nf-test 0.9.2 and NXF_VER=25.04.7. Can you please test by running
nf-test test /path/to/modules/nf-core/famsa/align/tests/main.nf.test --profile +singularity --verbose --update-snapshot
on the current famsa_align module (master branch)?
a
I’ll have to test with docker but I can try that
🙏 1
Ok, running that on 25.04.6 I see only a change in the nextflow version in the snapshot. Nothing changed in the channel outputs
I then applied your version change and reran and with
test
as the id I still don’t have any issues
e
Ok, I went back to master to retry replicating it myself step by step. It didnt' work with existing version of famsa (2.2.2). But when I changed it to 2.4.1 and rerun the --snapshot-update it happened again.....
💀
a
I just can’t see any reason that would happen.
e
me neither....that's why it's been eating me
a
The only difference AFAICT is that you are using singularity and a slightly newer hotfix branch of nextflow
e
Let's see if anybody else gets the same behaviour at some point..I also posted in the nf-test channel
a
But also I would point out that in your screenshot it’s not files, but the
meta
which has all that weird empty
[]
in
e
Yep, 60 lines full of empty arrays
60 empty lines for every test that reads "test" as a meta.id
a
But there is nothing that even modifies the meta in any test
🥲 1
e
Maybe i'll pop by at the next helpdesk and showcase this specimen
a
Can you try something else. Can you manually delete the old snapshot and just run the tests as if it was the first time?
e
Same behaviour..
a
Utterly bizarre.