Repository navigation
test(e2e): contoarele Redis sunt separate pe worker Jest (#706) - #708
Merged
Merged
Conversation
CI rulează e2e cu --maxWorkers=2. Baza de date și cozile Bull erau deja per worker, prefixul Redis nu: flushRedis() dintr-un fișier de test ștergea toate cheile `test:*`, inclusiv contorul de invitații verificat în acel moment de team.e2e-spec.ts, și „429 on a second press” primea 200. Prefixul devine `test:<worker>:`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rezolvă #706.
Problema
team.e2e-spec.ts› „send invite … 429 on a second press” pica aleatoriu pe CI (expected 429, got 200). Rulat singur, trecea.CI rulează e2e cu
--maxWorkers=2. Baza de date (vic_test_<worker>) și cozile Bull erau deja separate pe worker, dar prefixul Redis (test:) era comun.flushRedis()dintr-un alt fișier de test ștergea toate cheiletest:*, inclusiv contorul de invitații, între cele două apăsări.Schimbarea
test/setup-env.ts:REDIS_KEY_PREFIXdevinetest:<JEST_WORKER_ID>:, caBULL_PREFIXși numele bazei de date. Codul aplicației nu se schimbă.Testat
test:*(ce faceflushRedis()din alt worker), rulat în paralel cu testul de invitații → testul pică (200în loc de429).test:2:*) → testul trece de 3 ori din 3.--maxWorkers=2: 283/284. Singurul eșec e cel cunoscut, doar local: URL-ul S3 dinorganization-registrationfolosește IP-ul de LAN din.env-ul meu.🤖 Generated with Claude Code