-
Notifications
You must be signed in to change notification settings - Fork 3
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 Request] Can edx-transifex-bot not require PR approval for credentials, credentials-themes? #909
Comments
Thank you for your report! @openedx/axim-oncall will triage within a business day. Simple requests usually take 2-3 business days to resolve; more complex requests could take longer. |
Thanks for the report @deborahgu , I'll take a look soon. |
(Copying this in from our Slack channel where I'd originally posted it. tl;dr -- I'm going to give the bot admin rights on a repo, and confirm that this lets it merge PRs without approval) Background:
Problem:
Proposed solution:
Rejected solutions:
|
Huh, the bot is already an admin on credentials and credentials-themes. @deborahgu , I see that the PR approval requirement is an issue for the bot in some repos, but are you seeing anything in the credentials and credentials-themes jobs in particular that's making it look like the PR approval requirement is the culprit? Looking at this recent credentials PR, I see "failing message compilation prevents this PR from being automatically merged" as well as this failed CI job. Is it possible that either of those, not PR approval, is what's blocking the merge? |
absolutely could be something else. When I was trying to debug it, I was looking more at credentials-themes PRs like this one, where as far as I can tell every one of the checks passed, and the only failures I could see were that it wasn't approved My other bit of evidence is that my current work around is:
So that was my source of evidence that there was an approval required. Because when I added an approval, the job passed. But it's a weird situation that I'm not saying I'm definitely right! Could it be that the repositories are not set up for the bot with admin rights to be able to merge without approval? |
Your evidence for credentials-themes seems sound to me :) I agree that openedx/credentials-themes#703 looks like it failed to merge due to the approval requirement. I am actually seeing a difference between credentials and credentials-themes settings ("Allow specified actors to bypass required pull requests") which I'd previously thought was unrelated but might actually have an effect here. Have you noticed the same behavior for credentials, or just for credentials-themes? |
confession time: I did my debugging on credentials-themes, and then I said to myself, said I, "well that would explain both situations!" And even though I know that sometimes we actually do have failing checks, I didn't even look to see if there had been any, so it's possible that it is unrelated. |
No problem haha, it was a reasonable assumption. I have just updated credentials-themes' settings to match credentials'. Are you able to re-run the credentials-themes job manually and see if the PR goes through? |
I did just rerun it but there were no new translation strings so it didn't make a PR. But I'm sure there will be some soon so we could hold off and wait. (I suppose we could also translate something but I don't have transifex access, heh.) |
Gotcha. I just made the same fix to edx-ora2 settings, let me reach out to Aurora and see if they can re-run that job. |
Now edx-ora2 is "failing message compilation" too :P openedx/edx-ora2#2071 I think we have two potentially-distinct issues which we need to tease apart:
@deborahgu , could you post some logs from the credentials job so I can dig into what issue (2) might be? |
(semi-related: #940) |
Closing this as a dupe of #940 |
This is all set on edx-platform now but I need to come back and make sure the same fix is applied to credentials and other repos. |
@kdmccormick is this still in progress? |
credentials is looking good now: openedx/credentials#2325 credentials-themes hasn't gotten a translations PR since Oct 2023, so I think it is failing in the Jenkins job before it even gets to the PR-making stage. @deborahgu , I'm going to close this now, but if you fix the Jenkins job and find that PRs still aren't auto-merge, feel free to re-open this. |
Firm Name
2U
Urgency
Low (2 weeks)
Requested Change
Can edx-transifex-bot not require PR approval for credentials, credentials-themes?
Reasoning
The jenkins jobs for pull translations for
credentials
andcredentials-themes
fail every night, and the reason that they do is that the process is:This is obviously counterproductive.
I can see that we have a bot set up to not require PR approval on every repository, because if I look at the bot's PRs, they are clearly merging without requiring approval on several repos, including edx-platform, edx-analytics-dashboard, and edx-proctoring.
That being said, they are failing on the majority of repositories, so maybe this is a conscious decision. If there is, could you tell me that as well? Because then I will put in a request to find out if we can change the Jenkins job so it doesn't try to close the pull request on failure. (at least, for appropriately flagged jobs.)
Thanks.
The text was updated successfully, but these errors were encountered: