Skip to content

Fix Voilà manifest directory resolution - #890

Merged
tdstein merged 2 commits into
mainfrom
symphony/posit-dev_rsconnect-python_886-e1154b51db982ee0
Oct 28, 2026
Merged

tdstein merged 2 commits into
mainfrom
symphony/posit-dev_rsconnect-python_886-e1154b51db982ee0

Conversation

@tdstein

@tdstein tdstein commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Resolve directory paths as the Voilà project directory when writing a manifest, including environment inspection and overwrite checks.
  • Remove the app_file parameter from Environment.create_python_environment. It was only used for its dirname, so callers had to keep it consistent with directory; a mismatch is what caused write-manifest voila resolves a directory path without a trailing slash to the working directory #886. Environment inspection now always uses the project directory.
  • Cover directory paths with and without trailing slashes, notebook paths, requirements selection, and overwrite behavior.

Validation

  • pytest tests: 1743 passed, 14 skipped, 8 failed. The 8 failures are in tests/test_quickstart.py::test_quickstart_mode_file_set and also fail without this change.
  • ruff format --check and ruff check pass.

Closes #886

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-28 18:50 UTC

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11017 9697 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/environment.py 91% 🟢
rsconnect/main.py 86% 🟢
TOTAL 88% 🟢

updated for commit: eb03550 by action🐍

@tdstein
tdstein requested a review from amol- October 27, 2026 21:27
@tdstein
tdstein enabled auto-merge (squash) October 27, 2026 21:27
create_python_environment only used app_file for its dirname, so callers had
to keep it consistent with directory. Drop the parameter so the inspected
directory is stated once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tdstein
tdstein merged commit 3706409 into main Oct 28, 2026
27 checks passed
@tdstein
tdstein deleted the symphony/posit-dev_rsconnect-python_886-e1154b51db982ee0 branch October 28, 2026 18:50
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.

write-manifest voila resolves a directory path without a trailing slash to the working directory

2 participants