fix: sqlite nocgo with ionice and parallel flag (#112849)

* chore: log test DB path

* fix: run sqlite_nocgo with parallel 4 and ionice to reduce IO operations
This commit is contained in:
Rafael Bortolon Paulovic authored and GitHub committed 2025-10-23 14:08:39 +02:00
1 parent 2a0f149a63
commit 4e296fa9ec
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -101,7 +101,8 @@ jobs:
run: |
set -euo pipefail
readarray -t PACKAGES <<< "$(./scripts/ci/backend-tests/pkgs-with-tests-named.sh -b TestIntegration | ./scripts/ci/backend-tests/shard.sh -N"$SHARD" -d-)"
CGO_ENABLED=0 go test -tags=sqlite -timeout=8m -run '^TestIntegration' "${PACKAGES[@]}"
# ionice since tests are IO intensive
CGO_ENABLED=0 ionice -c2 -n7 go test -p=4 -tags=sqlite -timeout=8m -run '^TestIntegration' "${PACKAGES[@]}"
mysql:
needs: detect-changes
if: needs.detect-changes.outputs.changed == 'true'
+1 -1
View File
@@ -103,7 +103,7 @@ func StartGrafanaEnv(t *testing.T, grafDir, cfgPath string) (string, *server.Tes
dbCfg.Key("password").SetValue(testDB.Password)
dbCfg.Key("name").SetValue(testDB.Database)
t.Log("Using test database", "type", testDB.DriverName, "host", testDB.Host, "port", testDB.Port, "user", testDB.User, "name", testDB.Database)
t.Log("Using test database", "type", testDB.DriverName, "host", testDB.Host, "port", testDB.Port, "user", testDB.User, "name", testDB.Database, "path", testDB.Path)
env, err := server.InitializeForTest(ctx, t, t, cfg, serverOpts, apiServerOpts)
require.NoError(t, err)