René's URL Explorer Experiment


Title: mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain · Issue #10554 · developing-today/code · GitHub

Open Graph Title: mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain · Issue #10554 · developing-today/code

X Title: mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain · Issue #10554 · developing-today/code

Description: What leaks pkgs/mcpx/internal/testsupport builders (MCPXBinary, FakeMCPBinary, EraMCPBinary, TaskMCPBinary, AskMCPBinary) each create a temp dir (mcpx-bin-*, mcpx-fake-*, mcpx-era-*, mcpx-task-*, mcpx-ask-*) and register it for the suite...

Open Graph Description: What leaks pkgs/mcpx/internal/testsupport builders (MCPXBinary, FakeMCPBinary, EraMCPBinary, TaskMCPBinary, AskMCPBinary) each create a temp dir (mcpx-bin-*, mcpx-fake-*, mcpx-era-*, mcpx-task-*, m...

X Description: What leaks pkgs/mcpx/internal/testsupport builders (MCPXBinary, FakeMCPBinary, EraMCPBinary, TaskMCPBinary, AskMCPBinary) each create a temp dir (mcpx-bin-*, mcpx-fake-*, mcpx-era-*, mcpx-task-*, m...

Opengraph URL: https://github.com/developing-today/code/issues/10554

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain","articleBody":"## What leaks\n\n`pkgs/mcpx/internal/testsupport` builders (`MCPXBinary`, `FakeMCPBinary`, `EraMCPBinary`, `TaskMCPBinary`, `AskMCPBinary`) each create a temp dir (`mcpx-bin-*`, `mcpx-fake-*`, `mcpx-era-*`, `mcpx-task-*`, `mcpx-ask-*`) and register it for the suite-wide sweep (#1971 remainder item 2). Only `internal/e2e` has a `TestMain` that calls `SweepBuildTempDirs`. The other consuming packages — `internal/daemon`, `internal/pool`, `examples` — never sweep, so every test run of those packages leaves its build dirs behind in $TMPDIR.\n\nMeasured on the laptop (2026-11-13/14): dozens of `mcpx-bin-*` dirs in ~/tmp and ~/.local/share/opencode/tmp, ~788 MB each. The size is mostly a cold Go build cache: `buildEnv` pins GOCACHE/XDG_CACHE_HOME inside each build temp dir, so every test binary also pays a full cold build of all dependencies.\n\nA standing laptop scratch sweep (nixos/home/laptop-scratch-sweep) reaps /tmp/mcpx-bin-* older than 24h, but the dirs land in the test process TMPDIR (~/tmp for lane runs, opencode tmp for opencode-spawned runs), which that sweep does not watch for this pattern.\n\n## Fix\n\n- Give the non-sweeping consuming packages a TestMain that runs the suite sweep, via one shared testsupport helper mirroring e2e semantics (remove this binary's registered dirs; fail on processes still executing from them).\n- Pin the testsupport build cache to a fixed testsupport-chosen location under the real user cache dir instead of inside each build temp dir: still never caller-controlled (the guard-test property buildEnv exists for), but warm across test binaries, and a leaked dir then holds only the ~57 MB binary.\n\n## Verify\n\nRun the affected packages' tests and confirm no new mcpx-* dirs remain in TMPDIR afterwards.","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-15T21:45:39Z","url":"https://github.com/developing-today/code/issues/10554"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:65bfa92e-f844-3eed-bbed-06e5d43b85a7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB7F6:3DA8B4:1C0ABC:2632C1:6B0612FF
html-safe-nonce4787f3aeb3b8cde363996112aefef938b96e66eb2c0268de07859735ea602c47
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0Y2OjNEQThCNDoxQzBBQkM6MjYzMkMxOjZCMDYxMkZGIiwidmlzaXRvcl9pZCI6IjQxMTg1MjEwMzgwMDQ2MDAzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6d075e26ae9f3f2fc4ae9e0862d0ec40e5612657ab5164076ef8d6c1435cffa2
hovercard-subject-tagissue:6409919672
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/10554/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8a20455c500abe83d723d8c6b729b70ca87be9610f701627fab9d673fbc56244/developing-today/code/issues/10554
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8a20455c500abe83d723d8c6b729b70ca87be9610f701627fab9d673fbc56244/developing-today/code/issues/10554
og:image:altWhat leaks pkgs/mcpx/internal/testsupport builders (MCPXBinary, FakeMCPBinary, EraMCPBinary, TaskMCPBinary, AskMCPBinary) each create a temp dir (mcpx-bin-*, mcpx-fake-*, mcpx-era-*, mcpx-task-*, m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonee58943f0186bb8d97b217393c2724a49ab47e4aefefc43595a90fa04699066c9
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release23517473abc6d5da019b4958bd421644e98a418b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/10554#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F10554
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F10554
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/10554
Reloadhttps://github.com/developing-today/code/issues/10554
Reloadhttps://github.com/developing-today/code/issues/10554
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests144 (144)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/10554
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/10554
#10565https://github.com/developing-today/code/pull/10565
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMainhttps://github.com/developing-today/code/issues/10554#top
#10565https://github.com/developing-today/code/pull/10565
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#issue-6409919672
#1971https://github.com/developing-today/code/issues/1971
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#issuecomment-6901867790
developing.todayhttps://kaneo.security.cab
CODE-3828https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/f908w20racf0wzxhlabp5shx
dezren39https://github.com/dezren39
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#event-36221053207
fix(mcpx): sweep build temp dirs in all testsupport suites (#10554)https://github.com/developing-today/code/commit/7beef7542279d6a4d5bd8625660f7f0a93f49fc2
#10554https://github.com/developing-today/code/issues/10554
7beef75https://github.com/developing-today/code/commit/7beef7542279d6a4d5bd8625660f7f0a93f49fc2
developing-todayhttps://github.com/apps/developing-today
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#event-36221067176
dezren39https://github.com/dezren39
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#event-36221080026
Merge pull request #10565 from developing-today/fix/10554-mcpx-testsu…https://github.com/developing-today/code/commit/2fadad30ddc5e2f89e34c517db2d2a5f2cfae647
#10565https://github.com/developing-today/code/pull/10565
2fadad3https://github.com/developing-today/code/commit/2fadad30ddc5e2f89e34c517db2d2a5f2cfae647
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#10565https://github.com/developing-today/code/pull/10565
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#event-36221080831
developing-todayhttps://github.com/apps/developing-today
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#event-36221083814
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#issuecomment-6903058000
#10565https://github.com/developing-today/code/pull/10565
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#issuecomment-6903063320
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
dezren39https://github.com/dezren39
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#event-36221130168
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#issuecomment-6903088298
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554 (comment)https://github.com/developing-today/code/issues/10554#issuecomment-6903063320
dezren39https://github.com/dezren39
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#event-36221235803
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#issuecomment-6903502770
#10554https://github.com/developing-today/code/issues/10554
fix(mcpx): sweep build temp dirs in all testsupport suites (#10554) #10565https://github.com/developing-today/code/pull/10565
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
2fadad3https://github.com/developing-today/code/commit/2fadad30ddc5e2f89e34c517db2d2a5f2cfae647
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
fix(mcpx): sweep build temp dirs in all testsupport suites (#10554) #10565https://github.com/developing-today/code/pull/10565
mcpx testsupport builders leak build temp dirs in packages without a sweeping TestMain #10554https://github.com/developing-today/code/issues/10554
#10565https://github.com/developing-today/code/pull/10565
dezren39https://github.com/dezren39
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 15, 2026https://github.com/developing-today/code/issues/10554#event-36222815870
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/10554
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/10554
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.