From 49fcbc45a6a5a05d1e979f7759815361a513ea9a Mon Sep 17 00:00:00 2001 From: Claude Sonnet 5 Date: Wed, 8 Jul 2026 13:39:33 +0200 Subject: [PATCH] CI: reset login rate limit between the auth and content e2e packs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous commit's "Auth e2e pack" job failed: auth.spec.ts's own logins already spend a good chunk of the 10/min/IP login rate limit (operations.md), leaving content.spec.ts's five more logins to hit it mid-pack. Reproduced locally against a fresh throwaway database (migrate + seed + both Playwright runs back to back, exactly the job's steps) and confirmed a DELETE on rate_limits between the two runs fixes it. Follow-up to #32, not a new issue — the pack itself was already correct, this is a test-infrastructure fix. --- .gitea/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 48ead75..8cfb697 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -123,6 +123,15 @@ jobs: E2E_BASE_URL=http://localhost:5173 E2E_MAILPIT_URL=http://mailpit:8025 \ pnpm --filter @dorfteich/web exec playwright test e2e/auth.spec.ts + # auth.spec.ts's own logins (contextForUser per test) already spend + # a good chunk of the login rate limit (10/min/IP, operations.md) — + # reset it before content.spec.ts's five more, or its later tests + # 429 (found by reproducing this job's failure locally, issue #32). + - name: Reset login rate limit between e2e packs + run: | + echo "DELETE FROM rate_limits WHERE key LIKE 'login%';" | \ + pnpm --filter @dorfteich/api exec prisma db execute --stdin --url "$DATABASE_URL" + - name: Run content pack run: | E2E_BASE_URL=http://localhost:5173 \