-
Notifications
You must be signed in to change notification settings - Fork 1.3k
repo: different cache link types info on long lasting operations #1914
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
Conversation
8b8737d to
f91856a
Compare
|
Modified behaviour to analyze linking time, added asciinema example to this PR and issue |
|
@pared please rebase. |
484c699 to
979d993
Compare
dvc/stage.py
Outdated
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.
So now it will print a warning for each stage that it checks out? 🙂
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.
All caps is usually used for constants, so if you wish to modify it you should probably not use all caps, since it is no longer a constant :)
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.
why not just use with caplog.at_level(INFO) ?
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.
does it actually need to know remote_local? Or should it simply be (self, *args, **kwargs)?
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.
it can be self, I just named it to preserve information what user can expect here
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.
@pared not sure I follow. remote_local is not used, you are just passing it through, aren't you? If so, your __call__ doesn't care about it.
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.
Oh, you are right, it matters only for guard, not for decorator class.
7554469 to
dab832c
Compare
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.
So is this needed now? At least the naming :)
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.
Do you even need a mock for it though? You are passing it as a function that your decorator should wrap and call, but I don't see you doing anything with it later.
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 will change it so that we can make sure that arguments are passed properly
90cce16 to
7502ae3
Compare
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.
Feels like the logic is backwards. Shouldn't was_displayed be False by default? And when it is displayed then it should set was_displayed to True? Or am I missing something?
efiop
left a comment
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.
Thank you! :)
Have you followed the guidelines in our
Contributing document?
Does your PR affect documented changes or does it add new functionality
that should be documented? If yes, have you created a PR for
dvc.org documenting it or at
least opened an issue for it? If so, please add a link to it.
Fixes #1890
Example:
https://asciinema.org/a/2XsHkAUcUfx1aHfmUV7atnpoJ