zuul/tests/unit
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
..
__init__.py Move tests into test/unit 2017-01-24 10:18:38 -08:00
test_auth.py Bump pyjwt to 2.0.0 2021-01-14 12:35:18 +00:00
test_bubblewrap.py Make most test cases work on MacOS 2020-02-20 12:59:38 +01:00
test_change_matcher.py Make files matcher match changes with no files 2019-08-23 18:59:29 +02:00
test_circular_dependencies.py Only delete bundle items that aren't in ANY queue 2022-02-03 16:24:04 +01:00
test_client.py Add "zuul delete-pipeline-state" command 2022-01-26 16:36:04 -08:00
test_cmd.py Revert "Revert "Add the process environment to zuul.conf parser"" 2019-11-02 09:10:18 +09:00
test_component_registry.py Remove rpcclient from connection test fixtures 2022-01-17 12:49:28 -08:00
test_configloader.py Combine different history approaches for merge jobs in tests 2021-11-29 15:26:09 -08:00
test_connection.py Add buildset start/end db columns 2022-02-23 06:24:04 -08:00
test_cross_crd.py Skip tests asserting on tenant reconfig results on multi scheduler 2021-11-30 08:58:27 -08:00
test_daemon.py Remove unecessary shebang and exec bit 2018-07-26 07:12:24 +00:00
test_database.py Rename MERGER_FAILURE to MERGE_CONFLICT 2022-02-24 17:06:03 -08:00
test_default_config.py Add type check for zuul conf 2018-12-10 19:24:50 +08:00
test_dependson.py Be more liberal with Depends-On: parsing 2021-08-30 15:59:51 +10:00
test_disk_accountant.py Optionally disable disk_limit_per_job 2019-02-22 08:10:59 +01:00
test_encryption.py Use nested tempfile fixture for cleanups 2018-02-06 15:18:45 -08:00
test_event_queues.py Don't use executor.builds when processing build result events 2021-09-24 16:25:25 -07:00
test_executor.py Load job from pipeline state on executors 2021-11-23 15:16:32 -08:00
test_gerrit.py Clone from /a/ with authenticated Gerrit HTTP 2022-02-05 10:23:05 -08:00
test_gerrit_crd.py Remove disused gearman_server usages from tests 2022-01-25 06:44:16 -08:00
test_gerrit_legacy_crd.py Remove disused gearman_server usages from tests 2022-01-25 06:44:16 -08:00
test_git_driver.py Use scheduler manager consistently in tests 2020-04-03 14:49:59 +02:00
test_github_crd.py Execute Github tests with only one scheduler 2021-11-30 08:58:19 -08:00
test_github_driver.py Remove rpcclient from connection test fixtures 2022-01-17 12:49:28 -08:00
test_github_requirements.py Execute Github tests with only one scheduler 2021-11-30 08:58:19 -08:00
test_gitlab_driver.py Merge "Required gitlab labels is subset of set labels" 2022-02-18 01:38:11 +00:00
test_inventory.py Update test_inventory to be ZK-friendly 2021-10-29 12:04:44 +02:00
test_lib_ansible.py Validate ansible extra packages 2020-05-08 09:03:10 +02:00
test_merger_repo.py Revert "Fix a bug in getting changed files" 2022-01-20 11:42:54 +01:00
test_model.py Implement frozen job serialization/deserialization 2021-10-27 16:57:22 -07:00
test_model_upgrade.py Fix test_semaphore_handler_cleanup test race 2022-02-24 08:45:23 -08:00
test_multi_driver.py Limit scheduler count to 1 for other github related tests 2021-11-30 08:58:23 -08:00
test_nodepool.py Fix race in test_node_request_canceled 2021-10-08 09:28:50 -07:00
test_openstack.py Support overlapping repos and a flat workspace scheme 2021-04-29 17:56:24 -07:00
test_pagure_driver.py Remove rpcclient from connection test fixtures 2022-01-17 12:49:28 -08:00
test_prometheus.py Add readiness/liveness probes to prometheus server 2021-12-09 07:37:29 -08:00
test_push_reqs.py Make test setup_config more pure 2020-02-28 11:50:22 +01:00
test_reporting.py Remove rpcclient from test_reporting 2022-01-17 12:42:45 -08:00
test_requirements.py Fix reject clauses in the absence of approvals 2018-08-13 12:37:32 +02:00
test_scheduler.py Rename MERGER_FAILURE to MERGE_CONFLICT 2022-02-24 17:06:03 -08:00
test_serial.py Make fake test Gerrit merger more realistic 2020-04-29 15:00:05 -07:00
test_sos.py Merge "Populate missing change cache entries" 2022-02-22 12:28:06 +00:00
test_ssh_agent.py Add SSH Agent Primitives and usage 2017-05-26 09:52:22 -07:00
test_stack_dump.py Several executor threading fixes 2017-10-17 09:49:29 -07:00
test_streaming.py Add stats to web server 2022-02-02 17:29:50 -08:00
test_strings.py Cleanup empty secrets dirs when deleting secrets 2021-10-19 09:38:21 -07:00
test_supercedent.py Check branches in supercedent pipelines 2019-04-05 13:59:05 -07:00
test_timer_driver.py Include project name in gerrit branch cache 2021-09-28 17:21:32 -07:00
test_v3.py Add waiting status to queued 2022-02-23 11:38:30 -08:00
test_web.py Fix removal of tenant on layout update 2022-02-21 15:56:50 +01:00
test_web_urls.py Remove rpcclient from connection test fixtures 2022-01-17 12:49:28 -08:00
test_yamlutil.py Disable aliases in inventory.yaml for better readibility 2021-09-01 09:19:41 +02:00
test_zk.py Merge "Populate missing change cache entries" 2022-02-22 12:28:06 +00:00
test_zuultrigger.py Report which repo failed initial merge ops 2022-02-20 13:06:39 -08:00