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

Stale review dismissal loop #5868

Closed
lightclient opened this issue Nov 2, 2022 · 16 comments
Closed

Stale review dismissal loop #5868

lightclient opened this issue Nov 2, 2022 · 16 comments
Labels
bug If this is a PR, this PR fixes a bug. If this is an issue, this issue reports a bug. r-other Relates to some other part of the EIPs repository w-stale Waiting on activity

Comments

@lightclient
Copy link
Member

lightclient commented Nov 2, 2022

Pull Request

#5793

We need to clean up the PR output so there aren't a ton of stale review dismissals.

Screen Shot 2022-11-02 at 07 56 29

Relevant log output

No response

@lightclient lightclient added the bug If this is a PR, this PR fixes a bug. If this is an issue, this issue reports a bug. label Nov 2, 2022
@Pandapip1
Copy link
Member

Pandapip1 commented Nov 2, 2022

Not possible; this is a GitHub limitation ("feature").

@lightclient
Copy link
Member Author

How is it a github limitation? How do other systems deal with this?

@Pandapip1
Copy link
Member

How do other systems deal with this?

They don't have reviews automatically dismissed on push. This is required for the EIPs repository, however, since PRs auto-merge.

@JEAlfonsoP
Copy link

Hi.

Could ? we try this:

Settings ▶ Branches ▶ Branch protection rules ▶ Edit ▶ Uncheck "Dismiss stale pull request approvals when new commits are pushed".

Either way I will take a look into EIP-Bot to see if there is a way to do it from the Bot.

@Pandapip1
Copy link
Member

No, we can't do that. That permission must be checked to ensure that reviews are dismissed when new commits are pushed to branches, as you can see in the screenshot @lightclient linked.

@JEAlfonsoP
Copy link

So, you want to dismiss but not being notify ( no echo ) ?

@Pandapip1
Copy link
Member

I think that is the goal, yes.

@JEAlfonsoP
Copy link

Hi @Pandapip1 , I would like to explore two possible options to silent this alert (or any other one), 1st Have you tried/used Code Scanning (workflow) filters for the repo ? and 2nd There is a REST API for alerts/{alert_number} endpoint, have you tried/used it ?
Sorry for the direct questions, I just do not want to expend time in something that you may be already has tried it.. Ty.

@Pandapip1
Copy link
Member

Forgive me for the probably naive question, but how would enabling code scanning fix this problem?

@JEAlfonsoP
Copy link

Thanks for answering !
I would see if this (or any other alert) is listed in code scanning alerts and from there would use the -tag: filter to silent it.
But, as I said if you have not worked in it I will stop writing assumptions and will try to test it: implementing the code scanning workflow or coding the API into EIP-Bot. If you have any other idea please share it so I can either study it.

@Pandapip1
Copy link
Member

This is unrelated to EIP bot; this is a GitHub feature (logging automatic review dismissals in the timeline) that we want to disable.

@JEAlfonsoP
Copy link

JEAlfonsoP commented Nov 20, 2022

I believe that either, but I would like to find out each workflow's signal and see if we can silent (in case that is desired) it or not, one is what you mentioned above generated by GitHub itself.
If you agree I can proceed with the testing and If you are working on it, again I kindly ask you to let me know, and in case that you want to coordinate this study, let me know so I can DM you and so all the work goes in the same direction. Ty.

@Pandapip1
Copy link
Member

Feel free to do testing. It is almost certainly caused by the dismiss stale reviews branch protection option, however.

@JEAlfonsoP
Copy link

Ty. I will do

@Pandapip1 Pandapip1 added the r-other Relates to some other part of the EIPs repository label Jan 6, 2023
@github-actions
Copy link

There has been no activity on this issue for 1 week. It will be closed after 3 months of inactivity.

@github-actions github-actions bot added the w-stale Waiting on activity label Jan 15, 2023
@Pandapip1
Copy link
Member

I think this was a GitHub bug. The PR in question has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug If this is a PR, this PR fixes a bug. If this is an issue, this issue reports a bug. r-other Relates to some other part of the EIPs repository w-stale Waiting on activity
Projects
None yet
Development

No branches or pull requests

3 participants