Skip to content

Fix empty glob#989

Merged
GlassOfWhiskey merged 3 commits intomasterfrom
fix/glob
Mar 13, 2026
Merged

Fix empty glob#989
GlassOfWhiskey merged 3 commits intomasterfrom
fix/glob

Conversation

@LanderOtto
Copy link
Collaborator

@LanderOtto LanderOtto commented Mar 11, 2026

This commit fixes an issue introduced in #959. Before this commit, when an output was a mandatory list of files but the glob found no files, an empty token was propagated. Now, if no files match: a list is propagated for mandatory outputs, while an empty token is propagated for optional outputs.

Moreover, this commit streamlines command output processing by removing the manual manipulation of glob results and instead leveraging the single logic already present in the CWLCommandOutputProcessor.

This same issue with empty globs was previously solved in #472; a regression test has now been added to prevent future occurrences.

…en an output was mandatory but the glob found no files, an empty token was propagated. Now, if no files match: a list is propagated for mandatory outputs, while an empty token is propagated for optional outputs.

Moreover, this commit streamlines command output processing by removing the manual manipulation of glob results and instead leveraging the single logic already present.

This same issue with empty globs was previously solved in #472; a regression test has now been added to prevent future occurrences.
@LanderOtto
Copy link
Collaborator Author

Added test in common-workflow-language/cwl-v1.3/pull/95

@LanderOtto LanderOtto marked this pull request as ready for review March 13, 2026 11:59
@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.79%. Comparing base (4cbe924) to head (e24aff4).
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #989      +/-   ##
==========================================
+ Coverage   73.74%   73.79%   +0.05%     
==========================================
  Files          91       91              
  Lines       12481    12480       -1     
  Branches     2186     2186              
==========================================
+ Hits         9204     9210       +6     
+ Misses       2749     2745       -4     
+ Partials      528      525       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@GlassOfWhiskey GlassOfWhiskey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GlassOfWhiskey GlassOfWhiskey merged commit 2064828 into master Mar 13, 2026
41 checks passed
@GlassOfWhiskey GlassOfWhiskey deleted the fix/glob branch March 13, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants