Hey, I have tests failing with a difference in sna...
# nf-test
t
Hey, I have tests failing with a difference in snapshot
Copy code
71             "tabix": "1.19.1"        71             "tabix": "1.19.1"    
   72         },                           72         },                       
   73         "Workflow": {                73         "Workflow": {            
!  74             "rki-mf1/omnifluss":  !  74             "rki-mf1/omnifluss": 
"v1.0dev"                               "v0.2.0"                               
   75         }                            75         }
i.e. it is a difference in the manifest's version of the workflow. I am using the new nf-core template's asserts.
Copy code
{assert workflow.success},
                {assert snapshot(
                    // Number of successful tasks
                    workflow.trace.succeeded().size(),
                    // pipeline versions.yml file for multiqc from which Nextflow version is removed because we test pipelines on multiple Nextflow versions
                    removeNextflowVersion("$outputDir/pipeline_info/omnifluss_software_mqc_versions.yml"),
                    // All stable path name, with a relative path
                    stable_name,
                    // All files with stable contents
                    stable_path.isEmpty() ? 'No stable content' : stable_path,

                    // All bam files
                    //bam_files.isEmpty() ? 'No BAM files' : bam_files.collect { file -> file.getName() + ":md5," +  bam(file.toString()).readsMD5 },
                    // All vcf files
                    //bam_files.isEmpty() ? 'No VCF files' : vcf_files.collect { file -> file.getName() + ":md5," +  path(file.toString()).vcf.variantsMD5 }

                    ).match("Snapshot - Stable content")
                },
I do not understand at what point the version is written into the file? Or am I looking at the wrong section? Is this intended by the way? Hard to believe I have to update the version in the snapshots every time I bump a pipeline version. Or rather ignore the version in the snapshots somehow?
s
If you use
nf-core pipelines bump-version
I think it should update the snapshots too.
👀 1
m
I have updated nft-utils, and the latest versions can skip this pipeline version