Skip to content

Add integration test for parentChain dep chain messaging#148

Open
eliotmcintire wants to merge 3 commits intodevelopmentfrom
parentChain-integration-test
Open

Add integration test for parentChain dep chain messaging#148
eliotmcintire wants to merge 3 commits intodevelopmentfrom
parentChain-integration-test

Conversation

@eliotmcintire
Copy link
Copy Markdown
Contributor

Summary

  • Builds a minimal dummypkgwithpryr_1.0.tar.gz with Imports: pryr in its DESCRIPTION
  • Places the tarball in the Require file cache so getArchiveDESCRIPTION can read it without network access
  • Calls pkgDep("dummypkgwithpryr") and asserts that the "not on CRAN" message for pryr includes (required by: dummypkgwithpryr) — exercising the full parentChain threading through getPkgDeps → getDeps → getDepsNonGH → pkgDepCRAN

Test plan

  • GHA passes on all platforms
  • pryr (archived on CRAN) triggers the expected chained message

🤖 Generated with Claude Code

eliotmcintire and others added 3 commits April 2, 2026 09:43
Creates a dummy package tarball (dummypkgwithpryr) with Imports: pryr,
places it in the Require file cache, then calls pkgDep() to verify that
the "not on CRAN" message for pryr includes "(required by: dummypkgwithpryr)".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… repos

- Integration test: builds a minimal file:// CRAN repo containing
  dummypkgwithpryr (Imports: pryr), calls pkgDep(), and asserts that
  the 'not on CRAN' message for pryr includes '(required by: dummypkgwithpryr)'

- Bug fix in available.packagesCached: was prepending 'https://' to any
  repo not starting with 'http', which corrupted file:// URLs. Fixed to
  only prepend to bare domain names (no protocol).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Avoid file:// CRAN repo (which triggers offline mode on R 4.2 Windows).
Instead mock joinToAvailablePackages to inject VersionOnRepos + Imports
for dummypkgwithpryr, letting the full recursive pkgDep code path run
without any file or network access for the dummy package itself.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant