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
adapters/linear: TestRateLimitDeadlineReturnsTypedRateLimited flakes under -race #109
TestRateLimitDeadlineReturnsTypedRateLimited in adapters/linear failed once under -race during local validation of #108:
harden_capability_test.go:209: err = Post "http://127.0.0.1:38387/graphql": context deadline exceeded, want *linear.RateLimited (deadline-bounded, not slept off)
The run was GOFLAGS=-race mise run test with Go 1.27.1, while other module tests ran in parallel. The test passed 10 of 10 times with go test -race -count=10 -run TestRateLimitDeadlineReturnsTypedRateLimited ./adapters/linear/. #108 did not change the root module's go.mod or go.sum.
Likely cause (I did not verify this): the test gives PostThought a 50 ms context. On a loaded machine under -race, the first POST to the test server can take longer than 50 ms, before the 429 reply arrives. The client then returns a plain context deadline exceeded instead of *linear.RateLimited.
To reproduce, run the test under CPU load, for example with -race -count=200 -cpu=1 while another heavy test suite runs.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
Triage: accepted as a test flake. The issue has a repro and a likely cause, so it is ready for an agent. Acceptance: the test passes reliably under -race -cpu=1 with CPU load, and it still asserts that a 429 inside the deadline returns *linear.RateLimited. Don't weaken the assertion.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: medium
Activity
ThomasK33 commentedon Oct 13, 2026
Triage: accepted as a test flake. The issue has a repro and a likely cause, so it is ready for an agent. Acceptance: the test passes reliably under
-race -cpu=1with CPU load, and it still asserts that a 429 inside the deadline returns*linear.RateLimited. Don't weaken the assertion.Generated with
xum• Model:anthropic:claude-opus-5-5• Thinking:medium