Adding a review comment for a public project shouldn't require membership
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jenkins-launchpad-plugin |
Fix Released
|
Medium
|
Tom Haddon |
Bug Description
Currently if you're using launchpadTrigger if you're not a member of the team that owns the code, you get the following error:
INFO: You (prod-jenkaas-is) are not authorized to review this merge proposal. CI process will now be stopped.
Launchpad itself doesn't require these, anyone can comment on Merge Proposals (for public projects), and it would be good to not require more permissions than are needed. Obviously if you want to use autoland you'll need more permissions, but not all projects want this.
It looks like this is due to https:/
Related branches
- Paride Legovini: Approve
-
Diff: 133 lines (+64/-13)2 files modifiedjlp/jenkinsutils.py (+23/-9)
tests/test_jenkinsutils.py (+41/-4)
- Paride Legovini: Approve
-
Diff: 146 lines (+68/-12)3 files modified.gitignore (+1/-0)
jlp/jenkinsutils.py (+26/-9)
tests/test_jenkinsutils.py (+41/-3)
Changed in jenkins-launchpad-plugin: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Tom Haddon (mthaddon) |
Changed in jenkins-launchpad-plugin: | |
status: | Confirmed → Fix Released |
The current workflow is that as soon as the job is started, mp.nominateReviewer runs and it's visible to those looking at the MP that a review is pending from the bot account in question. When the actual CI run that tests the functionality required completes, the bot account then adds an "Approve" comment or a "Needs Fixing" comment. Depending on how long tests take to run this could be a very short or a long interval between nominating the review and adding the follow up comment. If the test run takes a long time, this is a useful indicator to reviewers that it's still in progress.
Removing this (or not failing if it fails) would mean that no longer happening.