-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
scandeps should not apply mergedirs at every level #1615
Conversation
When getting back a list of dependencies, and using "nestdirs", in the specific case it there are references to both a directory and files within that directory, it may report multiple dependencies for the same directory. The mergedir method merges those references into one.
Codecov Report
@@ Coverage Diff @@
## main #1615 +/- ##
==========================================
+ Coverage 66.62% 66.70% +0.08%
==========================================
Files 93 93
Lines 16607 16583 -24
Branches 4402 4398 -4
==========================================
- Hits 11064 11062 -2
+ Misses 4402 4383 -19
+ Partials 1141 1138 -3
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging 2e7013f into 7cef4dd - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Peter. Can we get a test case to prevent regressions?
This pull request introduces 1 alert when merging 9f59f5e into 7cef4dd - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I have manually confirmed that your test fails without these fixes. Looks like we have one more area that needs testing
cwltool/process.py
Outdated
elif e["location"] != ents[basename]["location"]: | ||
raise Exception( | ||
"Conflict between %s and %s", e["location"], ents[basename]["location"] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get a test to confirm the conflict detection as well?
This pull request introduces 1 alert when merging f8a5d4c into 7cef4dd - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
When getting back a list of dependencies, and using "nestdirs", in the
specific case it there are references to both a directory and files
within that directory, it may report multiple dependencies for the
same directory. The mergedir method merges those references into one.