-
Notifications
You must be signed in to change notification settings - Fork 1.3k
argparse: dont override cmd #6958
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
1ca8f72 to
283444c
Compare
|
Great catch with -q! I guess another question is if we might be better off just putting an version check and error-ing out on 3.9.8 and not use this fix at all? Seems like you found -q/-v/--pdb not working, who knows if there is another bug hidden somewhere, so maybe better to just forbid? WDYT? |
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! π
|
From discussions in PMs: even though |
|
It's worth noting here that this PR does not solve all problems. We managed to limit the failing tests and potential bugs for users using The change included in https://bugs.python.org/issue45235 makes using our globally defined flags (eg Since this fix is supposed to be scrapped I do not investigate this particular issue further. User's might face some problems with globally defined options for python |
@pared Should we forbid 3.9.8 then for now? Or invest into making it work with 3.9.8? |
|
After the changes to Due to fact that the future of the new implementation is highly uncertain, I would wait with adjusting to it for the python core team move. If they will keep that change, then surely we will need to adjust. But as of today, it seems the whole change will be reverted, so we should wait and see. |
But it also means that it doesn't work for users, right? And some other options too? If so, it might get in the way of using dvc. Though it looks like 3.9.8 broke lots of packages anyway, so it might get removed from everywhere or patched everywhere. So we still need to either fix it or at least forbid it, so users don't think that this is our bug. That being said, neither of those will help users of already released dvc versions, so we can definitely wait. |
β 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. π
Recent bugfix in 3.9 release: https://bugs.python.org/issue45235
Has caused a regression. There were 2 problems:
cmdvalue for commands likerun,stageandexp init. This one is on us, and while the proposed workaround does not require it, I renamed stage-relatedcmdintocommandso it does not clash withdvc {cmd}commands.dvc status -qwould not pass-qdown to the status command, whiledvc -q statuswould. I tried resolving the problem but today was not enough. Since the bugfix in question is most likely to get scrapped I want to limit the python version to an unaffected one, and wait for another release to get pushed.Since all Python versions seem to be affected, I am limiting all versions just in case.- can't do that due to different versions released for different os-es. Lets limit3.9and see how fast the revert gets released.The action point here is that we need to observe python releases and make sure to remove constraints once we know that the new version gets released. If for some reason the fix stays in the current format, we will need to research why the flags have not been passed down and fix that.
Closes: #6956