test(19.3-05): cooler caches, rate-limit parity, Install and after-commit purge

- miniredis v2.40.0 as a test-only dependency (approved at the Task 4 check)
- memory and Redis cache suites, Flush limited to <prefix>cache:
- one parity table through surf.MemoryStore, miniredis and real Redis
- Install, FromApp and site_cache validation; Postgres after-commit purge
- gate: cooler names in the go and docker stages
This commit is contained in:
Jakub Zych
2026-10-15 19:49:34 +02:00
parent b139651674
commit 78ba385793
10 changed files with 1622 additions and 3 deletions

View File

@@ -91,11 +91,32 @@ ATTACH_TESTS=(
TestPublicURLValidation
)
# cooler: caches, rate-limit parity with surf.MemoryStore (miniredis),
# Install, FromApp and the site-cache purger.
COOLER_TESTS=(
TestMemoryCache TestMemoryCacheTTL TestMemoryCacheBounded
TestMemoryIncrementConcurrent TestRememberDegrades
TestRedisCache TestRedisFlushOnlyPrefix
TestRateLimitParity
TestRateLimitConcurrentNeverExceedsMax
TestRateLimitFallbackOnError TestRateLimitKeyPrefix
TestInstallConfigErrors TestInstallPingWarning TestInstallReusesFromApp
TestFromAppLazy TestInstallSiteCacheValidation
TestSiteCachePurgeConfig TestSiteCachePurgeRequest TestSiteCacheFromApp
)
# docker stage: testcontainers suites.
DOCKER_CABANA_TESTS=(TestReorderHookRunsInTx TestReorderHookErrorRollsBack TestReorderWithoutHookUnchanged)
DOCKER_ATTACH_TESTS=(
TestStoreDiskExtension
)
# Postgres for the after-commit purge, redis:7-alpine for the rest.
DOCKER_COOLER_TESTS=(
TestRateLimitParityDocker
TestRedisCacheDocker
TestSiteCacheAfterCommitOnly
TestSiteCacheFailureNeverFails
)
usage() {
cat >&2 <<'EOF'
@@ -363,6 +384,7 @@ run_go() {
go_named "$ROOT" ./internal/build -short "${BUILD_TESTS[@]}"
go_named "$ROOT" ./modules/lagoon/attach -short "${ATTACH_TESTS[@]}"
go_named "$ROOT" ./modules/lagoon/attach "-short -tags summercms_s3" "${ATTACH_TESTS[@]}"
go_named "$ROOT" ./modules/cooler -short "${COOLER_TESTS[@]}"
echo "phase19.3 go passed"
}
@@ -377,6 +399,7 @@ run_docker() {
fi
go_named "$ROOT" ./modules/cabana "-timeout 20m" "${DOCKER_CABANA_TESTS[@]}"
go_named "$ROOT" ./modules/lagoon/attach "-timeout 20m" "${DOCKER_ATTACH_TESTS[@]}"
go_named "$ROOT" ./modules/cooler "-timeout 20m" "${DOCKER_COOLER_TESTS[@]}"
echo "phase19.3 docker passed"
}