You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tests): test_each_identity_keeps_its_own_quota_and_response_cache passes alone and in a serial run, not only under xdist #1411
scope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnerssource/agentFiled by an agenttype/bugType bug: the code does not do what it must
tests/test_github_rate_limiter.py::test_each_identity_keeps_its_own_quota_and_response_cache fails when run alone or in a serial run (-n0) with KeyError: 'env' at call.kwargs["env"] (around line 1365), and passes under xdist. Seen at 3f1935a and on the #1364 branch on 2026-10-08. It looks order-dependent: some subprocess.run call that is cached or warmed up by an earlier test in the same worker reaches the test's assertion without an env keyword.
Acceptance criteria
Find the call that arrives without env and make the test assert only on the gh argv calls it means to check, so it passes alone, serially and under xdist.
uv run pytest tests/test_github_rate_limiter.py -n0 and -p randomly (or a shuffled order) both pass, each call phase stays under 1 s, and uv run devops ci passes.
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
Priority: P2-Medium. A non-hermetic test undermines CI confidence and can mask real regressions, but it does not break production behaviour.
Value: Medium. Restoring test hermeticity protects the suite's ability to catch real failures in any execution order.
Effort: Low. The fix is to narrow the test's assertion to the specific gh argv calls it intends to check, removing sensitivity to unrelated cached subprocess.run calls.
Closing as a duplicate of #1418, which keeps it. #1418 found the cause: Tracer.__init__ calls platform.platform() (telemetry/tracer.py:742), which runs uname -p through subprocess on first use. When this test runs first in its process, its subprocess.run patch (tests/test_github_rate_limiter.py:1354) records that call, which has no env, so call.kwargs["env"] (:1365) raises. This item's serial and shuffled-order criterion moves to #1418.
scope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnerssource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
A non-hermetic test undermines CI confidence and can mask real regressions, but it does not break production behaviour.Restoring test hermeticity protects the suite's ability to catch real failures in any execution order.The fix is to narrow the test's assertion to the specific gh argv calls it intends to check, removing sensitivity to unrelated cached subprocess.run calls.dan-petty commentedon Oct 8, 2026
Closing as a duplicate of #1418, which keeps it. #1418 found the cause:
Tracer.__init__callsplatform.platform()(telemetry/tracer.py:742), which runsuname -pthroughsubprocesson first use. When this test runs first in its process, itssubprocess.runpatch (tests/test_github_rate_limiter.py:1354) records that call, which has noenv, socall.kwargs["env"](:1365) raises. This item's serial and shuffled-order criterion moves to #1418.Found by the 2026-10-08 backlog review.
fix(roadmap): intake calls a candidate a duplicate only when it asks …