Skip to content

Migrate plugin discovery API integration tests to TypeScript - #5983

Merged
freeqaz-openai merged 2 commits into
mainfrom
codex/convert-plugin-discovery-api-suite
Nov 14, 2026
Merged

freeqaz-openai merged 2 commits into
mainfrom
codex/convert-plugin-discovery-api-suite

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

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

  • The original and converted suites each passed 40 tests, including all 13 subtests, in the same order. The converted entry passed on Node 24.22.1 both directly and through pnpm test:files.
  • The discovery suite, hosted Plugin Driver contract tests, and OpenShell source-reader integration passed 67/67. The native tool translation case passed separately. The discovery suite exercises Fastify, Native IAM, bundled Plugin Drivers, and a real client disconnect. Hosted provider and external credential responses are controlled.
  • The PostgreSQL plugin discovery case passed against a disposable migrated database. With its only pool connection available during a held Configuration read, a second HTTP request completed. Database cleanup passed.
  • The focused checks-baseline-1 lifecycle 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 usesCurrentHostedCredential and usesEachHarnessCatalog after 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.

@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 14, 2026 09:14
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The JavaScript entry registers 27 top-level cases, including previously extracted TypeScript cases.
  • After: The TypeScript entry explicitly registers the same 27 cases in order and imports typed fixture and case modules.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful test maintenance with preserved behavioral assertions and green reviewed-head checks; local execution was intentionally excluded from this review.
Proof confidence 🐚 platinum hermit (4/6) This test-only migration requires no shipped-entry-point demonstration; the author reports matching before-and-after test results, and exact-head CI metadata reports success.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored migration extends strict typing to the existing suite without introducing a second implementation or changing the platform contract.

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
Reviewed head: 9519cbaa42005c4e81711222ebb0f1390a837cb4

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is test maintenance without a production behavior change or an urgent user-facing failure.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test maintenance without a production behavior change or an urgent user-facing failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 4:27 AM ET / 09:27 UTC.

@freeqaz-openai
freeqaz-openai merged commit 96e5e2e into main Nov 14, 2026
63 checks passed
@freeqaz-openai
freeqaz-openai deleted the codex/convert-plugin-discovery-api-suite branch November 14, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant