Jeremy Muhlich
09/19/2025, 9:16 PMstable_name = getAllFilesFromDir... from the template in the snapshot, and when one of our team members added some bits to the pipeline and updated the snapshot, a directory that should have been included in the stable_name list was missing and replaced by this:
[
"versions.yml:md5,2153811135866cc22a3f13c74568305f"
],
It looks really wrong since all the other entries in the stable_name list are simple strings, and just this one is a nested list with a string:hash. On my machine and on the Github Actions runner, the expected output with the directory name gets produced instead. Does anyone have any idea why this happens? I found this seemingly related question in #tools but I couldn't find any followup in here: https://nfcore.slack.com/archives/CE5LG7WMB/p1752845131146539Jeremy Muhlich
09/19/2025, 9:17 PMexpected observed
"registration/ashlar", "registration/ashlar",
"registration/ashlar/TEST1.ome.tif", "registration/ashlar/TEST1.ome.tif",
"segmentation", "segmentation",
"segmentation/deepcell_mesmer", "segmentation/deepcell_mesmer",
"segmentation/deepcell_mesmer/mask_TEST1.tif", "segmentation/deepcell_mesmer/mask_TEST1.tif",
[ "summary",
"versions.yml:md5,2153811135866cc22a3f13c74568305f"
],
"summary/TEST1_samplesheet_mqc.tsv", "summary/TEST1_samplesheet_mqc.tsv",
"summary/TEST1_xml_mqc.tsv", "summary/TEST1_xml_mqc.tsv",
"summary/markers_markersheet_mqc.tsv" "summary/markers_markersheet_mqc.tsv"
], ],Maxime Garcia
09/22/2025, 11:54 AMversions.yml should not be publishedMaxime Garcia
09/22/2025, 12:15 PMMaxime Garcia
09/22/2025, 12:15 PMMaxime Garcia
09/22/2025, 12:16 PMMaxime Garcia
09/22/2025, 1:40 PMJeremy Muhlich
09/24/2025, 3:28 PMMaxime Garcia
09/25/2025, 8:13 AMJeremy Muhlich
09/25/2025, 1:07 PMJeremy Muhlich
09/25/2025, 1:07 PMMaxime Garcia
09/25/2025, 1:11 PMJeremy Muhlich
09/25/2025, 1:13 PMJeremy Muhlich
09/25/2025, 1:15 PMJeremy Muhlich
09/25/2025, 1:15 PMJeremy Muhlich
09/25/2025, 2:19 PMMaxime Garcia
09/25/2025, 2:19 PMJeremy Muhlich
09/25/2025, 2:23 PMJeremy Muhlich
09/25/2025, 2:23 PMMaxime Garcia
09/25/2025, 2:23 PMJeremy Muhlich
09/25/2025, 2:24 PMMaxime Garcia
09/25/2025, 2:24 PMMaxime Garcia
09/25/2025, 2:25 PMJeremy Muhlich
09/25/2025, 2:25 PMJeremy Muhlich
09/25/2025, 2:25 PMworkflow { }Jeremy Muhlich
09/25/2025, 2:26 PMMaxime Garcia
09/25/2025, 2:27 PMJeremy Muhlich
09/25/2025, 2:27 PMnft-utils getAllFilesFromDir returns and it's just a list of java.lang.StringJeremy Muhlich
09/25/2025, 2:28 PMJeremy Muhlich
09/25/2025, 2:28 PMthen {
assert snapshot(['foo.txt']).match()
}Maxime Garcia
09/25/2025, 2:28 PMJeremy Muhlich
09/25/2025, 2:28 PMJeremy Muhlich
09/25/2025, 2:29 PMJeremy Muhlich
09/25/2025, 2:29 PMMaxime Garcia
09/25/2025, 2:29 PMMaxime Garcia
09/25/2025, 2:29 PMJeremy Muhlich
09/25/2025, 2:30 PMMaxime Garcia
09/25/2025, 2:30 PMparams {
outdir = "$outputDir"
}Maxime Garcia
09/25/2025, 2:31 PMJeremy Muhlich
09/25/2025, 2:45 PMJeremy Muhlich
09/25/2025, 2:45 PMJeremy Muhlich
09/25/2025, 3:04 PMJeremy Muhlich
09/25/2025, 3:05 PMstable_name.txt. With only that change, the test run shows the expected snapshot difference with stable_name missing from the expected output.Maxime Garcia
09/25/2025, 3:05 PMJeremy Muhlich
09/25/2025, 3:05 PMstable_name.txt at the top level, which breaks thingsMaxime Garcia
09/25/2025, 3:06 PMJeremy Muhlich
09/25/2025, 3:08 PMTest [ba5e77af] 'getAllFilesFromDir' FAILED (1.488s)
java.lang.RuntimeException: Different Snapshot:
expected observed
[ [
[ [
"pipeline_info", "pipeline_info",
"stable", "stable",
"stable_content.txt", "stable_content.txt"
"stable_name.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
], ],
[ [
"stable_content.txt", "stable_content.txt"
"stable_name.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
], ],
[ [
"stable_content.txt:md5,f6d73f703cda1c725ea78369a6c3a48d" "stable_content.txt:md5,f6d73f703cda1c725ea78369a6c3a48d"
] ]
] ]Jeremy Muhlich
09/25/2025, 3:10 PMMaxime Garcia
09/25/2025, 3:13 PMMaxime Garcia
09/25/2025, 3:13 PMJeremy Muhlich
09/25/2025, 7:24 PMMaxime Garcia
09/25/2025, 7:25 PM