In Oniro we use infrastructure repositories for different purposes that are managed by CI pipelines. For example, https://gitlab.eclipse.org/eclipse/oniro-core/oniro-readthedocs-aggregated is managed by a docs CI pipeline that flattens a documentation hierarchy so it has been pushing with an explicit CI identity:
Oniro Project CI <oniro-dev@eclipse.org>
Due to the latest ECA changes, this flow now fails with an ECA hook push error.
remote: Reviewing commit: cd3f496d08fe583e46b371ced0c567b14f661c3e
remote: Authored by: Oniro Project CI oniro-dev@eclipse.org
remote: Could not find an Eclipse user with mail 'oniro-dev@eclipse.org' for author of commit cd3f496d08fe583e46b371ced0c567b14f661c3e
What is the expected correct behavior?
Have a mechanism to handle infrastructure-managed repositories so we can successfully push.
Relevant logs and/or screenshots
See above.
Edited
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Activity
Sort or filter
Newest first
Oldest first
Show all activity
Show comments only
Show history only
Andrei Gherzanchanged title from ECA being enforced for infrastructuremanaged repositories to ECA being enforced for infrastructure-managed repositories
changed title from ECA being enforced for infrastructuremanaged repositories to ECA being enforced for infrastructure-managed repositories
Maybe for now, a decent workaround would be to avoid ECA checks on this repository as we did for #1532 (closed). We are looking to restructure the documentation infrastructure in Oniro where we might drop this repository altogether.
Well said, Chris. I brought up unmanaged bots when we did the impromptu audit a while back, but I guess that comment fell off the radar. These Gitlab bot users will no doubt fail the ECA, and that's by design. The bots API is how we make the downstream services aware of bots, as we want to manage these and not have a wild west of bots.
Its up to the releng team to add it to the file that Chris mentioned. Making a helpdesk ticket is the right way to request this afaik, so I think we're good, just need to wait for the update to be made. Once made, it will take ~1h to become active (caching and such).
Just to clarify: I was planning to create a new GitLab bot user for Oniro with the email-address oniro-bot@eclipse.org. I was not planning to add the existing Oniro Project CI <oniro-dev@eclipse.org> identity to our projects-bot-API.
Does that work for you @agherzan?
Any concerns @cguindon, @malowe?
You can create a new user for this but you still need to add the bot account to the bots API in order to inform our ECA validation service that we can accept contributions from this bot.
The ECA will check if we have an ECA on file if the bot account is not tracked.
Ignore that. I was confused for a second. I think that should work fine. Only the email address would be taken into consideration, right? We can use any "name" in git commits?
@cguindon@fgurr This is blocking us to land some documentation related to the Eclipse-OpenAtom cooperation agreement that is being announced next week. Can we please get an ETA on this?
Hello @fgurr. Thanks for dealing with this. Here are some comments that made our life harder:
The actual email that ended up in the API is onirocore-bot@eclipse.org and not oniro-core-bot@eclipse.org (mind the hyphen).
We actually agreed above to having oniro-bot@eclipse.org. This has as an advantage the fact that we can reuse it on other Oniro projects without having to go through these loops again. For now, I have used the one in the API as this is currently blocking us but I'd ask you to reconsider this and create an extra one as agreed above.
The actual email that ended up in the API is onirocore-bot@eclipse.org and not oniro-core-bot@eclipse.org (mind the hyphen).
Good catch. This was set up incorrectly during project provisioning and has been fixed. The API uses the correct oniro-core-bot@eclipse.org email address now.
We actually agreed above to having oniro-bot@eclipse.org. This has as an advantage the fact that we can reuse it on other Oniro projects without having to go through these loops again. For now, I have used the one in the API as this is currently blocking us but I'd ask you to reconsider this and create an extra one as agreed above.
Sorry about the miscommunication. Each bot user is assigned to a single project and therefore uses the project's short name e.g. "oniro-core" for Oniro Core. Reuse of bot accounts across projects is (in general) not supported and recommended.