Repository navigation
docs(mcpx): test inventory for #1960 deliverable 1 - #2643
Conversation
|
Warning Review limit reachedYou'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. View limit details
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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| 3. `internal/testsupport/build.go` — `t.TempDir` or `t.Cleanup(RemoveAll)` | ||
| for the `mcpx-bin-*`/`mcpx-fake-*` dirs (#129 candidate). |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
52fac19 to
99db863
Compare
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.
Need help on this PR? Tag
@codesmith-botwith what you need.