[GRDM-XXXXX] DESCRIPTIONインストールをremotesベースに変更 (upstreamのcherry-pick)#28
Closed
yacchin1205 wants to merge 6 commits into
Closed
[GRDM-XXXXX] DESCRIPTIONインストールをremotesベースに変更 (upstreamのcherry-pick)#28yacchin1205 wants to merge 6 commits into
yacchin1205 wants to merge 6 commits into
Conversation
devtools::install_local has been deprecated
can't seem to _prevent_ writing cache
it leaves files in /tmp/ and ~/.cache/R/pkgcache/
pak doesn't work if caches are cleaned
Collaborator
Author
|
#27 に統合しました(CIの健全化として一本化) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIPTION型リポジトリのビルド失敗を修正するPRです。
DESCRIPTIONファイルを持つリポジトリのインストールは
devtools::install_local(getwd())で行われていますが、devtoolsは依存パッケージが多く、デフォルトのR (4.2.1) と最新のCRANスナップショットの組み合わせではPositのバイナリ提供が終了しているためソースビルドに落ち、依存のcurlパッケージ等のビルド失敗によりdevtools自体がインストールされず、ビルドが失敗するようになっています(CIのtests/r/r-rspm-description-fileが失敗。masterでも同様です)。upstream (jupyterhub/repo2docker) では、
devtools::install_localの廃止(deprecated)対応としてこの経路を依存ゼロのremotesベースに変更済みのため、該当コミットをcherry-pickします。Add --vanilla to R callReplace --vanilla with --no-init-fileR: install with pakclear cache after pak installmanually cleanup after pakremotes doesn't leave a mess(pakをやめてremotesに変更した最終形)途中でpakを経由しているのはupstreamの試行の経緯をそのまま保持しているためで、最終状態は「基本インストールに
remotesを追加し、DESCRIPTIONのインストールをremotes::install_local()で行う」となります。remotesは依存パッケージを持たない純Rパッケージのため、バイナリ提供状況の影響を受けません。upstreamのCIでは同一のテストfixtureがこの構成でpassしています。conflictの解決は1箇所のみです(
673e1bdaのRコマンドラインの文脈差)。動作確認:
tests/unit/test_r.py9件のパス、およびtests/r/r-rspm-description-fileに対する生成Dockerfileが upstream と同一のインストールコマンドになることを確認済みです。CIではr-rspm-description-fileの回復が期待値です(r3.6/r4.0 fixtureの失敗は別問題「CS-rstudio-grdmインストール時のGitHub APIレートリミット」によるflakyなもので、本PRのスコープ外です)。🤖 Generated with Claude Code