Repository navigation
skip suggestion waits on a too-slow assistant; accept radio tip buttons - #19296
Merged
Merged
Conversation
Two flakes from the PR #19286 e2e run (40398345386): - code_suggestions 'ghost text accept' (Posit AI, Linux): every agent answer took 10s+ and the session cancelled the re-request at its 10s cutoff. The suggestion waits now skip as a service failure when a request was cancelled and every answer that did arrive was slow. - shiny-app-r (Windows): the assistant built the tip choices with radioButtons(), which the button-only locator could not match. Match a button or radio by accessible name instead.
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test-only fixes for two of the four flaky tests in the PR #19286 e2e run (report, run 40398345386). The other two (Citations: DataCite search on Linux, PubMed search on Windows) were the services hanging on the rsession's
download.file; #19290 covers that case.Ghost text accept (Posit AI, desktop-linux)
The Posit AI agent took 10s+ for every request in that window: both automatic next-edit requests came back empty after 10.3s and 10.6s, and the
assistantRequestCompletionsre-request issued bywaitForSuggestionwas answered{"cancelled": true}after 10.5s. That cancellation comes from the session, not the model:onBackgroundProcessinginSessionAssistant.cppgives up on any agent request pending ~10s. With a backend that slow, no suggestion can arrive within the wait.utils/assistant-requests.tsadds anAssistantRequestWatcherthat pairs each/rpc/assistant_*async handle with itsasync_completionevent and records whether the session cancelled it and how long it took.code_suggestions.test.tsruns one per test. When a suggestion wait fails,slowAssistantReason()skips the test viaskipForAiServiceFailureif a request was cancelled and every answer that did arrive was slow (>= 5s). The second condition keeps a product regression visible: a session that stops relaying requests cancels all of them with no answers, and a fast answer next to a cancellation means the agent was keeping up. Otherwise the existingfailUnlessAiServiceGonere-probe decides, as before.Shiny tip calculator (desktop-windows)
The app rendered correctly, but the assistant built the four percentages with
radioButtons("pct", ..., choices = c("10%" = 0.10, ...)). Those inputs carryvalue="0.1", sobutton:has-text("10%"), input[value="10%"]matched nothing. The check now matches abuttonorradioby accessible name, in both the R test and the Python draft.Testing
tests/harness/assistant-requests.test.ts(6 tests): the decision rule, plus the watcher against routed fake RPC andget_eventstraffic.code_suggestions.test.tsghost text accept + NES manual trigger and accept pass for GitHub Copilot against the installed daily (Posit AI skips locally: no credentials). A temporary log confirmed the watcher records real traffic there (three requests, answered in 86-371ms).radio "10%"etc., which the new locator matches.