zuul/zuul
James E. Blair e2a472bc97 Change merge mode default based on driver
The default merge mode is 'merge-resolve' because it has been observed
that it more closely matches the behavior of jgit in Gerrit (or, at
least it did the last time we looked into this).  The other drivers
are unlikely to use jgit and more likely to use the default git
merge strategy.

This change allows the default to differ based on the driver, and
changes the default for all non-gerrit drivers to 'merge'.

The implementation anticipates that we may want to add more granularity
in the future, so the API accepts a project as an argument, and in
the future, drivers could provide a per-project default (which they
may obtain from the remote code review system).  That is not implemented
yet.

This adds some extra data to the /projects endpoint in the REST api.
It is currently not easy (and perhaps not possible) to determine what a
project's merge mode is through the api.  This change adds a metadata
field to the output which will show the resulting value computed from
all of the project stanzas.  The project stanzas themselves may have
null values for the merge modes now, so the web app now protects against
that.

Change-Id: I9ddb79988ca08aba4662cd82124bd91e49fd053c
2022-10-13 10:31:19 -07:00
..
ansible Merge "zuul-stream: Add variable to disable writing streaming files" 2022-09-27 02:29:44 +00:00
cmd Correct exit routine in web, merger 2022-10-05 13:25:07 -07:00
connection Fix read-only branches error in zuul-web 2022-07-04 11:35:36 +02:00
driver Change merge mode default based on driver 2022-10-13 10:31:19 -07:00
execution_context Add wrapper driver execution context 2017-08-18 16:35:12 -07:00
executor Add span for builds and propagate via request 2022-09-19 08:42:28 +02:00
lib Store parent span context with span info 2022-10-06 09:14:59 -07:00
manager Include tenant and pipeline in QueueItem span 2022-10-05 11:07:16 -07:00
merger Don't trace merge jobs that we don't lock 2022-10-05 11:16:18 -07:00
reporter Merge "Add config-error reporter and report config errors to DB" 2022-08-31 23:40:06 +00:00
source Change merge mode default based on driver 2022-10-13 10:31:19 -07:00
sphinx docs: remove zuuldocs domain 2020-08-04 16:10:09 +10:00
trigger Filter events on event connection 2021-04-24 08:39:03 -07:00
vendor Add some pipeline processing stats 2022-01-25 08:16:52 -08:00
web Change merge mode default based on driver 2022-10-13 10:31:19 -07:00
zk Merge "Trace node request phase" 2022-09-28 19:38:09 +00:00
__init__.py
_setup_hook.py Revert "Revert "Create zuul/web/static on demand"" 2020-07-07 19:53:33 +02:00
change_matcher.py Fix reporting certain config syntax errors 2022-04-26 11:02:17 -07:00
configloader.py Change merge mode default based on driver 2022-10-13 10:31:19 -07:00
exceptions.py Handle jwt decoding error, fix exception default messages 2022-05-12 18:48:19 +02:00
model.py Merge "Link span of queue item to trigger event span" 2022-10-04 03:33:20 +00:00
model_api.py Add nodeset alternatives 2022-09-08 13:01:28 -07:00
nodepool.py End node request span when result event is sent 2022-10-07 15:29:49 +02:00
scheduler.py Link span of queue item to trigger event span 2022-09-30 09:50:37 +02:00
version.py Store version information in component registry 2021-10-20 17:17:02 +02:00