Test-infra: verify-owners: misleading error message

Created on 5 Sep 2019  路  13Comments  路  Source: kubernetes/test-infra

Currently the verify-owners plugin states that users must be members of the org:

https://github.com/kubernetes/test-infra/blob/4782ba3a238e4c52de4a39d4e4b25f0822dc61ef/prow/plugins/verify-owners/verify-owners.go#L46

When in reality it is using the trigger.TrustedUser call:

https://github.com/kubernetes/test-infra/blob/4782ba3a238e4c52de4a39d4e4b25f0822dc61ef/prow/plugins/verify-owners/verify-owners.go#L500

This uses the trigger configuration to do many checks, only one of which is the organization membership one, and only conditionally:

https://github.com/kubernetes/test-infra/blob/4782ba3a238e4c52de4a39d4e4b25f0822dc61ef/prow/plugins/trigger/trigger.go#L164-L194

We should make trigger.TrustedUser return a reason for not being trusted so that we can have correct messages.

/help-wanted

areprohook good first issue help wanted kinbug sicontributor-experience sitesting

Most helpful comment

hi, could i work on this?

All 13 comments

/cc @cblecker @nikhita

/sig contributor-experience

@nikhita you are so fast! <3

hi, could i work on this?

@kikisdeliveryservice absolutely!

@kikisdeliveryservice Is this something you're still looking to work on? :)

@cblecker yes apologies, I have a wip that I will clean up and push a PR in the next few days

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

/remove-lifecycle stale

@stevekuznetsov Do we need to change the error message here or just add the reason as to why we arent trusted like not an org admin
CC @cblecker @nikhita

/assign

Fixed in #17658

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xiangpengzhao picture xiangpengzhao  路  3Comments

cjwagner picture cjwagner  路  3Comments

lavalamp picture lavalamp  路  3Comments

stevekuznetsov picture stevekuznetsov  路  3Comments

BenTheElder picture BenTheElder  路  4Comments