-
-
Notifications
You must be signed in to change notification settings - Fork 786
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
Workflow Run Set PR labels not adding labels to Pull Requests #2933
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Hi @tunglinn, thank you for taking up this issue! Hfla appreciates you :) Do let fellow developers know about your:- You're awesome! P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :) |
Availability: 6 hours/Friday, Sunday, Monday |
Progress: Understanding how Github actions work, duplicated repo into a private repo for testing. |
I'm unable to access the action logs from the mentioned PRs (log retention is capped at 90 days for public repositories). Here's a more detailed report of the mentioned issues: For #2918, PR label and PR request instruction workflow wasn't run on the creation of the PR. on a commit (b4ae447) that comes from a different PR that the user reviewedNext, #2899 is not a true failure example. My understanding is the user manually added the labels during the creation of the PR Finally, for #2969, it looks like both the PR labels and PR request instructions workflow did not trigger if you check the "Checks" tab in the PR. Patterns found: For both 2918 and 2969, there was a different user in an earlier commit. I will look into other PRs with similar commit histories.
None of the workflows triggered when PR was opened even though it should have according to this code.
I found some recent PRs where github-actions did not add labels. 7/6/2022 - when PR was created, did not link issue |
Found #3318, where a commit from a different user is added into the PR. Lint SCSS is always triggered on pull requests being synchronized. One potential solution is to add Next steps will be recreating and testing in private repository. |
Found a few PR with same issue with logs still intact! #3116 - false alarm, the merge branch isn't correct, workflows do not run unless they are for gh-pages, feature-homepage-launch, or feature-tech-dropdown |
Did some testing in existing PRs. I removed a label, updated the top PR comment, which should trigger the PR label workflow to re-add the label. When testing in an already merged pull request #3291, the PR label action is able to be triggered.I tested #2905, a PR from the same time as the two above. The workflow did trigger.I thought that the workflow only triggers if the branch the PR is pulling from still exists. But #2970 has a deleted branch, yet it triggers PR label action.#2943 doesn't trigger. The from branch is greyed out, which is different from deleted branches in which you can click but brings you to a 404 error page. |
@JessicaLucindaCheng I think it's because there's a merge conflict. I mentioned a case similar to this in this comment #2933 (comment). Do we want it to run even if there's a merge conflict? Another piece of evidence is that Lint SCSS didn't run either. |
I've been unable to replicate the bug. Is it possible that it was a bug on the server side (GHA)? |
Team has decided to close this issue and write up a decision report. Decision report has my findings and recommended steps to take if the bug does appear again. |
Overview
As a developer, I want all my workflow runs to be successful. For this issue, we will identify and fix the error which causes the Workflow Run Set PR labels to fail.
Details
Workflow Run Set PR labels is not adding labels to some of the pull requests. We need to fix this bug so that the labels from the issue can be added to their linked pull requests automatically.
Action Items
Resources/Instructions
set pr labels yml file
set pr label js file
Related prs where this issue was encountered: #2918, #2899, #2969
Sample workflow failure: https://github.com/hackforla/website/actions/runs/1904313617
The text was updated successfully, but these errors were encountered: