Skip to content

docs(mcpx): test inventory for #1960 deliverable 1 - #2643

Merged
dezren39 merged 1 commit into
mainfrom
queue/3257-1960-mcpx-inventory
Oct 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/3257-1960-mcpx-inventory

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Delivers #1960 deliverable 1 (queue task 3257, follow-up of triage 2860): refreshed full census of pkgs/mcpx tests on current main, committed as pkgs/mcpx/docs/testing/inventory.md.

Closes nothing by itself; #1960 stays open until deliverables 2-3 land.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 08:50
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eef670d5-24f4-412c-a116-32a804497899
Commits

Reviewing files that changed from the base of the PR and between a2ea43b and 99db863.

Files selected for processing: 1
  • pkgs/mcpx/docs/testing/inventory.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T08:56:13.530075Z 99db863 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52fac196e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkgs/mcpx/docs/testing/inventory.md Outdated
Comment on lines +105 to +106
3. `internal/testsupport/build.go` — `t.TempDir` or `t.Cleanup(RemoveAll)`
for the `mcpx-bin-*`/`mcpx-fake-*` dirs (#129 candidate).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve package lifetime in the binary-cleanup recommendation

Using either proposed cleanup directly in these helpers would delete the shared binary when the first calling test finishes. FakeMCPBinary and MCPXBinary cache their paths behind package-global sync.Once values in internal/testsupport/build.go, so subsequent tests would receive a nonexistent executable rather than rebuild it; for example, multiple tests in internal/pool/pool_test.go reuse FakeMCPBinary. Recommend package-lifetime cleanup, or explicitly require redesigning the cache before introducing test-scoped cleanup.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — fixed in the doc: the recommendation now says test-scoped RemoveAll is wrong for the Once-cached shared binaries and calls for package-lifetime cleanup (TestMain) or a cache redesign first. Per-test dirs still go to t.TempDir.

Refreshed full census of pkgs/mcpx tests on main at dd2c88f:
1626 Test funcs in 306 files, zero Fuzz funcs. Per-package
generator candidates, hidden time/randomness/ports, flake-prone
sites with file:line refs. No test or production code changed.

Queue task 3257.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant