Repository navigation
remove BRAT testing infrastructure - #17714
Merged
Merged
Conversation
The BRAT tests have been ported to Playwright (#17713), so the BRAT framework and its CLI plumbing are no longer needed. The `--automation-agent` flag is preserved -- Playwright uses it to expose `window.rstudioCallbacks`.
Contributor
✅ 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. |
kevinushey
added a commit
that referenced
this pull request
May 21, 2026
* finish brat removal - drop the Run Automated Tests stage from the PR Jenkinsfile; the npm script it relied on was removed in #17714 - delete src/node/desktop/run-automation (orphan after the same) - delete the BRAT-to-Playwright migration progress doc; migration is complete and the remaining test.fixme placeholders are tracked in the test files themselves - clean up stale BRAT references in ported Playwright test comments * drop more brat leftovers - gitignore: rstudio-automation-results.xml is no longer produced - debugger_extras fixme: rstudio.automation package is gone, generalize the sketch
1 task
kevinushey
added a commit
that referenced
this pull request
May 21, 2026
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.
Summary
The BRAT (Built-in RStudio Automated Tests) framework has been removed
now that all tests have been ported to Playwright (see #17713). This
deletes the BRAT R framework, the session-side automation module, the
CLI flags that drove BRAT (
--run-automation,--automation-filter,--automation-markers,--automation-report-file), and the GWT/Electronplumbing that supported them.
The
--automation-agentflag is kept -- Playwright relies on it toexpose
window.rstudioCallbacks(the command/pref bridge ine2e/rstudio/utils/commands.ts).Removed
src/cpp/tests/automation/(BRAT testthat directory + docs)src/cpp/session/modules/automation/(entire BRAT R framework)src/cpp/session/include/session/SessionAutomationLog.hpp(and ALOG/ALOGF macros)src/cpp/tools/generate-cdp-client.Randscripts/brat--run-automation,--automation-filter,--automation-markers,--automation-report-fileCLI options (regenerated.gen.hppheaders)kRunAutomationclient event,RunAutomationEvent.java,isAutomationHost,ShellWidgetdesktop-host stdout/stderr branch, related GWT plumbingrunAutomationcallback onRCallbacksbrowser-launch-on-startup in
ServerMain.cpp/ServerSessionManager.cppnpm run automationscript andrun-automationflag handling insession-launcher.ts.claude/CLAUDE.mdand the Playwright skill docsVerified
cmake --build . --target rsession rserver-- clean (linked both binaries)ant javacandant draft-- BUILD SUCCESSFULnpm run typecheckandnpm run lint-- cleanTest plan
ant test--automation-agentplumbing is unchanged)rserver-devstarts and accepts logins (no automationhost shutdown path interfering)