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

robots/commenter: add --include-locked flag #23029

Merged

Conversation

spiffxp
Copy link
Member

@spiffxp spiffxp commented Jul 26, 2021

This fixes something I just happened to notice while verifying #22997 as part of #12296

https://testgrid.k8s.io/sig-contribex-k8s-triage-robot#stale - the job is commenting, but it's also failing because it's unable to comment on a locked issue, e.g. https://storage.googleapis.com/kubernetes-jenkins/logs/ci-k8s-triage-robot-stale/1419722568809582592/build-log.txt

In this case the issue is being used as an announcements issue, so they don't want contributors to be able to comment on it.

Rather than add is:unlocked to all of the queries, ignore locked issues by default. This is the same thing we do with --include-archived and --include-closed.

Added equivalent test cases, reordered a bit so the order is consistently "archived, closed, locked"

Functions just like --include-archived and --include-closed. Added
equivalent test cases, reordered a bit so the order is consistently
"archived, closed, locked"
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/robots Issues or PRs related to code in /robots sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Jul 26, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: spiffxp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 26, 2021
@spiffxp
Copy link
Member Author

spiffxp commented Jul 26, 2021

/cc @mrbobbytables @nikhita @cblecker

@dims
Copy link
Member

dims commented Jul 27, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 27, 2021
@k8s-ci-robot k8s-ci-robot merged commit b2b0794 into kubernetes:master Jul 27, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.22 milestone Jul 27, 2021
@spiffxp spiffxp deleted the commenter-avoid-locked-issues branch July 27, 2021 04:15
@spiffxp
Copy link
Member Author

spiffxp commented Jul 27, 2021

I was assuming this was going to push an image but I don't see a new one

$ gcloud container images list-tags gcr.io/k8s-testimages/commenter
DIGEST        TAGS                                     TIMESTAMP
10befea8dfed  latest,latest-fejta,v20181130-0587c4793  1969-12-31T16:00:00
1ba92d71d2a6
61b4016e1b4e
7e9e45304532  v20170807-cbcd2e51,v20170808-abf66782
85b501a73e34
8b84fd19c67b
8f184775386a
8fd391ff6548
a0a84a225012

@spiffxp
Copy link
Member Author

spiffxp commented Jul 27, 2021

https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/post-test-infra-push-prow/1419823923347853312

Ah, this is pushed to k8s-prow (why?)

2021/07/27 01:11:35 Destination {STABLE_PROW_REPO}/commenter:latest was resolved to gcr.io/k8s-prow/commenter:latest after stamping.
2021/07/27 01:11:35 Destination {STABLE_PROW_REPO}/commenter:{DOCKER_TAG} was resolved to gcr.io/k8s-prow/commenter:v20210727-b2b0794248 after stamping.
2021/07/27 01:11:35 Destination {EDGE_PROW_REPO}/commenter:latest was resolved to gcr.io/k8s-prow-edge/commenter:latest after stamping.
2021/07/27 01:11:35 Destination {STABLE_PROW_REPO}/commenter:latest-{BUILD_USER} was resolved to gcr.io/k8s-prow/commenter:latest-root after stamping.
2021/07/27 01:11:35 Destination {EDGE_PROW_REPO}/commenter:latest-{BUILD_USER} was resolved to gcr.io/k8s-prow-edge/commenter:latest-root after stamping.
2021/07/27 01:11:35 Destination {EDGE_PROW_REPO}/commenter:{DOCKER_TAG} was resolved to gcr.io/k8s-prow-edge/commenter:v20210727-b2b0794248 after stamping.
$ gcloud container images list-tags gcr.io/k8s-prow/commenter
DIGEST        TAGS                                       TIMESTAMP
afca7082e992  latest,latest-root,v20210727-b2b0794248    2021-07-26T18:00:15

@spiffxp
Copy link
Member Author

spiffxp commented Jul 27, 2021

Opened #23032 to bump jobs to use this image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/robots Issues or PRs related to code in /robots cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants