Repository navigation
Fix rstudio-server test-config swallowing its verdict and exit code - #18083
Conversation
The testConfig() helper in the rstudio-server admin script wrapped `rserver --test-config` in backtick command substitution. That was harmless while --test-config reported only to stderr, but #18020 made --test-config a deprecated alias for --check-config, which writes its [PASS]/[FAIL] verdict to stdout. The backticks captured that stdout and then tried to execute the verdict text as a shell command, so `rstudio-server test-config` printed `[FAIL]: command not found`, hid the real verdict, and exited 127 instead of propagating the validator's exit code. Run the binary directly, matching the checkConfig() helper added in #18020. Applied to both the Linux (rstudio-server.in) and macOS (rstudio-server.mac.in) templates.
🍎 macOS Desktop E2E · ARM64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · macos-26 ARM64 · commit |
🐧 Linux Server E2E · Ubuntu 24✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · ubuntu-24.04 · commit |
🪟 Windows Desktop E2E · Server 2025 x64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · Windows Server 2025 x64 · commit |
|
@kevinushey I noticed this one when testing with the E2E tests for Pro. Small fix to the earlier PR. |
Follow-up to #18020.
rstudio-server test-configis broken onmainsince #18020. ThetestConfig()helper in the rstudio-server admin script wrapsrserver --test-configin backtick command substitution. That was harmless while--test-configreported only to stderr, but #18020 turned--test-configinto a deprecated alias for--check-config, which writes its[PASS]/[FAIL]verdict to stdout. The backticks capture that stdout and then attempt to execute the verdict text as a shell command, sorstudio-server test-configprints[FAIL]: command not found, hides the real verdict, and exits 127 instead of propagating the validator's exit code.The fix runs the binary directly, matching the
checkConfig()helper added in #18020, in both the Linux (rstudio-server.in) and macOS (rstudio-server.mac.in) templates.Verification
Reproduced the failure mode with a stand-in that mimics the new stdout verdict plus a non-zero exit:
These are configured shell templates (CMake substitutes
CMAKE_INSTALL_PREFIXonly), so no build is required to exercise the change.No
NEWS.mdentry: #18020 is unreleased (2026.07 / Pacific Dogwood), so this corrects an unreleased change.