-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
fix(vcs): prevent local clone from being stuck by gpg prompts #1360
Conversation
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, @noirbizarre! 🙏
I think you're aiming for a subset of #856, which unfortunately seems abandoned. So, I anticipate updating a generated project with GPG commit signing enabled would be a problem for you, too. Would you be interested in finishing #856 here? I.e., add the git config
line in main.py
and adapt the tests accordingly? This would be in line with @yajo's pragmatic suggestion:
Another option is forget about that and just add the
--no-gpg-sign
flag wherever needed. I don't think this would be too complicated honestly.
Related to #1224.
Codecov Report
@@ Coverage Diff @@
## master #1360 +/- ##
==========================================
+ Coverage 97.19% 97.41% +0.21%
==========================================
Files 48 48
Lines 4281 4327 +46
==========================================
+ Hits 4161 4215 +54
+ Misses 120 112 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
There are still more git commits issued. Maybe it's the time to fix all?
Lines 946 to 947 in 1196644
git("commit", "--allow-empty", "-am", "dumb commit 1", retcode=None) | |
git("commit", "--allow-empty", "-am", "dumb commit 2", "--no-verify") |
Line 149 in 1196644
git("commit", "-m", message) |
There are still more in the tests suite. See #616.
d0bd0dc
to
1f45ebe
Compare
OK, there is in fact 2 distinct issues in this:
PR updated with the following:
If there are some new or untested cases which might conflict with |
47d78ee
to
91a8678
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.
Awesome!
I made a push including nix-community/poetry2nix#1342 to see if that fixes the build. |
I have no expertise on Nix and I really can't help on this part. TBH I was surprise with the However I am the EDIT: I just saw the upstream |
Don't worry, it's just a common routine for projects like this one that use poetry2nix. There's nothing special for you to do in pytest-gitconfig to add that compatibility. Using nix is just because it's great! Most concerns about it is "it's complex", but in reality, once you learn it, it removes lots of complexities. It's obsoleting containers. I just can't live without it. 🤷🏼♂️ Regarding test failures, I see mypy failures (probably typing errors in some test) and also gpg signinig failures. It seems like, when you wanted to skip gpg, you actually enabled it everywhere! But you can see that all versions of CI (even those that don't use Nix) are broken, so it doesn't seem like a Nix problem at first sight. I wouldn't like to go too off-topic about nix here, but if you have any questions please feel free to open thread(s) in the forum. 😊 |
cda3395
to
b0f0239
Compare
Last failures were due to:
PR (and |
b0f0239
to
f522bfa
Compare
f522bfa
to
b01dd46
Compare
Sorry, comment posted in the wrong place. PR updated 👍🏼 Note: @yajo for nix it was just bad timing, latest update was broken for 3 days on EDIT: I think I also found the Windows issue: some git parameter were set from outside in CI (and so ignored by |
A quick and simple PR preventing the
copy
command to get stuck if you havecommit.gpgSign
and try to run thecopy
command on WIP local project for trial.