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

Use k8s-triage-robot in lieu of fejta-bot for kubernetes issue/pr commenter jobs #12296

Closed
nikhita opened this issue Apr 21, 2019 · 47 comments · Fixed by #13683 or #22997
Closed

Use k8s-triage-robot in lieu of fejta-bot for kubernetes issue/pr commenter jobs #12296

nikhita opened this issue Apr 21, 2019 · 47 comments · Fixed by #13683 or #22997
Assignees
Labels
area/github-management Issues or PRs related to GitHub Management subproject kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Milestone

Comments

@nikhita
Copy link
Member

nikhita commented Apr 21, 2019

Background: @fejta-bot automatically marks issues as stale/rotten and closes them if they don't have any activity for certain number of days. It is an unprivileged user and is not a member of any of the Kubernetes GitHub orgs.

While enabling fejta-bot automation across all Kubernetes GitHub orgs, it was suggested to rename it to something "official": https://groups.google.com/d/topic/kubernetes-dev/9ps8uNXJ10k/discussion

This issue is to track discussing renaming fejta-bot - what to rename it as or if we should use another account entirely - and making sure that this is rolled out across orgs.

/sig contributor-experience
/sig testing
/cc @cblecker @fejta @spiffxp

@nikhita nikhita added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Apr 21, 2019
@k8s-ci-robot k8s-ci-robot added sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Apr 21, 2019
@fejta
Copy link
Contributor

fejta commented Apr 21, 2019

serious-fejta-bot with a grumpy cat partially converted into a robot for it's profile pic

@nikhita
Copy link
Member Author

nikhita commented Jul 18, 2019

/assign

Assigning it to myself to try to move this along in contribex

@stevekuznetsov
Copy link
Contributor

Any reason not to use one of the existing robots?

@spiffxp
Copy link
Member

spiffxp commented Jul 24, 2019

We need prow to react to the comments posted by these jobs, so it can't be @k8s-ci-robot. We could maybe use @k8s-github-robot, but I would prefer using a bot that has no privileges.

@spiffxp
Copy link
Member

spiffxp commented Jul 24, 2019

You'll want to rename more than the account:

Things @fejta-bot does:

  • /lifecycle stale | /lifecycle rotten | /close
  • /retest
  • /check-cla
  • comment that API review may be needed
  • create github issues

Naming is hard, WDYT of either of these?

@spiffxp
Copy link
Member

spiffxp commented Jul 24, 2019

/milestone v1.16
/assign

@k8s-ci-robot k8s-ci-robot added this to the v1.16 milestone Jul 24, 2019
@chris-short
Copy link
Contributor

k8s-cuddle-bot
k8s-repo-sanity-bot
k8s-triage-bot

@justaugustus
Copy link
Member

+1 to k8s-triage-[ro]bot!
Can probably dovetail with some of the stuff mentioned here: kubernetes/community#3456

@dims
Copy link
Member

dims commented Jul 24, 2019

+1 to k8s-triage-bot

@InAnimaTe
Copy link

fajita-bot

@nikhita
Copy link
Member Author

nikhita commented Jul 24, 2019

+1 to k8s-triage-robot. Since we have -robot suffixes for our other bot accounts, using -robot feels consistent.

To be clear, this would be creating a new account instead of renaming the original one, right? I'm assuming @fejta would like to keep @fejta-bot around for testing, etc... @fejta can you confirm? :)

@spiffxp
Copy link
Member

spiffxp commented Jul 30, 2019

/area github-management

To be clear, this would be creating a new account instead of renaming the original one, right? I'm assuming @fejta would like to keep @fejta-bot around for testing, etc... @fejta can you confirm? :)

I spoke offline with fejta last week and am confirming by proxy, as he's out this week

@k8s-ci-robot k8s-ci-robot added the area/github-management Issues or PRs related to GitHub Management subproject label Jul 30, 2019
@spiffxp
Copy link
Member

spiffxp commented Jul 30, 2019

I've squatted on http://github.com/k8s-triage-robot, what needs to happen now is:

  • an avatar
  • making a token
  • getting test-infra oncall to add the new secret to the cluster
  • swapping the jobs to use the new token
  • renaming the jobs / dashboards referenced above

note that fejta-bot is not a member of the org, doesn't have any privileges, doesn't need to have 2fa enabled; if we want that to change, I'd rather consider that out of scope here, and ask that those so motivated create a followup issue to

@nikhita
Copy link
Member Author

nikhita commented Jul 30, 2019

swapping the jobs to use the new token
renaming the jobs / dashboards referenced above

Created #13683 to get the ball rolling

an avatar

Do we know who created the avatar for @k8s-github-robot? It's pretty dope!

@spiffxp
Copy link
Member

spiffxp commented Jul 31, 2019

Do we know who created the avatar for @k8s-github-robot? It's pretty dope!

👋 😄

@spiffxp
Copy link
Member

spiffxp commented Jul 31, 2019

/priority important-soon

@k8s-ci-robot k8s-ci-robot added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Jul 31, 2019
@spiffxp
Copy link
Member

spiffxp commented Jul 22, 2021

/reopen
/assign
I'm willing to tackle this before v1.22 is released, or before v1.23 starts

@k8s-ci-robot k8s-ci-robot reopened this Jul 22, 2021
@k8s-ci-robot
Copy link
Contributor

@spiffxp: Reopened this issue.

In response to this:

/reopen
/assign
I'm willing to tackle this before v1.22 is released, or before v1.23 starts

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/test-infra repository.

@spiffxp
Copy link
Member

spiffxp commented Jul 22, 2021

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Jul 22, 2021
@spiffxp
Copy link
Member

spiffxp commented Jul 22, 2021

Added the k8s-triage-robot token to k8s-infra-prow-build-trusted kubernetes/k8s.io#2389

Next step is to try a sample job to make sure it works, then we can migrate the fejta-bot jobs

@spiffxp
Copy link
Member

spiffxp commented Jul 26, 2021

I originally posted more comments in the wrong issue (#11402) so I'm copy-pasting them here

@spiffxp
Copy link
Member

spiffxp commented Jul 26, 2021

The test job is failing (whoops I must have missed the tab name): https://testgrid.k8s.io/sig-contribex-k8s-triage-robot#api-review-help

It seems like bad credentials? https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/ci-k8s-triage-robot-testcomment/1418328613631037440

So I logged into k8s-triage-robot, and sure enough, no personal access tokens at all.

Created a new one, updated the secret, waiting for the next job run.

Originally posted by @spiffxp in #11402 (comment)

@spiffxp
Copy link
Member

spiffxp commented Jul 26, 2021

Failed run: encoutered 2 failures: [Failed to apply comment to kubernetes/test-infra#11402: the GitHub API request returns a 403 error: {"message":"Must have admin rights to Repository.","documentation_url":"https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Failed to apply comment to kubernetes/org#2465: the GitHub API request returns a 403 error: {"message":"Must have admin rights to Repository.","documentation_url":"https://docs.github.com/rest/reference/issues#create-an-issue-comment"}]

Originally posted by @spiffxp in #11402 (comment)

@spiffxp
Copy link
Member

spiffxp commented Jul 26, 2021

Fixed the token, it needed scope:public_repo

The query also didn't include repo:kubernetes/test-infra, so it ended up commenting here: kubernetes/org#2465 (comment)

Originally posted by @spiffxp in #11402 (comment)

@spiffxp
Copy link
Member

spiffxp commented Jul 26, 2021

Orrrr apparently github's search returned one issue the first time, and two the second. But that's it. Should see no more spam at this point.

Opened #22997 to switch all the fejta-bot jobs over to k8s-triage-robot

Originally posted by @spiffxp in #11402 (comment)

@spiffxp
Copy link
Member

spiffxp commented Jul 26, 2021

https://github.com/issues?q=involves%3Ak8s-triage-robot+archived%3Afalse+sort%3Aupdated-desc+ - so the bot is definitely commenting now

There are still some "failing" jobs on the dashboard

@spiffxp
Copy link
Member

spiffxp commented Jul 27, 2021

Opened a PR to bump jobs to use the latest commenter:

I think because I tried re-running the other two jobs (since I can't re-trigger them), they tried and failed against the wrong cluster again, and their interval might have reset. In other words, may need to wait to sometime after 3pm PT to see if they go back to green

@spiffxp
Copy link
Member

spiffxp commented Aug 17, 2021

/milestone v.122
This has been completed

@k8s-ci-robot
Copy link
Contributor

@spiffxp: The provided milestone is not valid for this repository. Milestones in this repository: [someday, v1.21, v1.22, v1.23, v1.24, v1.25]

Use /milestone clear to clear the milestone.

In response to this:

/milestone v.122
This has been completed

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/test-infra repository.

@spiffxp
Copy link
Member

spiffxp commented Aug 17, 2021

/milestone v1.22
/close

@k8s-ci-robot k8s-ci-robot modified the milestones: v1.21, v1.22 Aug 17, 2021
@k8s-ci-robot
Copy link
Contributor

@spiffxp: Closing this issue.

In response to this:

/milestone v1.22
/close

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/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/github-management Issues or PRs related to GitHub Management subproject kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Projects
None yet