IW-637: Remove live Linear API calls from the unit tier #645

Merged
claude merged 13 commits from IW-637 into main 2026-09-26 11:16:10 +00:00
Member

Summary

LinearClientTest called the live Linear API in the unit tier. When a developer had LINEAR_API_TOKEN set, a slow or failed call made the pre-push hook fail with no code change. Without the token, one test passed without a check and wrote noise to the output.

Defects fixed

  • Phase 1 (#641): The live Linear API calls in the unit tier made the unit result depend on the network. The token checks now run against an sttp SyncBackendStub in LinearClientMockTest. New tests cover a 5xx answer and a connection failure. The live-call tests are removed from LinearClientTest.

Testing

  • core.test covers LinearClientMockTest and LinearClientTest (no network access).
  • The CI run on the phase PR passed.

Follow-ups filed

  • #642: LinearClient.validateToken hides the cause of a failed token check
  • #643: LinearClient.defaultBackend makes a new HttpClient for each call and never closes it
  • #644: LinearClientMockTest imports Issue twice

Release notes

See project-management/issues/IW-637/release-notes.md (Czech).

🤖 Generated with Claude Code

Closes #637

## Summary `LinearClientTest` called the live Linear API in the unit tier. When a developer had `LINEAR_API_TOKEN` set, a slow or failed call made the pre-push hook fail with no code change. Without the token, one test passed without a check and wrote noise to the output. ## Defects fixed - **Phase 1 (#641):** The live Linear API calls in the unit tier made the unit result depend on the network. The token checks now run against an sttp `SyncBackendStub` in `LinearClientMockTest`. New tests cover a 5xx answer and a connection failure. The live-call tests are removed from `LinearClientTest`. ## Testing - `core.test` covers `LinearClientMockTest` and `LinearClientTest` (no network access). - The CI run on the phase PR passed. ## Follow-ups filed - #642: `LinearClient.validateToken` hides the cause of a failed token check - #643: `LinearClient.defaultBackend` makes a new `HttpClient` for each call and never closes it - #644: `LinearClientMockTest` imports `Issue` twice ## Release notes See `project-management/issues/IW-637/release-notes.md` (Czech). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Closes #637
LinearClientTest calls the live Linear API in the unit suite and fails the pre-push hook when the call is slow

Artifacts:
- analysis.md
- issue.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LinearClientTest calls the live Linear API in the unit suite and fails the pre-push hook when the call is slow

Artifacts:
- tasks.md
- review-state.json (tasks_ready)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Issue: IW-637
Phase: 1 - Live Linear API calls in the unit tier make the unit verdict depend on the network

This commit marks the checkpoint for phase 1 context generation.
Use dx-fix IW-637 to return to this point.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live Linear API calls in the unit tier make the unit verdict depend on the network

Artifacts:
- phase-01-tasks.md

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(IW-637): add release notes, file follow-ups as #642 #643 #644
Some checks failed
CI / changes (pull_request) Successful in 4s
CI / contract (pull_request) Has been skipped
CI / format (pull_request) Successful in 10s
CI / lint (pull_request) Successful in 11s
CI / compile (pull_request) Successful in 1m34s
CI / test (pull_request) Has been cancelled
CI / dashboard-build (pull_request) Has been cancelled
4237d3681d
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(IW-637): update review-state to all_complete
All checks were successful
CI / changes (pull_request) Successful in 4s
CI / contract (pull_request) Has been skipped
CI / format (pull_request) Successful in 10s
CI / lint (pull_request) Successful in 13s
CI / compile (pull_request) Successful in 1m34s
CI / dashboard-build (pull_request) Successful in 1m14s
CI / test (pull_request) Successful in 15m32s
be682f7f4c
claude merged commit 87060d3e2c into main 2026-09-26 11:16:10 +00:00
Sign in to join this conversation.
No description provided.