Open GoogleCodeExporter opened 9 years ago
There have been several discussions about how stream events is frail. I think
the proposed solution was to either add a from={id} argument, and send that
argument with each stream event, or add a from={datetime} argument.
Shawn has recommended that we (build bot authors) consider using the REST API,
which already supports a from={datetime} type argument. The downside here is
that REST is not event based - you must poll the server.
I think the Gerrit maintainers would be OK with adding a from= argument to
stream events. It might also be worth investigating moving stream events to a
plugin..?
Original comment by bklarson@gmail.com
on 15 Oct 2013 at 3:20
My initial concern with implementing a hypothetical --from is that you can't
really know when event consumers are done with old events without some extra
information. In typical setups I assume the event consumers are well-defined
(Jenkins... and?), maybe having a way for users to formally subscribe to events
via the command line
Something like:
ssh jenkins@gerrit gerrit subscribe-events myjenkinschannel
ssh jenkins@gerrit gerrit stream-events --channel=myjenkinschannel
And if the backlog gets beyond a configured size, the channel expires.
I would have thought using a timestamp is a bad idea due to lack of precision
about which events have actually been consumed already - you risk either
processing events twice or not at all.
Thanks
Original comment by aj.d...@gmail.com
on 15 Oct 2013 at 5:27
Original issue reported on code.google.com by
aj.d...@gmail.com
on 15 Oct 2013 at 3:15