Skip to content

Isolate auth storage attribution tests from account switches - #62131

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e735c2e0f81c6e58fd545943b47ff7bbd11339d7
Nov 17, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e735c2e0f81c6e58fd545943b47ff7bbd11339d7

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Isolate auth storage attribution tests from account switches

Why

Switching accounts revokes in-flight metric exports, which can interrupt
the auth storage events these app-server tests use to verify client
attribution.

What changed

  • Add a device-code login test that blocks the credential save by making
    auth.json a directory. Verify that login reports the failure and that
    the storage metric carries the codex_vscode originator. Keep the
    successful login and notification checks in their own test.
  • Seed the concurrent-client test with the API key all three clients use
    so their writes keep the same account. Point the turn-cost probe at a
    local mock server and disable online model discovery.

## Why

Switching accounts revokes in-flight metric exports, which can interrupt
the auth storage events these app-server tests use to verify client
attribution.

## What changed

- Add a device-code login test that blocks the credential save by making
  `auth.json` a directory. Verify that login reports the failure and that
  the storage metric carries the `codex_vscode` originator. Keep the
  successful login and notification checks in their own test.
- Seed the concurrent-client test with the API key all three clients use
  so their writes keep the same account. Point the turn-cost probe at a
  local mock server and disable online model discovery.

GitOrigin-RevId: e735c2e0f81c6e58fd545943b47ff7bbd11339d7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e735c2e0f81c6e58fd545943b47ff7bbd11339d7 branch from 319a384 to c90234d Compare November 17, 2026 23:45
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-17T23:45:46.817135Z 319a384 PR opened
ℹ️ 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.

@copyberry
copyberry Bot merged commit c90234d into main Nov 17, 2026
10 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e735c2e0f81c6e58fd545943b47ff7bbd11339d7 branch November 17, 2026 23:45
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant