Repository navigation
Provision AI credentials for Server-mode Playwright tests - #18458
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Review
AssessmentAll four findings were verified directly against the code before being accepted.
One additional finding surfaced during the fix for item 2: the Copilot push loop read each local file inside the same loop that uploads it, with an HTTP round trip in between. Since the source store is live (the local agent can rewrite it on a token refresh), that window allowed a torn read across the main database and its WAL. Fixed by reading every file up front, before any upload begins. Actions Taken
All five verified against a live external server: both credential sources (live sign-in and local-store copy), both providers, provisioning and teardown green in each run. |
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
|
Review of the merge commit ( ReviewOne finding, reported at Medium severity.
Suggested fix: make the shared predicate include external provisioning, or expose a shared runnable/skip-reason function and use it from both. AssessmentAgreed, and the reasoning holds up under checking. The divergence was real and introduced by the conflict resolution. #18452 added Severity in practice is lower than Medium. The condition cannot be reached today. Taken anyway, because the trap is cheap to close and easy to spring. The chat suite has 25 On the choice of fix: folding external provisioning into the shared predicate is faithful to #18452's intent rather than a redefinition of it. That function's own docstring describes the contract as whether "the suite is runnable," not merely whether bytes are present in the sandbox, and reaching the remote home is part of being runnable. Actions TakenRestructured
Sharing the reason rather than a boolean matters: had Verification:
The external-server run confirms no regression in the real flow but cannot exercise the divergence itself, since the only caller is desktop-only and never loads in the server project. The predicate check is what covers the behavior change. A permanent unit test for |
Adds AI credential delivery for Server-mode Playwright tests, covering both deployment types the suite supports. For the spawned in-tree server, a generated
--rsession-pathwrapper now carriesHOME,R_LIBS_USER, and an unsetXDG_CONFIG_HOMEinto each rsession. For an external server, whose environment the harness cannot set directly, a new provisioning step pushes credentials through a live session instead./uploadendpoint rather than the R console, so they never enter the account's console history.Addresses #18348.
Two related but out-of-scope issues surfaced during verification and are filed separately: #18446 (pre-existing Server-mode sandbox data-home conflict) and #18457 (Posit AI credential gate doesn't account for token refresh).