test(sdk): expand actionable-message pattern to other lint pins (#228 followup) - #379
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…followup) Follow-up to #228 (merged as #371). Three additional cryptic throw sites extended with the (a) file:line to edit, (b) fix hint, (c) reason-for-pin pattern: - packages/sdk/tests/webhook.test.ts:29 — non-TCP server.address() explains the three likely causes (unawaited startup / socket-path port / exhausted ephemerals) rather than 'missing HTTP address'. - scripts/schema-metaschemas.mjs:45 — Unbundled meta-schema reference now names the roots list to add the schema to and explains the pin (unresolvable $ref would make Ajv throw at every consumer). - packages/sdk/tests/authored-use-loader.test.ts:22 — the body throw fixture now names the invariant it guards (loader must walk header only) and points at execute-authored-flow's gating signal. Not-in-scope: other test throws that fire when the SUT expected error (mock rejections, integration-test timing) are already meaningful in context. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Session-Id: efeda5df-9b7c-48d4-b2ce-957f5bef0a82 Session-Id: efeda5df-9b7c-48d4-b2ce-957f5bef0a82
5d99c24 to
60b144f
Compare
maintainability lens — FAILMaintainability review — PR #379The diff is entirely diagnostic-message enrichment across three files. In principle this is high-value maintainability work; in practice a couple of the new messages are already primed to lie. Blockers
Fix: either drop the line ref entirely (the file name is enough — grep works) or make it truly dynamic (e.g., attach a fresh Concerns
Notes
REVIEW_FAILED |
history lens — PASSBlockers: none. PR #379 passes the HISTORY lens at
Concern, nonblocking: Notes: The older gate referenced by REVIEW_PASSED |
structure lens — MISSING |
|
🎯 review-swarm: FAILED (M:fail H:pass S:missing) Lens transcripts posted as sibling comments above. |
Follow-up to #228 (merged as #371). Applies the (file:line + fix hint + reason-for-pin) expansion pattern to three additional cryptic throw sites:
webhook.test.tsserver.address(),scripts/schema-metaschemas.mjsunbundled meta-schema ref,authored-use-loader.test.tsbody-must-not-run fixture. Message-only; no behavior change.Note
Low Risk
Comment and error-string updates only; no logic, APIs, or test assertions changed.
Overview
Follow-up to the actionable-error pattern from #228: three throw sites now include inline comments, fix hints, and clearer failure text—no runtime behavior changes.
In
authored-use-loader.test.ts, the fixture body documents thatuse:resolution must not run authored flow bodies and throws aloader-invoked-bodymessage pointing maintainers at gating loader paths like execute-authored-flow does.In
webhook.test.ts, the guard whenserver.address()is null or a UNIX path explains why TCP is required and lists checks (await bind, numeric port, ephemeral port exhaustion), with a file reference in the error string.In
scripts/schema-metaschemas.mjs, the unbundled meta-schema$referror now tells you to add the schema’s$idto the bundled roots list and explains why the pin exists (avoid silent unresolvable$refs that break Ajv at load time).Reviewed by Cursor Bugbot for commit 60b144f. Bugbot is set up for automated code reviews on this repo. Configure here.