Skip to content

fix: install sess only the bundled source snapshot - #1840

Merged
eitsupi merged 3 commits into
mainfrom
fix/bundled-only-sess-install
Oct 7, 2026
Merged

eitsupi merged 3 commits into
mainfrom
fix/bundled-only-sess-install

Conversation

@eitsupi

@eitsupi eitsupi commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

vscode-R's installer could replace a failed bundled sess installation with a separately published R-universe package, whose source snapshot may differ from the extension's bundle.
Following #1819 and #1830, installation now uses the bundled pure-R package exclusively.

Missing Imports still use install.packages() with the existing repository and library selection.
Dependency errors propagate, a failed bundled R CMD INSTALL stops directly, and the shared fresh-R verifier checks the exact bundled source revision alongside the existing API/load checks for ordinary terminals and private Interactive runtimes.

Removes fallback-only repository discovery, binary compatibility logic, archive fixtures, and tests; updates current documentation and messages. Standalone R-universe installation instructions, badge, bootstrap.R, source stamping, and DESCRIPTION normalization identity tests remain intact.
Repository propagation, library placement, and runtime caching are unchanged.

@eitsupi
eitsupi requested a review from renkun-ken October 7, 2026 00:32
@eitsupi eitsupi changed the title fix(sess): install only the bundled source snapshot fix: install sess only the bundled source snapshot Oct 7, 2026

@renkun-ken renkun-ken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Found one reproducible regression in ordinary-terminal installation; details and the fix are inline.

Validated locally on macOS with R 4.6.1: all 6 source/bootstrap/VSIX identity tests, R/tests/sess_source.R, the bundled installer regression script, and real private-runtime installation/cache reuse passed under the normal default-package configuration. With R_DEFAULT_PACKAGES=base and library(utils) in the project's .Rprofile, the real ordinary R installation task installs sess successfully but fails in the new verifier; qualifying utils::packageDescription makes the same task pass.

CI: Ubuntu tests, build, and lint passed. The Windows job's bundled installer test passed; its failure is a 15-second timeout in Session Communication / communication: plot() with various devices and View() events (https://github.com/REditorSupport/vscode-R/actions/runs/37552130867/job/112569850311). macOS CI is still running at the time of this review.

Comment thread R/sess-package-install.R Outdated
@eitsupi
eitsupi requested a review from renkun-ken October 7, 2026 00:43
@eitsupi
eitsupi marked this pull request as ready for review October 7, 2026 00:43

@renkun-ken renkun-ken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed through c5c4a92. The earlier P2 finding is resolved: all metadata lookups now use utils::packageDescription(), and the new regression coverage verifies both ordinary and Interactive paths with R_DEFAULT_PACKAGES=base. The latest commit also fixes the line-length failure while preserving the generated verifier expression. I found no remaining actionable issues.

Validation on macOS with R 4.6.1: the updated bundled installer regression script passes, including both minimal-default-package checks, exact-revision rejection, dependency-error propagation, and bundled-install failure handling. The real ordinary R installation task now passes with R_DEFAULT_PACKAGES=base and library(utils) in the project's .Rprofile. The source/bootstrap/VSIX identity tests (6/6), R identity/installer tests, and full R-directory lint also passed.

At the current head, GitHub build and lint checks have passed; macOS, Ubuntu, and Windows test jobs are still running. Approval reflects the code review and completed validation, with those platform results pending.

@eitsupi
eitsupi merged commit 1515b54 into main Oct 7, 2026
5 checks passed
@eitsupi
eitsupi deleted the fix/bundled-only-sess-install branch October 7, 2026 00:56
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