Skip to content

Fix rstudio-server test-config swallowing its verdict and exit code - #18083

Merged
kevinushey merged 1 commit into
mainfrom
bugfix/engsct-134-test-config-verdict
Jun 26, 2026
Merged

kevinushey merged 1 commit into
mainfrom
bugfix/engsct-134-test-config-verdict

Conversation

@ian-flores

Copy link
Copy Markdown
Contributor

Follow-up to #18020.

rstudio-server test-config is broken on main since #18020. The testConfig() helper in the rstudio-server admin script wraps rserver --test-config in backtick command substitution. That was harmless while --test-config reported only to stderr, but #18020 turned --test-config into 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, so rstudio-server test-config prints [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:

# with backticks (current main):
environment: line 1: [FAIL]: command not found
exit=127
# without backticks (this PR):
[FAIL] Config file ...: unrecognized option(s):
  - fake-config
exit=1

These are configured shell templates (CMake substitutes CMAKE_INSTALL_PREFIX only), so no build is required to exercise the change.

No NEWS.md entry: #18020 is unreleased (2026.07 / Pacific Dogwood), so this corrects an unreleased change.

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.
@ian-flores ian-flores added this to the 2026.07 (Pacific Dogwood) milestone Jun 26, 2026
@github-actions

Copy link
Copy Markdown

🍎 macOS Desktop E2E · ARM64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
412 0 8 0
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · macos-26 ARM64 · commit c6bd9aa5a14a3d1a311ec0a402e1ac095855ac73 · Run #16

@github-actions

Copy link
Copy Markdown

🐧 Linux Server E2E · Ubuntu 24

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
391 0 21 3
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · ubuntu-24.04 · commit c6bd9aa5a14a3d1a311ec0a402e1ac095855ac73 · Run #16

@github-actions

Copy link
Copy Markdown

🪟 Windows Desktop E2E · Server 2025 x64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
410 0 11 1
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · Windows Server 2025 x64 · commit c6bd9aa5a14a3d1a311ec0a402e1ac095855ac73 · Run #16

@ian-flores
ian-flores marked this pull request as ready for review June 26, 2026 21:56
@ian-flores

Copy link
Copy Markdown
Contributor Author

@kevinushey I noticed this one when testing with the E2E tests for Pro. Small fix to the earlier PR.

@ian-flores
ian-flores requested a review from kevinushey June 26, 2026 21:57

@kevinushey kevinushey left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kevinushey
kevinushey merged commit a7b41c3 into main Jun 26, 2026
19 checks passed
@kevinushey
kevinushey deleted the bugfix/engsct-134-test-config-verdict branch June 26, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants