system-config/testinfra
Clark Boylan dbe477b205 Increase gitea db connection limit
By default our mariadb database for gitea nodes limits itself to a
maximum of 100 connections. We've seen errors like this:

 ...eb/routing/logger.go:102:func1() [I] router: completed POST /openstack/requirements/git-upload-pack for 127.0.0.1:50562, 500 Internal Server Error in 2.6ms @ context/user.go:17(web.gitHTTPRouters.UserAssignmentWeb)
 ...ules/context/repo.go:467:RepoAssignment() [E] GetUserByName: Error 1040: Too many connections

And after reading gitea's source code this appears to be related to user
lookups to determine if the user making a request against a repo owns
the repo. To do this gitea does a db request to lookup the user from the
request and when this hits the connection limit it bubbles up the mysql
error 1040: Too may connections error.

This problem seems infrequent so we double the limit to 200 which is
both much larger but still a reasonable number.

We also modify the test that checks for gitea server errors without an
http 500 return code to avoid it matching this change improperly. This
was happening because the commit message ends up in the rendered pages
for system-config in the test gitea.

Change-Id: If8c72ab277e88ae09a44a64a1571f94e43df23f8
2024-02-05 10:40:03 -08:00
..
conftest.py More yaml.safe_load() in testinfra/conftest.py 2021-10-13 21:58:41 +00:00
test_adns.py dns: abstract names 2023-04-19 09:53:10 +10:00
test_base.py logrotate: don't use filename to generate config file 2023-02-14 07:03:17 +11:00
test_borg_backups.py system-config-run-borg-backup: rename hosts to distro 2022-08-11 13:32:49 +10:00
test_bridge.py Farewell limestone 2023-02-13 23:54:59 +00:00
test_codesearch.py hound: enable detect-ref 2022-02-25 17:27:35 +11:00
test_eavesdrop.py ptgbot: rename site to ptg.opendev.org 2021-10-07 09:43:39 +11:00
test_etherpad.py Improve etherpad functional testing 2023-11-09 10:02:50 -08:00
test_gerrit.py Block access to Gitiles 2022-02-18 21:39:27 +00:00
test_gitea_lb.py Test gitea haproxy maxconn limits 2024-01-02 18:12:00 +00:00
test_gitea.py Increase gitea db connection limit 2024-02-05 10:40:03 -08:00
test_grafana.py testinfra: refactor screenshot taking 2021-09-07 12:54:26 +10:00
test_graphite.py graphite: fix xFilesFactor 2022-06-28 18:41:17 +10:00
test_keycloak.py Revert "Switch from legacy to new style keycloak container" 2024-01-29 20:37:33 +00:00
test_letsencrypt.py Update a few s/bridge01/bridge99 references 2022-11-11 15:05:39 +11:00
test_lists_opendev_org.py Fork the maxking/docker-mailman images 2022-11-21 16:51:02 +00:00
test_meetpad.py Use our jitsi-meet image for meetpad 2020-03-27 09:43:41 -07:00
test_mirror-update.py Add Ceph Quincy mirror 2022-09-27 20:33:33 +00:00
test_mirror.py [testinfra] Update Ansible canary. 2023-11-28 11:09:01 -06:00
test_nodepool.py Add new opendev.org nodepool launchers 2021-03-16 15:21:58 -07:00
test_ns.py dns: abstract names 2023-04-19 09:53:10 +10:00
test_paste.py paste : move testing host to paste99, remove https hacks 2022-07-07 10:02:46 +10:00
test_refstack.py refstack: Edit URL of public RefStackAPI 2021-03-10 14:09:20 +11:00
test_registry.py Deploy insecure-ci-registry.opendev.org on jammy 2023-06-23 13:21:48 -07:00
test_static.py Revert registry.zuul-ci.org 2023-11-14 16:05:28 -08:00
test_tracing.py Add Jaeger tracing server 2022-09-15 19:21:33 -07:00
test_zookeeper.py Add zk test to check myid is set in service 2023-10-17 09:31:16 -07:00
test_zuul_executor.py Remove gearman from Zuul 2022-02-01 13:52:47 -08:00
test_zuul_lb.py Add Zuul load balancer 2022-02-10 13:24:42 -08:00
test_zuul_merger.py Remove gearman from Zuul 2022-02-01 13:52:47 -08:00
test_zuul_preview.py Add zp02 zuul-preview server to replace zp01 2023-06-01 10:05:46 -07:00
test_zuul_scheduler.py Remove gearman from Zuul 2022-02-01 13:52:47 -08:00
util.py testinfra: Update selenium calls 2022-10-20 09:00:43 +11:00