LinearClient.validateToken hides the cause of a failed token check #642
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#642
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?
Found during IW-637.
LinearClient.validateTokencatches every exception (catch case _: Exception => false) and maps every non-200 code tofalse, so it hides the cause of a failure (network error, timeout, 5xx, 401) fromhook-doctorusers as well as from tests —core/adapters/LinearClient.scala:46.Intake: agent-ready
Workflow: diagnostic
Reason: all gates passed
Analysis: project-management/issues/IW-642/analysis.md on branch IW-642
Implement: needs-human
Reason: batch-implement exit 1 — the kanon plugin command did not compile, so no phase ran.
fetchPullRequestForBranchin the iw-cli core now returnsEither[TrackerError, …](#778–#780), and the plugin'slib/batch/ForgeCatchUp.scala:143still expectsEither[String, …]. The cause is not in this issue: everybatch-implementrun against the current iw-climainfails the same way until the plugin is updated. Nobatch-implement.logwas written; the lines below are the command output.Release: the implement loop failed this issue for a reason outside it. The kanon plugin did not compile against iw-cli main, because the tracker port now returns TrackerError (iw-cli #778). The plugin fix is dev-docs #484, and iw-cli 0.22.1 carries the core change. The issue goes back to the implement loop.