You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add tests for the rig R-install job lifecycle #19109
RInstallJob in src/cpp/session/modules/SessionRig.cpp (added in #18935) has gtests only for its archive digest check (verifyArchiveDigest). Not covered: stopping the job before or during a step, a step that fails synchronously, the "already in progress" rejection in rig_install_r_version, and the download/extract/rig add sequence itself.
Testing these needs a fake rig (and curl) on the PATH, an R session in the test, and a pumped process supervisor so the step callbacks fire; the existing R, desktop and e2e tests exercise only the switch path, not the install.
One more case for the same follow-up: an installation that completes between a page unload and the next client_init loses its r_install_completed event (the event queues are cleared on reconnect), and installInProgress() is already empty by then. The reconnecting page still rebuilds the right offer from state (switch to the now-installed R, or install again), but the automatic switch and the inline failure text are lost. Recording the job's outcome server-side and reconciling it on reconnect would close that window, and would be easiest to verify with the lifecycle tests proposed here.
Activity
kevinushey commentedon Oct 14, 2026
One more case for the same follow-up: an installation that completes between a page unload and the next
client_initloses itsr_install_completedevent (the event queues are cleared on reconnect), andinstallInProgress()is already empty by then. The reconnecting page still rebuilds the right offer from state (switch to the now-installed R, or install again), but the automatic switch and the inline failure text are lost. Recording the job's outcome server-side and reconciling it on reconnect would close that window, and would be easiest to verify with the lifecycle tests proposed here.