Flaky: Redis cache prefix span includes unprefixed random byte key
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python, redis
- Ambito
- observability, testing
Direzione di ricerca
Start with test_cache_prefixes in tests/integrations/redis/test_redis_cache_module.py, around line 421, where the failing assertion is. Run that parametrized test many times to reproduce the flake, then check how the Redis cache span name is built from mget keys, including whether random bytes from uuid.uuid4().bytes get decoded or rendered. Done means the root cause is established (SDK filtering or test nondeterminism) and the test passes reliably.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Test
tests/integrations/redis/test_redis_cache_module.py::test_cache_prefixes[True]
CI evidence
Failed once on master commit cc90b4db0935668848204d377f27d2bec3400950 in job 115277595744. The failing environment was py3.7-redis-v4.6.0 (Python 3.7.17, redis-py 4.6.0, fakeredis 2.25.1; Redis server not used). Assertion excerpt: assert "=i%lۅKާ}b_;-'2, yes" == ', yes' at test_redis_cache_module.py:421.
Expected vs actual
With cache_prefixes=["yes"], a cache span should contain only matching cache keys, so the expected span name is ", yes". In this failure the unprefixed random-byte key was rendered into the span name.
Suspected trigger (unverified)
The test passes uuid.uuid4().bytes to mget; the SDK may decode or otherwise render random bytes as text while building the cache span name/description. Need to establish whether this is an SDK serialization/filtering bug or a test relying on a nondeterministic key.
Environment
- CI Python: 3.7.17
- redis-py: 4.6.0
- fakeredis: 2.25.1
- Tox env:
py3.7-redis-v4.6.0 - Redis server: not required by this test (it uses
fakeredis.FakeStrictRedis).
The weekly report records one failure. Baseline repetition, measured reproduction, and root cause are pending.
via johdax.
--
- Lingua principale
- Python
- Stelle
- 2.2k
- Fork
- 713
- Merge medio
- 1g 16m
- PR unite (30g)
- 113
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/sentry-python
-
Rate limits from later headers shorten longer active limitsForse già presa @sentry-junior l’ha presa 12 giorni fa. ApertaPython
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsentry/sentry-python#8296 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
perf: Source context re-reads the whole file via loader.get_source() for every frameForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaImprovement Python Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
getsentry/sentry-python#8089 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Improvement Integration: Boto3 Python Traces
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
getsentry/sentry-python#8074 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`litellm`: Set request parametersForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. ApertaImprovement Python Spans
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getsentry/sentry-python#7994 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`cohere`: Set request parametersForse di nuovo libera @mohanprasath-dev l’ha presa 44 giorni fa e non c’è nessuna pull request aperta. ApertaImprovement Python Spans Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
getsentry/sentry-python#7992 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di getsentry/sentry-python
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
521xueweihan/HelloGitHub#4599 ·
-
Bug Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
pandas-dev/pandas#72413 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
compiler-explorer/compiler-explorer#9710 ·
I maintainer di solito rispondono entro 1 giorno
-
bug harness
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mruangutai/harness#2687 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
modal-labs/modal-client#4158 ·