Skip to content

analytics tests: derive sandbox fixtures from profiles#20408

Open
bolinfest wants to merge 1 commit intopr20407from
pr20408
Open

analytics tests: derive sandbox fixtures from profiles#20408
bolinfest wants to merge 1 commit intopr20407from
pr20408

Conversation

@bolinfest
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest commented Apr 30, 2026

Why

The analytics tests only need app-server response fixtures, but those fixtures still named the app-server SandboxPolicy enum directly. That is boundary compatibility baggage: the response still has a required legacy sandbox field, but the fixture intent is that the session is using disabled permissions.

What Changed

  • Removed direct SandboxPolicy imports from analytics tests.
  • Derived the required legacy sandbox fixture value from CorePermissionProfile::Disabled instead of constructing DangerFullAccess directly.
  • rg '\bSandboxPolicy\b' codex-rs/analytics/src no longer matches anything.

Verification

cargo test -p codex-analytics --no-run

Stack created with Sapling. Best reviewed with ReviewStack.

@bolinfest bolinfest requested a review from a team as a code owner April 30, 2026 12:01
@bolinfest bolinfest changed the base branch from main to pr20407 April 30, 2026 12:01
This was referenced Apr 30, 2026
This was referenced Apr 30, 2026
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