Skip to content

Add tests for the rig R-install job lifecycle #19109

Open

Description

@kevinushey

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.

Raised in review of #18935.

Activity

  1. kevinushey commented on Oct 14, 2026

    @kevinushey
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions