Repository navigation
test: reproduce cross-host GitHub installation callbacks - #2
Conversation
Code reviewVerdict: Looks good — only minor / nit comments below. · 🔴 0 · 🟠 0 · 🟡 3 · ⚪ 1 · 0/4 resolved
🤖 Fix all 4 open findings with your agent📋 Out-of-diff findings (4)
Reviewed 12 files · 0 inline · view all 4 findings ↗ · AI-generated — verify findings before acting · AI guidance and feedback aictrl · AI code review for fast-moving teams · aictrl.dev |
Review response for PR #2Verified all four findings from this review. Fixed three in commit Issues addressed (pushed to this PR)
Review claims verified false (no change needed)
Not addressed hereNone deferred. Three FIX, one IGNORE. ValidationPassed 266 package tests, the OAuth/App-token/webhook smoke test, and the real Firefox cross-host regression on port 3005. Build, type check, lint, formatting, MJS syntax and whitespace checks passed. Lint retains 17 existing warnings with zero errors. GitHub CI and CodeQL passed on Verdict persistence: 4 matched, 4 written, 4 verified, 0 failed, 0 unrecorded. |
Follow-up to merged PR #1. No linked issue; issue tracking is disabled for this fork.
Problem
A single-host installation test cannot reproduce a setup callback that returns to a different host from the application's OAuth cookie. Manually copying a Cookie header across hosts also hides that failure.
Behavior
Add a browser regression and reusable HTTPS fixture that exercise the emulator's OAuth and App installation pages, explicit repository selection, and configured
setup_urlacross two loopback hosts on port 3005. The browser demonstrates rejection when the host-only cookie is absent, then successful completion after returning to the initiating host. The installation token can access only the selected repository.Scope
pnpm test:cross-host,pnpm demo:cross-host, documentation and CI browser prerequisites. Playwright is a development dependency.Rollout and risks
Targets
github-onlyafter the installation flow merged in #1. The diff is limited to this browser regression and its supporting fixture, documentation and CI setup. The fixture illustrates the callback boundary; it does not run the production aictrl application or establish a complete hosted-client signup result.Test plan
pnpm test:cross-host: real Firefox browser proof passed (cookie absent: HTTP 400; cookie restored: HTTP 200).actionlintandgit diff --checkpassed.