Skip to content
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

gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() #94733

Closed
wants to merge 2 commits into from

Conversation

hetmankp
Copy link
Contributor

@hetmankp hetmankp commented Jul 11, 2022

This addresses issue #94732, ensuring that the event loop's _thread_id
attribute and the asyncgen hooks set by sys.set_asyncgen_hooks() are
always restored no matter where a KeyboardInterrupt exception is raised.

This addresses issue python#94732, ensuring that the event loop's _thread_id
attribute and the asyncgen hooks set by sys.set_asyncgen_hooks() are
always restored no matter where a KeyboardInterrupt exception is raised.
@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Jul 11, 2022

The following commit authors need to sign the Contributor License Agreement:

Click the button to sign:
CLA not signed

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@gvanrossum
Copy link
Member

I am okay with skipping news, it please do sign the CLA.

@hetmankp
Copy link
Contributor Author

hetmankp commented Sep 5, 2022

I am okay with skipping news, it please do sign the CLA.

I have attempted to sign the CLA (i.e. enable the app) but I have the "Keep my email addresses private" option selected on Github, and the CLA app doesn't seem to accept my Github noreply email address. (My Github account is old enough, the noreply address shouldn't need the ID number).

Is this form of signing the agreement not supported at all or did I do something wrong?

@gvanrossum
Copy link
Member

Maybe @ambv can help with the CLA issue?

@ambv
Copy link
Contributor

ambv commented Sep 5, 2022

the CLA app doesn't seem to accept my Github noreply email address

@hetmankp, can you say what exactly seems to be happening? We do have handling for the old-style noreply addresses, too, maybe there's a bug in there.

@hetmankp
Copy link
Contributor Author

hetmankp commented Sep 6, 2022

@hetmankp, can you say what exactly seems to be happening? We do have handling for the old-style noreply addresses, too, maybe there's a bug in there.

Sorry @ambv , I should have been more specific. When I click the "SIGN IN WITH GITHUB TO AGREE" button on the The PSF Individual Contributor Agreement page, I get taken to a white page with one line of text which reads:

Thank you for authorizing our application, but the CLA must be signed by the users who contributed to the PR. Authors emails are: [email protected].

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

1 similar comment
@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@gvanrossum
Copy link
Member

How's the CLA signing going? Still no resolution?

@gvanrossum
Copy link
Member

@hetmankp I cannot merge this without a signed CLA, alas. @ambv What can we do?

@hetmankp
Copy link
Contributor Author

hetmankp commented Oct 3, 2022

@hetmankp I cannot merge this without a signed CLA, alas. @ambv What can we do?

@gvanrossum @ambv , more than happy to work with whoever is available to provide further debugging information from my end.

Obviously this commit is simple enough we can probably find an alternative way forward if it comes to that, but if at all possible I'd rather we address the licencing system bug since it could affect other committers as well (plus it is the second time it has caused an issue for me attempting to submit a merge request into CPython).

@gvanrossum
Copy link
Member

I don't know what's going on in the CLA bot, but presumably it would be avoidable if you linked a proper email address to your GitHub account and created a new PR using that email? (IIRC you can set the email address when committing with a git flag, or you can change your git config to set it.)

@hetmankp
Copy link
Contributor Author

hetmankp commented Oct 3, 2022

I don't know what's going on in the CLA bot, but presumably it would be avoidable if you linked a proper email address to your GitHub account and created a new PR using that email? (IIRC you can set the email address when committing with a git flag, or you can change your git config to set it.)

@gvanrossum I'd prefer not to do that though I think the issue might have been with my GitHub account anyway. It's an old account so as far as I'm aware it should have been using the simple anonymous email format without the ID number. However, I've just opened up a new pull request with the aforementioned ID number included and the CLA signing bot seems happy with that one.

The new pull request with the CLA signed is #97765 , so I think this one can be closed and that one can be used instead. Let me know if you'd like this done some other way though. Thanks and sorry for the complications.

@gvanrossum gvanrossum closed this Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants