grafana/scripts/grafana-server
Matthew Jacobson 676877f882
Chore: Reduce flakiness of e2e tests caused by write contention in sqlite (#76659)
Reduce flakiness of e2e tests caused by write contention in sqlite

Write contention in sqlite on startup intermittently causes failed tests because
 of failed service runs. This can have various root causes, one example is
 dashboard provisioning:

Dashboard provisioning's frequent commits can cause other read transaction
 snapshots to invalidate and throw SQLITE_BUSY/SQLITE_BUSY_SNAPSHOT. If those
 failing transactions have a long length but not long enough to ensure all of
 the dashboards have finished provisioning it will run out of retries and fail
 entirely.

 This change helps indirectly reduce these write contentions by limiting the
 connection pool for e2e tests.

 As a bonus, having our e2e tests run using `max_open_conn = 2` means it acts
 as a guard against regressions that would affect certain internal instances
 that run with these settings.
2023-10-17 10:49:49 +03:00
..
custom.ini Chore: Reduce flakiness of e2e tests caused by write contention in sqlite (#76659) 2023-10-17 10:49:49 +03:00
kill-server E2E: Rename end-to-end-tests-server to grafana-server (#44249) 2022-01-20 17:01:00 +00:00
start-server Tests: Add basic e2e tests for frontend plugin sandbox (#70759) 2023-09-26 10:58:47 +02:00
variables CI: Make e2e tests depend on binary builds (#44647) 2022-02-02 12:40:22 +02:00
wait-for-grafana E2E: Rename end-to-end-tests-server to grafana-server (#44249) 2022-01-20 17:01:00 +00:00