etcd icon indicating copy to clipboard operation
etcd copied to clipboard

Use bot to remove stage/triaged tag if no activity for a while

Open siyuanfoundation opened this issue 10 months ago • 21 comments

What would you like to be added?

Use a bot to remove stage/triaged tag if no activity in a PR/issue for a while (2 month?)

We can probably use the k8 triage bot

Why is this needed?

It is easier to rely on the stage/triaged tag filter to triage issues and PRs, but we need to watch out for abandoned issue/PR.

/cc @ivanvc @ArkaSaha30

siyuanfoundation avatar Mar 13 '25 18:03 siyuanfoundation

@siyuanfoundation i'd like to work on this one. thanks.

IAMRogerXi avatar Mar 23 '25 23:03 IAMRogerXi

/assign @IAMRogerXi

Thank you!

siyuanfoundation avatar Mar 24 '25 15:03 siyuanfoundation

i will start the work on this item this week...

IAMRogerXi avatar Apr 04 '25 03:04 IAMRogerXi

PR: https://github.com/etcd-io/etcd/pull/19716

IAMRogerXi avatar Apr 07 '25 13:04 IAMRogerXi

PR: https://github.com/etcd-io/etcd/pull/19716

Hi, @IAMRogerXi. Thanks for your pull request. I see that you're introducing a new GitHub action. Because we have access to K8s' infra, and because we're trying to minimize our GirHub actions workflows, may I ask if you explored using the k8s-triage-bot as suggested in the description (https://github.com/kubernetes/test-infra/blob/9c8103abd65925a9e075c01908d40c31d00c1bbf/config%2Fjobs%2Fkubernetes%2Fsig-k8s-infra%2Ftrusted%2Fsig-contribex-k8s-triage-robot.yaml)?

If it wasn't a good fit, can you explain why? Thanks, again! :)

ivanvc avatar Apr 07 '25 14:04 ivanvc

thanks for the comment. i'm not familiar with the container gcr.io/k8s-staging-test-infra/commenter and Prow commands. that's why i use JS to fetch the details. but after some researching, i managed to use commenter to add comment in my own repository.

however, it is not that easy to setup a Prow command env to test the Prow commands like /remove-stage triaged in my own repository. may i know what will be a proper unit testing for this part? thanks.

IAMRogerXi avatar Apr 08 '25 12:04 IAMRogerXi

however, it is not that easy to setup a Prow command env to test the Prow commands like /remove-stage triaged in my own repository. may i know what will be a proper unit testing for this part? thanks.

It is pretty hard to test it because of bot access limitations. We will have to depend on code review and see what happens ^_^. But we should still try to use prow for this issue.

siyuanfoundation avatar Apr 08 '25 21:04 siyuanfoundation

thanks for the explanation. i will abandon #19716 and push a new one with prow command in comment.

IAMRogerXi avatar Apr 08 '25 22:04 IAMRogerXi

i don't have time to push a PR last weekend. will try my best to do so this week...

IAMRogerXi avatar Apr 13 '25 23:04 IAMRogerXi

Hi @IAMRogerXi , are you still working on this issue?

lavishpal avatar Jun 07 '25 00:06 lavishpal

a bit busy on work recently... will try to catch this up next week

IAMRogerXi avatar Jun 07 '25 09:06 IAMRogerXi

Hi @ivanvc , @siyuanfoundation By reading the above comments, I noticed that similar jobs are defined in the existing yaml. Would it be okay to add the etcd-specific job there, or would it be better to create a new file like etcd-triage-bot.yaml under the same directory? Just want to confirm the preferred approach before opening a PR.

lavishpal avatar Jun 07 '25 12:06 lavishpal

Hi @lavishpal, thanks for your interest in working on this. But, @IAMRogerXi is assigned and said he'll get back at it next week. If he doesn't show progress next week, we'll re-assign the task. But as long as it's assigned to another one, let's try not to work on it. Thanks.

ivanvc avatar Jun 09 '25 00:06 ivanvc

/label stage/triaged

IAMRogerXi avatar Jun 15 '25 15:06 IAMRogerXi

@IAMRogerXi: The label(s) /label stage/triaged cannot be applied. These labels are supported: api-review, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, team/katacoda, refactor, ci-short, ci-extended, ci-full. Is this label configured under labels -> additional_labels or labels -> restricted_labels in plugin.yaml?

In response to this:

/label stage/triaged

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Jun 15 '25 15:06 k8s-ci-robot

/remove-label stage/triaged

IAMRogerXi avatar Jun 15 '25 15:06 IAMRogerXi

@IAMRogerXi: The label(s) /remove-label stage/triaged cannot be applied. These labels are supported: api-review, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, team/katacoda, refactor, ci-short, ci-extended, ci-full. Is this label configured under labels -> additional_labels or labels -> restricted_labels in plugin.yaml?

In response to this:

/remove-label stage/triaged

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Jun 15 '25 15:06 k8s-ci-robot

/remove-triage accepted

IAMRogerXi avatar Jun 15 '25 15:06 IAMRogerXi

@IAMRogerXi: Those labels are not set on the issue: triage/accepted

In response to this:

/remove-triage accepted

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Jun 15 '25 15:06 k8s-ci-robot

looks like there is a limitation in Prow. it only supports the following labels.... https://github.com/kubernetes/test-infra/blob/master/label_sync/labels.md#why-these-labels

triage/accepted Indicates an issue or PR is ready to be actively worked on. org members label
triage/duplicate Indicates an issue is a duplicate of other open issue.This was previously close/duplicate, duplicate, humans  
triage/needs-information Indicates an issue needs more information in order to work on it.This was previously close/needs-information, humans  
triage/not-reproducible Indicates an issue can not be reproduced as described.This was previously close/not-reproducible, humans  
triage/unresolved Indicates an issue that can not or will not be resolved.This was previously close/unresolved, invalid, wontfix, humans  

to reuse the existing bot, supported tags such as triage/accepted must be applied from now on.

IAMRogerXi avatar Jun 15 '25 15:06 IAMRogerXi

@ivanvc @siyuanfoundation

my solution is to:

  1. re-use the action with Prow.
  2. introduce a new tag 'triage/accepted' in etcd repo - so that Prow can manipulate the tag correctly.
  3. update the existed 'stage/triaged' to 'triage/accepted' to align the new context.

do you have any comment on it?

if this is not an acceptable approach, i think i need to go back to my initial implement, which uses JS in action to handle the tag.

IAMRogerXi avatar Jun 18 '25 11:06 IAMRogerXi

@ivanvc @siyuanfoundation may i know whether any reviewer will help to review the PR? thanks.

IAMRogerXi avatar Jul 15 '25 10:07 IAMRogerXi

I think your approach from 2 and 3 makes sense. I added this topic as an agenda item for our next community meeting (July 24th). I'll come back to this issue after we discuss it there (I'm looking for an agreement to update our labels).

Thanks for the work, @IAMRogerXi :)

ivanvc avatar Jul 18 '25 19:07 ivanvc

Link to #18110

ivanvc avatar Jul 18 '25 19:07 ivanvc

hello @ivanvc, may I know whether there is any feedback?

IAMRogerXi avatar Aug 30 '25 11:08 IAMRogerXi

Sorry, I forgot to provide an update after the community meeting. The consensus was to align with k/k's labels. We also discussed this during our etcd operator WG meeting cc. @jberkus.

ivanvc avatar Sep 03 '25 04:09 ivanvc

Link to etcd-io/etcd-operator#217

ivanvc avatar Nov 06 '25 19:11 ivanvc