Skip to content

fix(connect): declare rmarkdown closure and raise deploy timeout#218

Merged
ian-flores merged 1 commit intomainfrom
fix-rmd-manifest-transitive-deps
Apr 22, 2026
Merged

fix(connect): declare rmarkdown closure and raise deploy timeout#218
ian-flores merged 1 commit intomainfrom
fix-rmd-manifest-transitive-deps

Conversation

@ian-flores
Copy link
Copy Markdown
Collaborator

Summary

  • Replace the 2-package stub in _get_bundle for vip-rmarkdown-test with a full 31-package transitive closure loaded from a new src/vip_tests/connect/rmarkdown_manifest.json (mirrors the vip-shiny-test pattern). Empty packages caused r-cannot-access-repo on deployments where PPM doesn't serve transitive deps anonymously.
  • Raise the default connect.deploy_timeout from 600s to 1200s. R-heavy content with many source-built packages (rmarkdown, shiny) legitimately needs >10 min on deployments where PPM falls back to CRAN source builds.
  • Update vip.toml.example comment, config default, and two selftest assertions to reflect the new default.

Test plan

  • uv run ruff check src/ selftests/ — clean
  • uv run ruff format --check src/ selftests/ — 102 files already formatted
  • uv run pytest selftests/ -q — 318 passed
  • vip verify --connect-url https://pub.ganso.lab.staging.posit.team --filter deploy_rmarkdown -- -n 0 against ganso01-staging — test_deploy_rmarkdown PASSED in 603s. Packrat restores all 31 packages (PPM 401 → CRAN 200 fallback), rmd-static renders, HTML contains "VIP RMarkdown Test" marker.

Fixes #214

Copilot AI review requested due to automatic review settings April 22, 2026 19:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Connect deployment test fixtures and configuration defaults to make R Markdown deploys more reliable on Connect instances where Posit Package Manager does not allow anonymous access to transitive CRAN dependencies, and to accommodate longer restore/build times.

Changes:

  • Replace the vip-rmarkdown-test manifest stub with a checked-in full transitive R package closure loaded from rmarkdown_manifest.json.
  • Increase the default connect.deploy_timeout from 600s to 1200s in config parsing, example config, and selftests.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vip.toml.example Updates documented default and example deploy_timeout value to 1200s.
src/vip_tests/connect/test_content_deploy.py Loads a pre-built R Markdown manifest JSON and injects the server’s R platform version at runtime.
src/vip_tests/connect/rmarkdown_manifest.json Adds a full 31-package R dependency closure for the R Markdown deployment test manifest.
src/vip/config.py Raises the default Connect deploy_timeout and the fallback used when config omits it.
selftests/test_config.py Updates assertions to match the new 1200s default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ian-flores ian-flores marked this pull request as ready for review April 22, 2026 19:40
@ian-flores ian-flores merged commit c006838 into main Apr 22, 2026
24 checks passed
@ian-flores ian-flores deleted the fix-rmd-manifest-transitive-deps branch April 22, 2026 19:42
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-04-22 19:43 UTC

@github-actions
Copy link
Copy Markdown

📸 Preview Screenshot Summary

Triggered by: Website Preview workflow run #409 (conclusion: success)
PR: #218 (fix-rmd-manifest-transitive-deps)


⚠️ Previews Unavailable

By the time this screenshot agent ran, PR #218 had been closed and both preview deployments had been cleaned up. Both preview URLs returned HTTP 404.

Preview URL Status
🌐 Website https://posit-dev.github.io/vip/pr-preview-site/pr-218/ ❌ 404
📊 Report https://posit-dev.github.io/vip/pr-preview/pr-218/ ❌ 404

Screenshots Captured: 2

Both screenshots show the GitHub Pages 404 page (previews were removed before capture).

Website preview (https://posit-dev.github.io/vip/pr-preview-site/pr-218/)

website-home

Report preview (https://posit-dev.github.io/vip/pr-preview/pr-218/)

report-home


Note: The Website Preview deployed successfully, but the PR was closed shortly after, triggering cleanup of both preview deployments before screenshots could be captured. For future runs, consider merging/closing PRs only after reviewing the previews.

Generated by Capture preview screenshots for PRs · ● 5.3M ·

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.

fix(connect): test_deploy_rmarkdown manifest is missing transitive R package dependencies

2 participants