Failing to install owners-autoassign plugin for Gerrit 3.5

141 views
Skip to first unread message

JouYoung Suh

unread,
Jun 22, 2022, 5:04:40 PM6/22/22
to Repo and Gerrit Discussion
Hello everyone, 

We are currently planning to use owners and owners-autoassign plugin for Gerrit 3.5, but we found out that owners-autoassign is not installed when initiating the Gerrit site. 

It had no problem when building both plugins and building Gerrit site, and owners-autoassign.jar is present under gerrit_site/plugins.

Also, manually installing owners-autoassign plugin using gerrit_site/plugins/owners-autoassign.jar also doesn't work, and it outputs an error message as shown in the attachment. 

I also could not replicate this issue on Gerrit 3.4, so it seems to be happening in Gerrit 3.5 only.

Is there anyone facing a similar issue, or had a chance to solve this problem?
Any help will be appreciated. 

Thank you


error_installing_owners-autoassign_plugin.txt

David Ostrovsky

unread,
Jun 23, 2022, 12:26:41 AM6/23/22
to Repo and Gerrit Discussion
suh...@gmail.com schrieb am Mittwoch, 22. Juni 2022 um 23:04:40 UTC+2:
Hello everyone, 

We are currently planning to use owners and owners-autoassign plugin for Gerrit 3.5, but we found out that owners-autoassign is not installed when initiating the Gerrit site. 

This is because of: [1], that was implemented in: [2]. Since: [3] the
usage of libModule: owners-api from owner-api plugin is mandatory.

See the updated installation instructions for  owners-autoassign plugin
in: [4], [5].

You can download owners-api.jar for gerrit 3.5 release line from Gerrit CI: [6].

As a side note, if you are getting this exception:

NoClassDefFoundError: com/googlesource/gerrit/owners/api/OwnersAttentionSet

You could have tried to search for this class on Zoekt, e.g.:


Khôi Đoàn Tấn Việt

unread,
Jul 12, 2022, 11:36:17 PM7/12/22
to Repo and Gerrit Discussion
Hi David

I tried install owner auto assign plugin,
I can not found owners-api.jar from gerrit ci
Where can I find it?

Thank you

Vào lúc 11:26:41 UTC+7 ngày Thứ Năm, 23 tháng 6, 2022, David Ostrovsky đã viết:

Khôi Đoàn Tấn Việt

unread,
Jul 12, 2022, 11:36:17 PM7/12/22
to Repo and Gerrit Discussion
Hi David Ostrovsky

I tried to install owner auto assign plugin but I can not find owners-api.jar file in gerrit CI
Where can I find it?

Thank you!
Vào lúc 11:26:41 UTC+7 ngày Thứ Năm, 23 tháng 6, 2022, David Ostrovsky đã viết:
suh...@gmail.com schrieb am Mittwoch, 22. Juni 2022 um 23:04:40 UTC+2:

David Ostrovsky

unread,
Jul 13, 2022, 1:27:11 AM7/13/22
to Repo and Gerrit Discussion
Khôi Đoàn Tấn Việt schrieb am Mittwoch, 13. Juli 2022 um 05:36:17 UTC+2:
Hi David Ostrovsky

I tried to install owner auto assign plugin but I can not find owners-api.jar file in gerrit CI
Where can I find it?

This is a known CI issue, see discussion in the context of this issue: [1].

I uploaded a fix to address it: [2], but the review was staled. I've just
applied the fix to the plugin-owners-bazel-master-stable-3.5 job on the CI
and restarted the build. Now the artifact for owners-api plugin is gathered
correctly: [3].

Reply all
Reply to author
Forward
0 new messages