Repository navigation
e2e: keep a slow posit ai sign-in from failing the whole shard - #18780
Merged
Merged
Conversation
A slow redirect after submitting the password on login.posit.cloud was classified as a credential failure (the step was marked fatal), which failed the auth setup project and left every dependent test as "did not run". Click with noWaitAfter so the 30s URL wait owns that budget instead of the runner's 10s actionTimeout, and only treat the step as fatal when the page actually shows a rejection message; a stalled redirect now falls through to the transient path and the @ai tests skip. Also give the readline-notification test the same settle window the rest of the suite gives an assistant turn (the agent keeps working after readline() returns), size its timeout for two turns, and spell out in the prompt that the code must be run with the executeCode tool rather than written to a file.
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:27 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:27 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:28 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:28 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Failure
RStudio E2E - all platforms1 test(s) failed
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 |
gtritchie
added a commit
that referenced
this pull request
Sep 12, 2026
* Match chat messages by role testid, not data-message-id (#18781) PA 1.4.0 (#2395) added a per-turn footer that carries data-message-id and renders after the message row, so messageItem.last() resolved to a cost and timing row reading "8:54 PM" instead of the reply. Every chat test that asserts on the last message failed on all three platforms, and the dead-turn detector read those footers as non-substantive, reporting them as the provider dropping turns mid-stream. Match the ChatMessage row wrapper and the MessageRenderer content div instead, so the locator tracks what a message is rather than what shares its id. The matched set is unchanged against the currently released assistant, so the suite runs against both it and the pre-release builds the gate exercises. Route the two inline [data-message-id] locators in conversation-history through the page object so there is one definition to keep correct. (cherry picked from commit 9bae5ac) * Tolerate U+200E in the skill-selection e2e assertion (#18782) Posit Assistant 1.4.0 began prefixing every tool-call caption with U+200E (LEFT-TO-RIGHT MARK) so that an rtl-truncated file path keeps its leading slash on the left, in posit-dev/assistant d6d3901e7. JavaScript's \s character class spans \u2000-\u200a and so does not match U+200E. The assertion therefore failed against a rendered string that is visually identical to what it expected, deterministically on Windows, Linux and macOS in the 1.4.1 release gate. Match the mark explicitly. The class also accepts the bare whitespace that 1.3.1 and earlier emit, so the test passes against both released versions. (cherry picked from commit 904450a) * e2e: keep a slow posit ai sign-in from failing the whole shard (#18780) A slow redirect after submitting the password on login.posit.cloud was classified as a credential failure (the step was marked fatal), which failed the auth setup project and left every dependent test as "did not run". Click with noWaitAfter so the 30s URL wait owns that budget instead of the runner's 10s actionTimeout, and only treat the step as fatal when the page actually shows a rejection message; a stalled redirect now falls through to the transient path and the @ai tests skip. Also give the readline-notification test the same settle window the rest of the suite gives an assistant turn (the agent keeps working after readline() returns), size its timeout for two turns, and spell out in the prompt that the code must be run with the executeCode tool rather than written to a file. (cherry picked from commit 2309310) --------- Co-authored-by: Kevin Ushey <[email protected]>
This branch had an error being deployed
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.
Intent
Two hardening changes prompted by the e2e failures on #18765, none of which were caused by that PR.
Approach
Auth setup (
tests/auth.setup.ts). Thesubmit passwordstep was marked fatal, so any error there became aLoginAutomationErrorand failed the setup project, which left every dependent test in the shard as "did not run" (333 tests on the Linux server shard). The actual failure was a slow redirect after the click, not a rejected password:click()waits for the navigation it triggers under the runner'sactionTimeout, which is 10s here (the runner applies the config'sactionTimeoutto contexts launched during a test, contrary to the comment that assumed a 30s library default).noWaitAfterso the existing 30swaitForURLowns the redirect budget.alertrole or narrow text such as "incorrect" / "invalid"). A stalled redirect now falls through to the transient path, and the@aitests skip with that reason in the status file rather than taking the shard down.step()keeps aLoginAutomationErrora step throws itself, so the fail-loud verdict for a real credential problem survives.Readline test (
readline-notification.test.ts). Its post-readline idle wait was the only 30s turn budget in the suite; every other wait settles for at least 60s. The assistant routinely keeps working afterreadline()returns (reads the console back, comments on the result), which is what failed on both macOS and Windows.Testing
npm run typecheckine2e/rstudiopasses.@aisuite and the auth setup run there).Checklist