-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
repo: use is_repo_import to check for imports in outs_graph
#9925
Conversation
for dep in stage.deps: | ||
if dep.fs_path is None: | ||
# RepoDependency don't have a path |
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.
This is no longer valid since repo deps now have a dvcfs fs_path
if stage.is_repo_import: | ||
continue |
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.
I think this check could actually be if stage.is_import
here since outs can't overlap with external dep paths now?
(But I left the check as repo imports only for now to match the original behavior, and since import-url deps won't cause the erepo git cloning issue)
outs_graph
Codecov ReportPatch coverage is
π’ Thoughts on this report? Let us know!. |
Thanks @pmrowla. |
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 @pmrowla for the quick fix! Curious what is your take on adding tests on issues like this (and probably for bug fixes in general?). (I had a conversation with @efiop and our opinions differ)- I wanted to calibrate with you and probably with the whole team as well :) (clearly it goes case by case, and there are very valid exception from any policy).
I'm not really sure that a test for this would be particularly useful (i.e. having a func test for "does This issue was really an This is something that I would expect to be caught via higher level QA and/or benchmarks. It would be better for us to have more useful real-world test cases in dvc-bench, but IMO this isn't something that needs to be tested at the DVC func or unit test level |
I see this as a design issue with the current |
β I have followed the Contributing to DVC checklist.
π If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. π
Fixes #9912