Gerrit Pull repllication setup for CI(Jenkins/Zuul)

79 views
Skip to first unread message

kiran mandala

unread,
Sep 19, 2025, 7:25:02 AMSep 19
to Repo and Gerrit Discussion
We want to setup pull replication based Gerrit replica for Zuul CI.

However,  as pull replication doesn't generate the events as push replication Zuul couldn't wait for jobs to trigger based on the events like Gerrit push replication.

What could be the possible solution to achieve to make Zuul to be pull replication aware ?

I suppose it will be the similar problem for Jenkins as well. 

kiran mandala

unread,
Sep 24, 2025, 5:20:44 AMSep 24
to Repo and Gerrit Discussion

fetch-ref-replication-done 

Can we see the 
fetch-ref-replication-done event in Master Gerrit ? 

https://gerrit.googlesource.com/plugins/pull-replication/+/refs/heads/master/src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchResultProcessing.java#191

Currently, we can't see this event in master gerrit.  Is it bug in pull replication plugin ?

Luca Milanesio

unread,
Sep 24, 2025, 8:40:17 AMSep 24
to Repo and Gerrit Discussion, Luca Milanesio
Hi Kiran,

On 24 Sep 2025, at 10:20, kiran mandala <kirank....@gmail.com> wrote:


fetch-ref-replication-done 

Yep, well spotted.

Can we see the fetch-ref-replication-done event in Master Gerrit ? 

https://gerrit.googlesource.com/plugins/pull-replication/+/refs/heads/master/src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchResultProcessing.java#191

Currently, we can't see this event in master gerrit.  Is it bug in pull replication plugin ?

Well, this event isn’t generated by the Gerrit primary node, therefore you won’t see it there.
The pull-replication works differently, you can see some talks about the plugin on the GerritForge TV channel at [1]

The Gerrit replica is the one generating the events, not the primary.
The Gerrit primary has *no clue* of when and who completed the replication, it is all done by the replicas by fetching from the primary.

HTH

Luca.


fredag 19 september 2025 kl. 13:25:02 UTC+2 skrev kiran mandala:
We want to setup pull replication based Gerrit replica for Zuul CI.

However,  as pull replication doesn't generate the events as push replication Zuul couldn't wait for jobs to trigger based on the events like Gerrit push replication.

What could be the possible solution to achieve to make Zuul to be pull replication aware ?

I suppose it will be the similar problem for Jenkins as well. 

-- 
-- 
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/1b9a25cf-825d-43bd-a2d5-1a34f1bb120dn%40googlegroups.com.

kiran mandala

unread,
Sep 24, 2025, 9:48:18 AMSep 24
to Repo and Gerrit Discussion
I have seen those videos. Pull replication seems really good option for multi-site gerrit instances. 

we have few replica servers, We want to move from push replication to pull replication as this is much more faster than push replication.

As there are no events in Master gerrit related to pull replication,  it seems pull replication is not ideal solution for CI, As there are no events.

Thanks for response Luca.
Reply all
Reply to author
Forward
0 new messages