zuul/zuul/driver/gerrit
Simon Westphahl 29592c9531 Allow refreshing volatile data in canMerge check
On GitHub we cannot reliably update all information that's needed for
doing a canmerge check using events. Namely completely missing events
on branch protection changes and ambiguous status events that might
match several changes due to its data model to have statuses on the
commit instead the pr. This was no problem in the past since this
information was only used during the enqueue phase which is directly
after the event preprocessing phase.

However with circular dependencies we re-do the can merge check just
before merging again and need to act on recent data. Therefore add an
allow_refresh flag that makes it possible to refresh the volatile
parts of the data we don't get events for. This is only used on GitHub
for now as the other drivers are either correctly updating their
states using events or didn't yet optimize to not do api calls within
the main loop yet (pagure).

Change-Id: I89ff158642fe32c5004ef62c2e25399110564252
2021-03-01 18:45:02 +00:00
..
__init__.py Add support for the Gerrit checks plugin 2019-09-17 14:15:18 -07:00
auth.py Report to gerrit over HTTP 2018-07-26 16:43:07 -07:00
gcloudauth.py Add gcloud_service auth option for Gerrit driver 2020-01-30 08:09:00 -08:00
gerritconnection.py Merge "Gerrit: Add gerrit version check for HTTP review tag" 2021-02-11 01:03:28 +00:00
gerritmodel.py Merge "Gerrit: add support for patchset level comments" 2021-01-19 15:10:32 +00:00
gerritreporter.py Detect Gerrit gate pipelines with the wrong connection 2020-06-09 13:27:23 -07:00
gerritsource.py Allow refreshing volatile data in canMerge check 2021-03-01 18:45:02 +00:00
gerrittrigger.py Add support for the Gerrit checks plugin 2019-09-17 14:15:18 -07:00