Test-infra: k8s-ci-robot shouldn't label "sig/api-machinery" if k8s-merge-robot comments "@kubernetes/sig-api-machinery-misc"

Created on 23 Jun 2017  路  26Comments  路  Source: kubernetes/test-infra

k8s-merge-robot comments on every issues which don't have a sig label. The comment includes e.g., @kubernetes/sig-api-machinery-misc for API Machinery(this example was added in #3102 as suggested in #3060). This comment leads to k8s-ci-robot labels "sig/api-machinery" for every issues. This is not expected. We should find a better way to address it.

/cc @@grodrigues3 @spxtr @crimsonfaith91

Most helpful comment

@spxtr @krzyzacy @xiangpengzhao @grodrigues3
The behavior is not due to sig-mention munger, but the regex for label plugin: https://github.com/kubernetes/test-infra/blob/master/prow/plugins/label/label.go#L47

Based on how the regex is written, a notification will be triggered even it is quoted or tailed with other words behind. I will get the regex fixed tomorrow. Thanks!

All 26 comments

This has already been addressed by this PR: https://github.com/kubernetes/test-infra/pull/3174

@crimsonfaith91 thanks for pointing it out. It would be great to merge it and deploy ASAP.

got lgtm now.

merged. i will ask around whether now is the right time to deploy the change.

:+1:

The change is merged, but we still need permission for deployment. i will follow closely on this.

Seems like the issue still exists after the patch is deployed. See: https://github.com/kubernetes/kubernetes/issues/48020
@crimsonfaith91

The change hasn't deployed yet. The test-infra team moves prow to another submit queue recently. I am not able to access it.

Please follow this: https://github.com/kubernetes/kubernetes/issues/47941#issuecomment-310703871

I am not able to do anything until I obtain the access to the submit queue. I will inform you when it is deployed. Thanks!

@krzyzacy please redeploy the submit queue when you get a chance.

@spxtr Thanks a lot!

@spxtr I have no idea about submit-queue yet, I'll work with @cjwagner Monday. It probably should be documented somewhere so that we can all be able to do this.

@crimsonfaith91 But I see that there is already quote for @kubernetes/sig-api-machinery-misc in the newest comment of k8s-merge-robot.
see: https://github.com/kubernetes/kubernetes/issues/48020#issuecomment-310838866

@xiangpengzhao Quotation should not trigger any sig mentioning. It means that it is due to another issue. I am investigating it now.
@spxtr @krzyzacy @grodrigues3 It looks like the changes have been deployed. Thanks for the help! :)

@spxtr @krzyzacy @xiangpengzhao @grodrigues3
The behavior is not due to sig-mention munger, but the regex for label plugin: https://github.com/kubernetes/test-infra/blob/master/prow/plugins/label/label.go#L47

Based on how the regex is written, a notification will be triggered even it is quoted or tailed with other words behind. I will get the regex fixed tomorrow. Thanks!

/assign @crimsonfaith91

I created another issue to discuss about the label plugin regex. For now, IMO it may be best to have:

There are no sig labels on this issue. Please add a sig label by:
(1) mentioning a sig: @kubernetes/sig-<team-name>-misc
e.g., sig-api-machinery-misc for API Machinery
(2) specifying the label manually: /sig <label>
e.g., /sig scalability for sig/scalability

_Note: method (1) will trigger a notification to the team. You can find the team list here and label list here_

agreed. This is also clear enough.

yup! thanks!

I went over PRs to remove unnecessary api-machinery label manually. It is great that the affected PRs are in small amount of number (going over the PRs took only 10 minutes). I will keep an eye on new PRs rolling out before #3201 is merged.

Resolved! Final bot comment:

There are no sig labels on this issue. Please add a sig label by:
(1) mentioning a sig: @kubernetes/sig-<team-name>-misc
e.g., @kubernetes/sig-api-machinery-* for API Machinery
(2) specifying the label manually: /sig <label>
e.g., /sig scalability for sig/scalability

_Note: method (1) will trigger a notification to the team. You can find the team list here and label list here_

/close

Great! It would make sig-api-machinery folks life happy:)
But I still doubt whether contributors know what the * represents in @kubernetes/sig-api-machinery-*...
Can we add something more, as below.
e.g., @kubernetes/sig-api-machinery-* for API Machinery, * can be misc, bugs, test-failures

We may also want to make the docs of sigs more clear.

Good idea! There is another issue opened yesterday for this: https://github.com/kubernetes/test-infra/issues/3190

:+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fen4o picture fen4o  路  4Comments

spzala picture spzala  路  4Comments

stevekuznetsov picture stevekuznetsov  路  4Comments

chaosaffe picture chaosaffe  路  3Comments

cjwagner picture cjwagner  路  3Comments