LinearClientTest calls the live Linear API in the unit suite and fails the pre-push hook when the call is slow #637
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#637
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
core/test/LinearClientTest.scala:17("validateToken returns true for valid token") calls the live Linear API whenLINEAR_API_TOKENis set in the shell. On 2026-09-26 it failed once in the pre-push hook (ComparisonFailExceptionat line 22, 5.7 s). A direct call to the same API with the same token then answered HTTP 200 in 0.2 s, and the test passed on the next two runs. No code on the branch had changed.So a unit run fails when the network or Linear is slow, and it blocks a push that changes only documents. A live-API check does not belong in the unit tier; it belongs in the contract tier (see
docs/testing.md), or the unit test should use a fake backend.Intake: agent-ready
Workflow: diagnostic
Reason: all gates passed
Analysis: project-management/issues/IW-637/analysis.md on branch IW-637