zuul/tests
James E. Blair e03d8c887c Rename MERGER_FAILURE to MERGE_CONFLICT
This is a prelude to a change which will report a distinct buildset result
to the database if the upstream code review system is unable to merge a change.
Currently it is reported as MERGER_FAILURE which makes it difficult to
distinguish from merge conflicts.

Essentially, the two states we're interested in are when Zuul's merger is
unable to prepare a git checkout of the change (99% of the time, this is
a merge conflict).  This will be known as MERGE_CONFLICT now.

The second state is when Zuul asks Gerrit/Github/etc to submit/merge a change
and the remote system is unable (or refuses) to do so.  In a future change,
that will be reported as MERGE_FAILURE.

To avoid confusion and use names which better reflect the situation, this change
performs the rename to MERGE_CONFLICT.

Because there are pipeline configuration options tied to the MERGER_FAILURE
status (which start with 'merge-failure') they are also renamed to 'merge-conflict'.
The old names are supported for backwards compatibility.

A SQL migration takes care of updating values in the database.

The upgrade procedure is noted as being special because of the db value updates.
If an operator doesn't follow the recommended procedure, however, the consequences
are minimal (builds which won't be easily queried in the web ui; that can be
manually corrected if desired).

A model API change is not needed since the only place where we receive this value
from ZK can be updated to accept both values.

Change-Id: I3050409ed68805c748efe7a176b9755fa281536f
2022-02-24 17:06:03 -08:00
..
fixtures Rename MERGER_FAILURE to MERGE_CONFLICT 2022-02-24 17:06:03 -08:00
remote Fix zuul client and remote tests 2021-06-24 11:36:17 -07:00
unit Rename MERGER_FAILURE to MERGE_CONFLICT 2022-02-24 17:06:03 -08:00
zuul_client Remove rpcclient from test_zuulclient 2022-01-17 12:47:31 -08:00
__init__.py Add non-voting jobs. 2012-08-23 23:20:09 +00:00
base.py Rename MERGER_FAILURE to MERGE_CONFLICT 2022-02-24 17:06:03 -08:00
encrypt_secret.py Make tests' encrypt_secret.py work with python3 2017-10-19 18:09:57 +00:00
fake_graphql.py Fetch can-merge info when updating a pull-request 2020-09-23 12:03:55 +02:00
fakegithub.py github: more complete mocking for app setup 2021-09-23 19:53:48 +10:00
fakegitlab.py Add support for adding and removing labels in gitlab 2022-01-14 18:18:35 +00:00
make_playbooks.py Use libyaml if possible 2017-04-04 11:49:05 -07:00
print_layout.py Do not add implied branch matchers in project-templates 2017-09-30 10:19:07 -07:00