zuul/tests
James E. Blair 7b6134ca81 Detect Gerrit gate pipelines with the wrong connection
If multiple Gerrit connections are configured and the wrong one
is used in a gate pipeline, then the Gerrit reporter will correctly
detect that it should not act on a change from a different connection,
however, the isMerged check which is associated with the (correct)
source connection performs an extra check immediately after reporting.
Since the reporter didn't (couldn't) act, the ._ref_sha attribute
(pointing to the previous sha before reporting) won't be set, and
the isMerged check throws an exception.

To correct this, have isMerged detect this case, log an error, and
return False (which will fail the item in the pipeline).  Also,
have the reporter log when it's skipping reporting for a different
connection.  This is normal behavior when everything is configured
correctly, but could be a helpful clue when something is misconfigured,
so that is set at debug level.

Change-Id: Ic3b715273e08ed2df7096c79add1b319066c46ec
Story: 2007761
2020-06-09 13:27:23 -07:00
..
fixtures Detect Gerrit gate pipelines with the wrong connection 2020-06-09 13:27:23 -07:00
nodepool Add caching of autohold requests 2019-09-16 10:46:36 -04:00
remote Increase wait time in remote tests 2020-05-20 09:57:22 +02:00
unit Detect Gerrit gate pipelines with the wrong connection 2020-06-09 13:27:23 -07:00
__init__.py Add non-voting jobs. 2012-08-23 23:20:09 +00:00
base.py Merge "Add details to waitUntilSettled() debug log" 2020-05-16 15:35:58 +00:00
encrypt_secret.py Make tests' encrypt_secret.py work with python3 2017-10-19 18:09:57 +00:00
fake_graphql.py Optimize canMerge using graphql 2020-02-28 09:43:56 +01:00
fakegithub.py Simplify FakeGithubClient and FakeGithubSession 2020-04-28 15:45:51 -07: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