system-config/playbooks/roles/gerrit
Clark Boylan 91ab316142 Fix gerrit upgrade config diff checking
There were two problems with our gerrit upgrade config diff checking.
The first is that we were comparing using command exit codes after
pipeing diff to tee without setting pipefail. This meant that even if
the diff failed we got an exit code of 0 from tee and everything passed
happily.

Second we were not checking our pre gerrit state diff state. If the old
gerrit version also updated the config on disk we wouldn't get a diff
after upgrading to the new version. I think that is ultimately what
broke for us here because the 3.6 and 3.7 config diffs are empty, but
they differ from what we initially write to disk. As for explaining why
this might happen I can only assume some update to 3.6 made the changes
we saw after we had deployed 3.6.

As a result of checking things more thoroughly we need to update our
config to remove any delta. This removes some extraneous quoting around
gitweb config entries to do that.

Change-Id: I9c7e73d5f64546fb57a21a249b29e2aca9229ac7
2023-04-07 13:57:51 -07:00
..
defaults Upgrade Gerrit to version 3.7 2023-04-04 13:42:43 +10:00
files Merge "Clean up Gerrit image builds" 2022-03-16 20:19:20 +00:00
handlers Add Apache to Ansible for Gerrit 2020-02-03 07:57:36 -06:00
tasks Bind mount Gerrit's review_site/data dir 2023-02-27 13:14:34 -08:00
templates Fix gerrit upgrade config diff checking 2023-04-07 13:57:51 -07:00
README.rst Fix infra-prod-service-review file matchers 2023-03-03 11:47:02 -08:00

Run Gerrit.

This role deploys MariaDB alongside the Gerrit service using docker-compose to run both services in docker containers. Variables below configure MariaDB connection details.

Role Variables