Convert duplicate-keyed asserts blocks to list form (passing subset)#1275
Merged
mvdbeek merged 1 commit intoJul 13, 2026
Merged
Conversation
jmchilton
requested review from
SaimMomin12,
bebatut,
clsiguret,
hugolefeuvre,
paulzierep and
wm75
as code owners
July 10, 2026 18:22
YAML silently collapses duplicate mapping keys, so `asserts:` blocks with repeated `has_text:` / `has_line:` / `has_text_matching:` entries were only running the *last* assertion per type — the rest were dead. Convert to list form (`- that: has_text` ...) so each assertion is a distinct item and actually runs. Semantic change: tests that silently passed earlier assertions may now fail if the previously-dropped assertion text doesn't actually match tool output. Surfaced by the Galaxy gxwf workflow-test validator IWC sweep.
jmchilton
force-pushed
the
convert-asserts-list-form-passing
branch
from
July 10, 2026 21:08
ac56ce0 to
6c09f87
Compare
mvdbeek
approved these changes
Jul 13, 2026
Member
|
Attention: deployment failure! https://github.com/galaxyproject/iwc/actions/runs/29231569359 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
YAML silently collapses duplicate mapping keys, so
asserts:blocks that repeat an assertion type (has_text:,has_line:,has_text_matching:) only ran the last assertion per type — every earlier assertion was silently dropped by the loader and never executed. This converts the affected workflow-tests files to list form so every assertion runs:Successor to closed #1217, reduced to the files whose tests are genuinely green with this change. Files whose tests fail/error are split into their own PRs.
Files (6)
bacterial_quality_and_contamination_control_post_assembly-tests.ymlquality_and_contamination_control_raw_reads-tests.ymlhost-or-contamination-removal-on-long-reads-tests.ymlshort-read-quality-control-and-trimming-tests.ymlpe-artic-variation-tests.ymlgenotype-variant-calling-wgs-pe-test.ymlSplit out
bcftools concatSIGSEGV (unrelated to the assertion conversion). IWC only tests changed workflows, so touching that file merely surfaced the crash.How this was found
Galaxy's new
gxwf validate-testsvalidator swept IWC workflow-tests against the PydanticTestsmodel;ordered_loadraises on duplicate mapping keys (per YAML 1.2), surfacing these authoring bugs.FOR CONTRIBUTOR: