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

Should PR testruns expire after a while? #393

Open
iritkatriel opened this issue Apr 2, 2021 · 4 comments
Open

Should PR testruns expire after a while? #393

iritkatriel opened this issue Apr 2, 2021 · 4 comments

Comments

@iritkatriel
Copy link
Member

iritkatriel commented Apr 2, 2021

We had a PR that was left open for a few months, and once it was merged the tests failed and the build was broken: python/cpython#22033

I think the PR was deemed by the bot as good-to-merge on the basis of successful testruns from a few months ago.

Should something be done in the bots to prevent this happening again? Perhaps expire the testruns after a while?

@vstinner
Copy link
Member

vstinner commented Apr 2, 2021

The developer who merges a PR should pay attention to when the CI run for the last time.

Breaking buildbots became really rare. In https://bugs.python.org/issue26053 case, buildbots were fixed quickly, so it's ok. I don't think that we need to change the workflow just because the CI breaks once a while.

It would be great to automatilly re-run the CI with the PR rebased before merging, but it is non trivial to implement. The https://mergify.io/ may be an option for that. Moreover, our CI is not really reliable :-( For example, test_asyncio random failures are sadly common enough for developers to notice.

@hugovk
Copy link
Member

hugovk commented Mar 26, 2022

At https://github.com/python/cpython/settings if you turn on this:

image

It adds this optional button to PRs:

image

If you click that it will merge main into the PR and re-run CI.

Or you can do rebase:

image

@terryjreedy
Copy link
Member

Update with merge commit would be nice. Update with rebase would not.

@JelleZijlstra
Copy link
Member

@hugovk's suggestion was implemented, further discussion in #434.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants