-
Notifications
You must be signed in to change notification settings - Fork 381
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
META GitHub Bot #3238
Comments
Please change the logo; it is generally poor and not suitable for small sizes. |
Morgan already pinged me about this. The bot unchecks because it can't fetch the list of members from the core-contributors team, so it can't verify if you're allowed to check. It might be a token issue, I'll look into it today. Also this one is weird: https://github.com/gnolang/gno/actions/runs/12072757244
Ok 👍 |
Another issue: https://github.com/gnolang/gno/actions/runs/12082335167/job/33693214789?pr=3096
|
This is already blocked by GitHub settings. You can keep the check if you believe the bot explains it better, but it shouldn't block the merge. It should be marked "orange" to indicate a warning. |
@moul I can disable it, just added it because it was one of the rule requested initially here, I think we should probably merge the fixes here first and then fine-tune the configuration.
I replaced all |
Actually, not anymore; I don't recall exactly why, but this was disabled some short while ago. |
I agree that the "out-of-date with the base branch" message is unnecessary. In addition, it can lead the author of the PR to keep clicking the "Update branch" button, which we don't want. (See this message from Leon to a user who was doing this.) |
This PR will allow debugging errors of [this type](https://github.com/gnolang/gno/actions/runs/12072757244) that unfortunately cannot be tested locally since they rely on the context of GitHub Actions. Since I also had to add flags to the matrix subcommand, I moved the two matrix and check subcommands into subfolders. This PR also modify the comment to stick to moul's request and fixes several Github Actions errors. Related to #3238 Changes: - d11ad5a moves matrix and check subcommands to their own packages in internal - 462ac01 5c1edda ffdce93 adds a debug to matrix subcommand (print event input / matrix output) + direct output of matrix to GitHub Actions using a matrix-key flag - 6af501d embed comment template file as a string at compile time instead of opening it at runtime - 59c3ad6 modifies bot comment to meet [this requirements](#3238 (comment)) - 241a755 filter out from the matrix generation and the PR processing all issues or closed PRs (process / list only opened PRs) <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests </details> --------- Co-authored-by: Morgan <[email protected]>
yeah, it's a warning, but not a requirement. maybe we can enable it back since Teritori is now submitting PRs which are modifiable by us, and we have a check to ensure that the branch is modifiable by maintainers. |
#3135 -> green, but red. |
On PR #2597, the "stale bot" added the stale label and a comment. This triggered the meta guidelines bot to add a comment. Is this considered "activity" on the PR and does it reset the timer for the stale bot? |
Still the same error as here, basically, the bot is unable to create a commit status like this: That's the last known issue for now. I created a test Github organisation and I'm currently trying to reproduce this issue to understand what settings needs to be modified on gnolang/gno. |
Mmmh yes I think it should unfortunately reset the stale timer, the stale bot will probably remove the label when it will run tonight at 1:30am. I think there are two workarounds:
|
You're right, @aeddi . The stale bot removed the stale label on PR #2597 . This will cause lots of confusion. I prefer your option "Add an if statement to the GitHub Actions bot workflow to ignore the 'labeled' event when the author happens to be the stale bot." In general, I think the bots should ignore each other's actions. |
Simple update of the bot README to mention the necessary permissions for the bot to operate, see this comment: #3238 (comment) <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests </details>
@jefft0 Okay, so after digging a bit, I just saw that it wasn't the addition of the label by the stale bot that triggered the Gno bot. I think that the events emitted by the However, what seems to have happened after analyzing the PR and this workflow run is that:
So I will ignore the events emitted by Codecov in the Gno bot's workflow, but I wonder if the fact that Codecov edits its own comment every time the stale bot adds the stale label generates activity on the PR that causes the stale bot to remove the label afterwards. That could explained why the stale bot removed the label right after adding it on the PR you sent me on Signal, when the Gno bot was not running yet. Edit: I just checked, and indeed, that seems to be the source of the problem. The Codecov comment was edited right after the label was added by the stale bot. I have no idea if we can disable this on Codecov, and I don't have access to the admin interface. |
FYI, the bot was just added as a contributor with a write role to the gno repo, so this last issue seems to be fixed : #3238 (comment) |
Yes, good news. The stale bot just added the stale label on PR #2655, the GnoD2D bot added its comment, and the stale label is still there. :-) |
@jefft0 Unfortunately, I think the bot will notice the new comment and remove the label during its next run tonight at 1:30am. I will open a PR to ignore event from codecov this morning. |
Simple update of the bot README to mention the necessary permissions for the bot to operate, see this comment: gnolang#3238 (comment) <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests </details>
It's a bit of a "push and pray" since it would take too long to set up to reproduce this on my test repo/org, but I've triple-checked the documentation, the previous runs, etc., and it should be fine. Related to gnolang#3238 (comment) <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests </details>
See gnolang#3238 (comment) Signed-off-by: moul <[email protected]>
…#3303) This PR improves the bot on two points: - it now handle `pull_request_review` events to address [this concern](gnolang#3238 (comment)) gnolang@4f7b0b8 - a new condition allows to check if a PR was created from a fork to address [this concern](gnolang#3238 (comment)) gnolang@f491d95
This PR significantly modifies the github-bot's comment and adds a button to force the success of its CI check, even it the requirements provided in the config are not met. Related to #3238 (comment) **Edit**: I updated [the comment below](#3311 (comment)) by running the bot on my laptop if you want to see the result (so the skip button is not working yet).
sounds good to try this out :) |
@gfanton warned me that the bot failed on his fork, which makes sense since the bot needs a token to work. I will simply add a condition to skip the bot workflow if the action variables/secrets are not set on the repo. This way, there will be no more failures on forks, and people who want to can still set up the bot on their fork. |
Do not hesitate to let me know if individual issues could be clearer, but I believe it's better to avoid the noise.
The text was updated successfully, but these errors were encountered: