Skip to content

Make test-product retention configurable - #532

Open
ianrahman wants to merge 4 commits into
getsentry:mainfrom
ianrahman:codex/configurable-test-products-retention
Open

ianrahman wants to merge 4 commits into
getsentry:mainfrom
ianrahman:codex/configurable-test-products-retention

Conversation

@ianrahman

@ianrahman ianrahman commented Sep 11, 2026 •

Copy link
Copy Markdown

Summary

  • Make managed .xctestproducts retention configurable through .mobilebuildmcp/config.yaml or MOBILEBUILDMCP_TEST_PRODUCTS_MAX_COUNT / MOBILEBUILDMCP_TEST_PRODUCTS_MAX_AGE_DAYS, defaulting to three bundles for one day.

  • Prune under the workspace lifecycle lock, protect active readers and caller-owned bundles, and preserve completed products after cleanup or metadata errors while surfacing the original error.

  • The global unit setup already isolates storage; device/macOS suites now assert this before lifecycle work.

Validation

177 focused tests pass; omitting unit setup correctly fails the new guards. Build, typecheck, formatting, and strict lint on freshly touched TypeScript files pass. Full unit suite: 2,630 passed, one unchanged init home-path failure. Global strict lint retains 105 existing warnings. Snapshot/smoke suites were not run. xhigh review was unavailable due to capacity; local review completed.

Fixes #524.

AI assistance: Heavy AI use; human review is limited.

@ianrahman
ianrahman marked this pull request as draft September 11, 2026 21:01
@ianrahman
ianrahman force-pushed the codex/configurable-test-products-retention branch from fd7ba73 to a13bedb Compare September 21, 2026 20:17
@ianrahman
ianrahman marked this pull request as ready for review September 21, 2026 20:35

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread src/utils/test-products-lifecycle.ts
Comment thread src/utils/test-common.ts
@github-actions

Copy link
Copy Markdown

This PR has been inactive for 21 days. It will be closed in 7 days if no further activity occurs. Add a comment to keep it open, or apply the no-stale label.

@FelixLisczyk

Copy link
Copy Markdown

I would like to have these configuration options as well.

@ianrahman
ianrahman force-pushed the codex/configurable-test-products-retention branch from 43704d9 to b1f6d18 Compare October 13, 2026 12:43

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b1f6d18. Configure here.

Comment thread src/mcp/tools/device/__tests__/test_device.test.ts
@github-actions github-actions Bot removed the stale-pr label Oct 14, 2026

This branch has not been deployed

No deployments
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.

Test-products retention is unbounded in practice (100 bundles / 3 days, no config knob) — can fill a disk

2 participants