Skip to content

Conversation

tetron
Copy link
Member

@tetron tetron commented Mar 7, 2022

Typing related to conditionals should be part of the computed output
signature of the step, not added in by the checker.

refs #1639

Typing related to conditionals should be part of the computed output
signature of the step, not added in by the checker.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
@tetron tetron changed the title Fix spurious validation error #1639 Fix spurious validation error with scatter+conditionals Mar 7, 2022
@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

❌ Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.79%. Comparing base (0f70992) to head (21da544).
⚠️ Report is 442 commits behind head on main.

Files with missing lines Patch % Lines
cwltool/workflow.py 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1640      +/-   ##
==========================================
- Coverage   66.82%   66.79%   -0.03%     
==========================================
  Files          93       93              
  Lines       16578    16578              
  Branches     4404     4404              
==========================================
- Hits        11078    11074       -4     
- Misses       4361     4364       +3     
- Partials     1139     1140       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lgtm-com
Copy link

lgtm-com bot commented Mar 7, 2022

This pull request introduces 1 alert when merging c4442a8 into 0f70992 - view on LGTM.com

new alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Mar 8, 2022

This pull request introduces 1 alert when merging 21da544 into 0f70992 - view on LGTM.com

new alerts:

  • 1 for Unused import

for n in range(0, nesting):
for oparam in outputparms:
if conditional and n == 0:
oparam["type"] = ["null"] + cast(
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a test case that triggers this line?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I was going to add a test, I just wanted to see what the other code checks had to say about it.

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