Flaky: Redis cache prefix span includes unprefixed random byte key
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python, redis
- Lĩnh vực
- observability, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
--
- Ngôn ngữ chính
- Python
- Star
- 2.2k
- Fork
- 713
- Merge trung bình
- 1 ngày 16 phút
- Pull request đã merge (30 ngày)
- 113
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-python
-
Rate limits from later headers shorten longer active limitsCó thể đã có người làm @sentry-junior đã nhận 12 ngày trước. Đang mởPython
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/sentry-python#8296 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
perf: Source context re-reads the whole file via loader.get_source() for every frameCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởImprovement Python Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/sentry-python#8089 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improvement Integration: Boto3 Python Traces
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
getsentry/sentry-python#8074 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`litellm`: Set request parametersCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởImprovement Python Spans
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-python#7994 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`cohere`: Set request parametersCó thể làm lại được @mohanprasath-dev đã nhận 44 ngày trước và không có pull request nào đang mở. Đang mởImprovement Python Spans Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-python#7992 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-python
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
521xueweihan/HelloGitHub#4599 ·
-
Bug Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
pandas-dev/pandas#72413 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
compiler-explorer/compiler-explorer#9710 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug harness
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mruangutai/harness#2687 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
modal-labs/modal-client#4158 ·