Repository navigation
Migrate plugin discovery API integration tests to TypeScript - #5983
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR converts plugin discovery API integration tests to TypeScript, extracts focused case modules, and updates CI registration and documentation links. Example: A contributor runs the plugin discovery integration suite.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR completes a useful test migration, preserves existing coverage, and introduces no actionable defect found in review. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe suite sends authenticated HTTP requests through the existing Fastify Console fixture into OCC and Native IAM, checking plugin discovery responses and credential boundaries with controlled external dependencies. flowchart TB
A[TypeScript test entry] --> B[Console HTTP fixture]
B --> C[Fastify routes]
C --> D[OCC discovery]
D --> E[Native IAM]
D --> F[Plugin Drivers]
F --> G[Controlled provider responses]
Technical reviewBest possible solution: Land the typed suite with its preserved case ordering, existing fixture ownership, and updated CI registration. Do we have a high-confidence way to reproduce the issue? This PR migrates existing coverage rather than repairing a reported product bug; source comparison was performed, and no target code or tests were run during this read-only review. Is this the best way to solve the issue? The migration uses the existing HTTP fixture, response schemas, and Secret-grant helper while keeping production contracts unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8668d51b3cc2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 4:27 AM ET / 09:27 UTC. |
The plugin discovery API suite now runs directly as TypeScript. Its entry point keeps all 27 top-level cases in their original order. The case modules exercise Namespace authorization, saved Agent credentials, selected Secrets, client disconnects, and Harness-specific catalog selection through the existing Console HTTP fixture. The disconnect cases keep the client error listener until socket destruction so a test deadline reports its original failure. The CI manifest, duration estimate, and contributor commands point to the typed entry.
Verification
pnpm test:files.checks-baseline-1lifecycle passed all 40 tests and completed cleanup. Manifest selection, typecheck, lint, formatting, workspace boundaries, and documentation checks passed.Related changes
The placement refusal cases in #4673 and #4932 belong in
usesCurrentHostedCredentialandusesEachHarnessCatalogafter the file move. The AWS fixture extraction in #4131 needs to preserve per-Harness Driver selection and the callback that changes saved Agent state during discovery.