-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Fix re-running failed jobs by committers without rebase #31792
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 re-running failed jobs by committers without rebase #31792
Conversation
7b1e2a0 to
a8ec922
Compare
a8ec922 to
80c02ce
Compare
|
cc: @o-nikolas and others - that should fix the situation when you are "just" rerunning someone's job without rebasing and it fails immediately. The #31451 changed the decision to run on to use "actor" which was incompatible with runner check. This caused - for example - attempts to re-run the jobs fail in #30637 |
|
This also caused attempts to re-run fail in https://github.com/apache/airflow/pull/30367/checks @uranusjr |
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.
| f"[warning]The {actor} retrieved as actor from GITHUB_CONTEXT's" | |
| f"[info]{actor} retrieved as actor from GITHUB_CONTEXT's" |
2 things:
- Don't need "the" here, even if "The potiuk retrieved as actor" does sounds good :)
- Shouldn't this be an info, not warning?
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 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 changed it to:
f"[warning]The actor: {actor} retrieved from GITHUB_CONTEXT's"
After apache#31451 there were cases where re-running failed builds by committers without rebasing the PR could have caused that the runs were scheduled on self-hosted runners, but the runner rejected the build because it came from non-trusted actor. This PR brings back the calculation of runs-on based on PR user login rather than on the actor of the build.
80c02ce to
8508dc8
Compare

After #31451 there were cases where re-running failed builds by committers without rebasing the PR could have caused that the runs were scheduled on self-hosted runners, but the runner rejected the build because it came from non-trusted actor.
This PR brings back the calculation of runs-on based on PR user login rather than on the actor of the build.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.