Repository navigation
Let rstudio-tests.bat run more than one scope - #18384
Merged
Merged
Conversation
--scope accepted exactly one scope, so running two of the four suites meant two invocations. It now takes several: cmd.exe splits arguments on commas, so '--scope core,rsession' arrives as separate arguments and every argument up to the next option is collected as a scope. The flag may also be repeated, and names are validated and de-duplicated before any suite runs. Scopes run in the fixed core, rserver, rsession, r order regardless of the order requested.
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. |
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.
--scopein the Windows test runner accepted exactly one scope, so running two ofthe four suites meant two invocations. It now takes several.
cmd.exetreats a comma as an argument separator, so--scope core,rsessionarrivesas two separate arguments.
--scopetherefore collects every argument up to the nextoption, which makes three forms equivalent:
Scope names are validated, case-normalized, and de-duplicated into a delimited list
before any suite runs, so a typo anywhere in the list fails up front rather than after
the first suite finishes. Scopes run in the fixed
core,rserver,rsession,rorder regardless of the order requested, which keeps the slow
rscope last.The
helpand/?arguments are not-prefixed, so scope collection stops at themas well;
rstudio-tests.bat --scope core helpprints usage and exits 0.The Unix
rstudio-testsscript still takes a single scope. Existing single-scopecallers, including
--scope coreinjenkins/Jenkinsfile.windows, are unaffected.Testing
Argument handling was exercised against a copy of the script whose scope subroutines
were replaced with stubs that echo instead of running the suites: single scope, all
three multi-scope forms, mixed case, duplicates,
--filteron either side of--scope,--filteralone still implyingr, each help form both alone and trailinga
--scope, and the error paths (unknown scope alone and inside a list,--scopewith no value, and whitespace-only).
rstudio-tests.bat --scope core,rserverwas then run against a real build: thecoreandshared_coresuites ran,rserverreported that it is not built on thisplatform, and the exit code still reflected the one failing test
(
Win32ConPtyTest.CtrlCByteTerminatesBusyChild, a pre-existing failure under a nestedpseudo-console).