system-config/playbooks/roles/gerrit/templates
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
..
docker-compose.yaml.j2 gerrit: Update mariadb to 10.6 2022-06-02 15:21:23 +10:00
gerrit.config.j2 Fix gerrit upgrade config diff checking 2023-04-07 13:57:51 -07:00
gerrit.vhost.j2 Block access to Gitiles 2022-02-18 21:39:27 +00:00
infra_lp_creds.j2 gerrit: fix Launchpad credentials write 2021-07-20 10:54:22 +10:00
jgit.config.j2 Enable git protocol v2 on gerrit 2020-12-09 15:51:10 -08:00
manage-projects.j2 Stop managing gerrit's local git mirror dir 2020-10-16 09:41:07 -07:00
projects.ini.j2 Stop managing gerrit's local git mirror dir 2020-10-16 09:41:07 -07:00
redirect.vhost.j2 Use LE certs for Apache 2020-02-13 10:31:59 -06:00
replication.config.j2 Enable Gerrit replication autoreload 2023-02-17 15:04:15 -08:00
root.my.cnf.mariadb_container.j2 gerrit: add mariadb_container option 2021-06-16 13:57:13 +10:00
root.my.cnf.mysql.j2 gerrit: add mariadb_container option 2021-06-16 13:57:13 +10:00
secure.config.j2 Remove the mysql support from our gerrit role and image 2021-08-10 13:06:54 -07:00