Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix valueFrom type checking behaviour #323

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Conversation

GlassOfWhiskey
Copy link
Member

This commit fixes the type checking behaviour with CWL valueFrom transformers. Before, the incorrect type was passed to the TokenProcessor class: the type resulting from the valueFrom expression evaluation. Instead, the correct type should be the type of the source value, i.e., before the expression evaluation. Since this type is difficult to infer, as the source could be still unknown at the evaluation time, now StreamFlow always passes Any.

This commit fixes the type checking behaviour with CWL `valueFrom`
transformers. Before, the incorrect type was passed to the
`TokenProcessor` class: the type resulting from the `valueFrom`
expression evaluation. Instead, the correct type should be the type of
the `source` value, i.e., before the expression evaluation. Since this
type is difficult to infer, as the source could be still unknown at the
evaluation time, now StreamFlow always passes `Any`.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3425b42) 67.09% compared to head (bc0292f) 67.11%.
Report is 1 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #323      +/-   ##
==========================================
+ Coverage   67.09%   67.11%   +0.02%     
==========================================
  Files          82       82              
  Lines       10253    10254       +1     
  Branches     2424     2424              
==========================================
+ Hits         6879     6882       +3     
+ Misses       2950     2949       -1     
+ Partials      424      423       -1     

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

@GlassOfWhiskey GlassOfWhiskey merged commit b4d9b8d into master Dec 18, 2023
31 checks passed
@GlassOfWhiskey GlassOfWhiskey deleted the fix-value-from branch December 18, 2023 21:27
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