Skip to content

Isolate fake GitHub tests from ambient credentials - #1631

Merged
mergify[bot] merged 1 commit into
mainfrom
lean178/1628-fake-gh-auth-isolation
Nov 26, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
lean178/1628-fake-gh-auth-isolation

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Isolate fake GitHub tests from ambient credentials

  • Context: Closes Keep ambient GitHub credentials out of fake-gh fixtures #1628. A synthetic caller token changed an expected no-token path and appeared in the fake CLI capture.
  • Problem: Existing test setup isolated the app helper but inherited the caller's GitHub token variables.
  • Goal: Clear ambient token variables while preserving deliberate per-test synthetic credentials.

Acceptance

  • GitHub CLI lookup cases pass with synthetic GH_TOKEN and GITHUB_TOKEN supplied by the pytest launcher.
  • The module-scoped CLI contract setup uses the same credential isolation as function-scoped tests.
  • Explicit synthetic credentials still exercise user and app authentication branches.

Base

abacea4

Validation

Recorded for 64c42fd50642

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

loopzero primary review by codex on 64c42fd50642b247b1e45d9f0e23c2f96fdcbad7, 70.2s: approve (0 critical, 0 important, 0 suggestion)

Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: bbffcf937527df86a9bc6d509e0fed4b7ea9d925440db53314ab570a03fd27eb

@eowca
eowca marked this pull request as ready for review November 26, 2026 07:48
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as cc290a2 at 07:55 UTC

5 min in the queue, 5 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 07:49 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1671
  • ✅ Merged 07:55 · cc290a2 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit cc290a2 into main Nov 26, 2026
18 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1628-fake-gh-auth-isolation branch November 26, 2026 07:56
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.

Keep ambient GitHub credentials out of fake-gh fixtures

1 participant