Flaky: Redis cache prefix span includes unprefixed random byte key
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python, redis
- 領域
- observability, testing
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
--
- 主要言語
- Python
- スター
- 2.2k
- フォーク
- 713
- 平均マージ
- 1日 16分
- マージ済み PR(30日)
- 113
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-python のほかの issue
-
Rate limits from later headers shorten longer active limits対応中かも @sentry-junior が 12 日前に担当しました。 オープンPython
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getsentry/sentry-python#8296 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
perf: Source context re-reads the whole file via loader.get_source() for every frame対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンImprovement Python Waiting for: Product Owner
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
getsentry/sentry-python#8089 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Improvement Integration: Boto3 Python Traces
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
getsentry/sentry-python#8074 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`litellm`: Set request parameters再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンImprovement Python Spans
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/sentry-python#7994 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`cohere`: Set request parameters再び着手できるかも @mohanprasath-dev が 44 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンImprovement Python Spans Waiting for: Product Owner
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
getsentry/sentry-python#7992 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-python の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4599 ·
-
Bug Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
pandas-dev/pandas#72413 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
compiler-explorer/compiler-explorer#9710 ·
メンテナーはふだん 1 日以内に返信
-
bug harness
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mruangutai/harness#2687 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
modal-labs/modal-client#4158 ·