Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 569703 - Gerrit ECA Plugin Maintenance - December 14, 2020 @ 18:00 GMT
Summary: Gerrit ECA Plugin Maintenance - December 14, 2020 @ 18:00 GMT
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Website (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: phoenix.ui CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 569702 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-14 09:25 EST by Christopher Guindon CLA
Modified: 2021-01-13 13:54 EST (History)
7 users (show)

See Also:


Attachments
Release JAR (4.44 MB, application/x-java-archive)
2020-12-14 09:27 EST, Martin Lowe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Guindon CLA 2020-12-14 09:25:19 EST
As discussed on cross-project-issues-dev, we will attempt to upgrade our Gerrit ECA plugin today:
https://www.eclipse.org/lists/cross-project-issues-dev/msg18086.html

I would like to leverage this bug to report any issue with the upgrade.

It's crucial that the service is stable during the upcoming holidays. If we are not successful today, we will revert to the current version and we won't try this again until the new year!

@Martin, can you please a link to the release and artifact to deploy? 

@Webmaster, can you please update the Gerrit ECA plugin @ 18:00 GMT which is 1:00 pm in Ottawa.
Comment 1 Christopher Guindon CLA 2020-12-14 09:26:29 EST
*** Bug 569702 has been marked as a duplicate of this bug. ***
Comment 2 Martin Lowe CLA 2020-12-14 09:27:35 EST
(In reply to Christopher Guindon from comment #0)
> As discussed on cross-project-issues-dev, we will attempt to upgrade our
> Gerrit ECA plugin today:
> https://www.eclipse.org/lists/cross-project-issues-dev/msg18086.html
> 
> I would like to leverage this bug to report any issue with the upgrade.
> 
> It's crucial that the service is stable during the upcoming holidays. If we
> are not successful today, we will revert to the current version and we won't
> try this again until the new year!
> 
> @Martin, can you please a link to the release and artifact to deploy? 
> 
> @Webmaster, can you please update the Gerrit ECA plugin @ 18:00 GMT which is
> 1:00 pm in Ottawa.

Here is the release! https://github.com/EclipseFdn/gerrit-eca-plugin/releases/tag/1.0.16
Comment 3 Martin Lowe CLA 2020-12-14 09:27:56 EST
Created attachment 285032 [details]
Release JAR
Comment 4 Christopher Guindon CLA 2020-12-14 13:47:45 EST
The plugin is now available on production! 

Please report issues by leaving a comment on this bug.
Comment 5 Kai Hudalla CLA 2020-12-15 05:27:00 EST
(In reply to Christopher Guindon from comment #4)
> The plugin is now available on production! 
> 
> Please report issues by leaving a comment on this bug.

The Hono project's web site build job fails again with the plugin complaining about the bot user having no ECA [1] :-(

[1] https://ci.eclipse.org/hono/job/Hono-Website-Declarative-Pipeline/77/console
Comment 6 Martin Lowe CLA 2020-12-15 09:07:38 EST
(In reply to Kai Hudalla from comment #5)
> (In reply to Christopher Guindon from comment #4)
> > The plugin is now available on production! 
> > 
> > Please report issues by leaving a comment on this bug.
> 
> The Hono project's web site build job fails again with the plugin
> complaining about the bot user having no ECA [1] :-(
> 
> [1]
> https://ci.eclipse.org/hono/job/Hono-Website-Declarative-Pipeline/77/console

I'm investigating this now, there may be a hiccup with the API in how it validates bots (rather than the actual plugin). I'll report back here if/when we have a solution!
Comment 7 Martin Lowe CLA 2020-12-15 09:28:12 EST
(In reply to Martin Lowe from comment #6)
> (In reply to Kai Hudalla from comment #5)
> > (In reply to Christopher Guindon from comment #4)
> > > The plugin is now available on production! 
> > > 
> > > Please report issues by leaving a comment on this bug.
> > 
> > The Hono project's web site build job fails again with the plugin
> > complaining about the bot user having no ECA [1] :-(
> > 
> > [1]
> > https://ci.eclipse.org/hono/job/Hono-Website-Declarative-Pipeline/77/console
> 
> I'm investigating this now, there may be a hiccup with the API in how it
> validates bots (rather than the actual plugin). I'll report back here
> if/when we have a solution!

@Kai

I've looked into this, and while there is an issue with bots, it's actually not with Gerrit bot validation oddly enough. The issue is that it always uses the bot that would be checked for Gerrit against all services.

The issue with the Hono bot is that the Hono website isn't registered as a repository associated with the Hono project. Right now it's just the Hono and the Hono Extras repositories that are registered. If you add the site as a repository associated with the project, it should properly pick up roughly an hour later (caching server side for performance).

https://projects.eclipse.org/api/projects/iot_hono
Comment 8 Kai Hudalla CLA 2020-12-15 09:37:06 EST
(In reply to Martin Lowe from comment #7)
> @Kai
> 
> I've looked into this, and while there is an issue with bots, it's actually
> not with Gerrit bot validation oddly enough. The issue is that it always
> uses the bot that would be checked for Gerrit against all services.
> 
> The issue with the Hono bot is that the Hono website isn't registered as a
> repository associated with the Hono project. Right now it's just the Hono
> and the Hono Extras repositories that are registered. If you add the site as
> a repository associated with the project, it should properly pick up roughly
> an hour later (caching server side for performance).
> 
> https://projects.eclipse.org/api/projects/iot_hono

@Martin,

thanks for the analysis. Can you also provide a hint for how I can add the missing association? Can I do that myself or do I need to create an issue on Bugzilla?

Kai
Comment 9 Christopher Guindon CLA 2020-12-15 09:40:31 EST
(In reply to Martin Lowe from comment #7)
> (In reply to Martin Lowe from comment #6)
> > (In reply to Kai Hudalla from comment #5)
> > > (In reply to Christopher Guindon from comment #4)
> > > > The plugin is now available on production! 
> > > > 
> > > > Please report issues by leaving a comment on this bug.
> > > 
> > > The Hono project's web site build job fails again with the plugin
> > > complaining about the bot user having no ECA [1] :-(
> > > 
> > > [1]
> > > https://ci.eclipse.org/hono/job/Hono-Website-Declarative-Pipeline/77/console
> > 
> > I'm investigating this now, there may be a hiccup with the API in how it
> > validates bots (rather than the actual plugin). I'll report back here
> > if/when we have a solution!
> 
> @Kai
> 
> I've looked into this, and while there is an issue with bots, it's actually
> not with Gerrit bot validation oddly enough. The issue is that it always
> uses the bot that would be checked for Gerrit against all services.
> 
> The issue with the Hono bot is that the Hono website isn't registered as a
> repository associated with the Hono project. Right now it's just the Hono
> and the Hono Extras repositories that are registered. If you add the site as
> a repository associated with the project, it should properly pick up roughly
> an hour later (caching server side for performance).
> 
> https://projects.eclipse.org/api/projects/iot_hono

Martin that field is not editable by projects. 

This is reserved for the webmaster team. We don't want to include website repos in there as this is reserved for repos for the project.

The website is not part of the project.
Comment 10 Christopher Guindon CLA 2020-12-15 10:25:58 EST
Hi All,

I spoke to Wayne about this and we agreed that bots owned by the foundation are not required to include a sign-off-by and we can assume that they have an ECA on file: https://api.eclipse.org/bots

Basically, we don't need to validate if a bot is associated with a particular project. 

It's important to note that write access is still managed by LDAP. This will not grant write access to the bots on additional projects. It will simply accept the contribution as valid. 

The Hono bot will continue to have access to its project.

@Wayne can you please +1 this so that we have a paper trail of this conversation? 

Thanks!
Comment 11 Wayne Beaton CLA 2020-12-15 10:28:22 EST
> I spoke to Wayne about this and we agreed that bots owned by the foundation
> are not required to include a sign-off-by and we can assume that they have
> an ECA on file: https://api.eclipse.org/bots

This is based on an assumption that bots are not adding intellectual property. That is, anything that a bot may contribute is expected to be either configuration or content generated from intellectual property that is already available to the project.

+1
Comment 12 Martin Lowe CLA 2020-12-15 10:35:20 EST
(In reply to Wayne Beaton from comment #11)
> > I spoke to Wayne about this and we agreed that bots owned by the foundation
> > are not required to include a sign-off-by and we can assume that they have
> > an ECA on file: https://api.eclipse.org/bots
> 
> This is based on an assumption that bots are not adding intellectual
> property. That is, anything that a bot may contribute is expected to be
> either configuration or content generated from intellectual property that is
> already available to the project.
> 
> +1

Sounds good! This is still an API side change, and I'm hoping to have the changes + tests done in the next 2 hours and up for review. This will be a transparent update to the plugin since those PR's will just be approved after this point
Comment 13 Genevieve Bastien CLA 2020-12-15 13:03:20 EST
Hi,

I don't know if the issue I'm facing is related to the upgrade, but I have trouble pushing a patch to gerrit today. Here's the output I get when pushing:

remote: commit 0fd163b: Authored by: Geneviève Bastien <gbastien+lttng@versatic.net>
remote: commit 0fd163b: Could not find an Eclipse user with mail 'gbastien+lttng@versatic.net' for author of commit 0fd163be4b233dc9e5e096cafcea52e581651448
remote: commit 0fd163b: 
remote: commit 0fd163b: Please see http://wiki.eclipse.org/ECA
To ssh://git.eclipse.org:29418/tracecompass/org.eclipse.tracecompass.git
 ! [remote rejected]       HEAD -> refs/for/master (commit 0fd163b: Author must have an Eclipse Account)

Of course, I have an valid ECA signed until march 2022.

Thanks!
Comment 14 Martin Lowe CLA 2020-12-15 15:27:38 EST
(In reply to Genevieve Bastien from comment #13)
> Hi,
> 
> I don't know if the issue I'm facing is related to the upgrade, but I have
> trouble pushing a patch to gerrit today. Here's the output I get when
> pushing:
> 
> remote: commit 0fd163b: Authored by: Geneviève Bastien
> <gbastien+lttng@versatic.net>
> remote: commit 0fd163b: Could not find an Eclipse user with mail
> 'gbastien+lttng@versatic.net' for author of commit
> 0fd163be4b233dc9e5e096cafcea52e581651448
> remote: commit 0fd163b: 
> remote: commit 0fd163b: Please see http://wiki.eclipse.org/ECA
> To ssh://git.eclipse.org:29418/tracecompass/org.eclipse.tracecompass.git
>  ! [remote rejected]       HEAD -> refs/for/master (commit 0fd163b: Author
> must have an Eclipse Account)
> 
> Of course, I have an valid ECA signed until march 2022.
> 
> Thanks!

This seems to be due to the upgrade, but not due to any issue with the plugin itself, but rather some of our underlying services not handling your registered email as expected. We've looked into this, and implemented fixes on our end, with the API fix being up for review and should be up soon if all goes well! Thanks for the report!
Comment 15 Martin Lowe CLA 2020-12-15 16:03:41 EST
(In reply to Genevieve Bastien from comment #13)
> Hi,
> 
> I don't know if the issue I'm facing is related to the upgrade, but I have
> trouble pushing a patch to gerrit today. Here's the output I get when
> pushing:
> 
> remote: commit 0fd163b: Authored by: Geneviève Bastien
> <gbastien+lttng@versatic.net>
> remote: commit 0fd163b: Could not find an Eclipse user with mail
> 'gbastien+lttng@versatic.net' for author of commit
> 0fd163be4b233dc9e5e096cafcea52e581651448
> remote: commit 0fd163b: 
> remote: commit 0fd163b: Please see http://wiki.eclipse.org/ECA
> To ssh://git.eclipse.org:29418/tracecompass/org.eclipse.tracecompass.git
>  ! [remote rejected]       HEAD -> refs/for/master (commit 0fd163b: Author
> must have an Eclipse Account)
> 
> Of course, I have an valid ECA signed until march 2022.
> 
> Thanks!

Could you try again now? The fix for our service is up, so you should be able to commit just fine now!
Comment 16 Genevieve Bastien CLA 2020-12-15 16:33:46 EST
It works well, thanks!
Comment 17 Kai Hudalla CLA 2020-12-16 03:41:43 EST
(In reply to Martin Lowe from comment #15)
> (In reply to Genevieve Bastien from comment #13)
> > Hi,
> > 
> > I don't know if the issue I'm facing is related to the upgrade, but I have
> > trouble pushing a patch to gerrit today. Here's the output I get when
> > pushing:
> > 
> > remote: commit 0fd163b: Authored by: Geneviève Bastien
> > <gbastien+lttng@versatic.net>
> > remote: commit 0fd163b: Could not find an Eclipse user with mail
> > 'gbastien+lttng@versatic.net' for author of commit
> > 0fd163be4b233dc9e5e096cafcea52e581651448
> > remote: commit 0fd163b: 
> > remote: commit 0fd163b: Please see http://wiki.eclipse.org/ECA
> > To ssh://git.eclipse.org:29418/tracecompass/org.eclipse.tracecompass.git
> >  ! [remote rejected]       HEAD -> refs/for/master (commit 0fd163b: Author
> > must have an Eclipse Account)
> > 
> > Of course, I have an valid ECA signed until march 2022.
> > 
> > Thanks!
> 
> Could you try again now? The fix for our service is up, so you should be
> able to commit just fine now!

The Hono website build is still not working with the same problem [1]

[1] https://ci.eclipse.org/hono/job/Hono-Website-Declarative-Pipeline/79/console
Comment 18 Kai Hudalla CLA 2020-12-16 03:50:14 EST
The website build job of the IoT Packages project is also broken [1]

Since the website is our primary means of distributing the Helm charts for the Eclipse IoT projects, this is really starting to affect our ability to deliver updates ...


[1] https://ci.eclipse.org/packages/job/Website/job/master/81/console
Comment 19 Martin Lowe CLA 2020-12-16 09:11:21 EST
(In reply to Kai Hudalla from comment #18)
> The website build job of the IoT Packages project is also broken [1]
> 
> Since the website is our primary means of distributing the Helm charts for
> the Eclipse IoT projects, this is really starting to affect our ability to
> deliver updates ...
> 
> 
> [1] https://ci.eclipse.org/packages/job/Website/job/master/81/console

@Kai

We were waiting for a code review on something, but it has been pushed live now! See Wayne and Chris' comments on what's changed, but your bot builds should pass now!
Comment 20 Kai Hudalla CLA 2020-12-16 09:22:24 EST
(In reply to Martin Lowe from comment #19)
> (In reply to Kai Hudalla from comment #18)
> > The website build job of the IoT Packages project is also broken [1]
> > 
> > Since the website is our primary means of distributing the Helm charts for
> > the Eclipse IoT projects, this is really starting to affect our ability to
> > deliver updates ...
> > 
> > 
> > [1] https://ci.eclipse.org/packages/job/Website/job/master/81/console
> 
> @Kai
> 
> We were waiting for a code review on something, but it has been pushed live
> now! See Wayne and Chris' comments on what's changed, but your bot builds
> should pass now!

They indeed both do. Thanks for fixing it :-)

Kai
Comment 21 Jonah Graham CLA 2020-12-16 10:29:45 EST
(I initially reported this on https://github.com/EclipseFdn/gerrit-eca-plugin/issues/30):

The recently updated change pushed out is causing problems - see my email on cross-project[1]. On issue 30 it was reported that this is expected behaviour. If so, please change the wording I have already had one person reach out to me privately asking what happened to their committer status.

[1] https://www.eclipse.org/lists/cross-project-issues-dev/msg18095.html
Comment 22 Christopher Guindon CLA 2020-12-16 11:55:54 EST
(In reply to Jonah Graham from comment #21)
> (I initially reported this on
> https://github.com/EclipseFdn/gerrit-eca-plugin/issues/30):
> 
> The recently updated change pushed out is causing problems - see my email on
> cross-project[1]. On issue 30 it was reported that this is expected
> behaviour. If so, please change the wording I have already had one person
> reach out to me privately asking what happened to their committer status.
> 
> [1] https://www.eclipse.org/lists/cross-project-issues-dev/msg18095.html

I took a look and this is expected. 

This repo does not have an official list of committers because the ssh://git.eclipse.org:29418/simrel/org.eclipse.simrel.build repository is not owned by an Eclipse project. 

However, this should not impact your ability to push (write access). You will simply be required to include the sign-off-by footer in the commit message.
Comment 23 Jonah Graham CLA 2020-12-16 12:13:47 EST
What about CDT's website. Same thing?
Comment 24 Christopher Guindon CLA 2020-12-16 12:23:55 EST
(In reply to Jonah Graham from comment #23)
> What about CDT's website. Same thing?

Correct! 

The ECA plugin is matching repos with projects via an API from the PMI.

The list of repos for cdt are listed here:
https://projects.eclipse.org/api/projects/tools.cdt.json

Anything outside of those repos in Gerrit should require the sign-off-by footer.
Comment 25 Christopher Guindon CLA 2020-12-16 12:27:15 EST
(In reply to Christopher Guindon from comment #24)
> (In reply to Jonah Graham from comment #23)

> Anything outside of those repos in Gerrit should require the sign-off-by
> footer.

There are some exceptions to this rule. 

For example, the Signed-off-by footer is not required if you are committing code to your project website repository using an Eclipse bot:

https://api.eclipse.org/bots
Comment 26 Christopher Guindon CLA 2020-12-18 09:03:34 EST
*** Bug 569607 has been marked as a duplicate of this bug. ***
Comment 27 Christopher Guindon CLA 2021-01-13 13:54:08 EST
Closing this issue! Thanks all!