Skip to content

test(python): cover shared vfs open paths - #1806

Merged
chaliy merged 1 commit into
mainfrom
2026-05-28-python-open-vfs-roundtrip
May 28, 2026
Merged

chaliy merged 1 commit into
mainfrom
2026-05-28-python-open-vfs-roundtrip

Conversation

@chaliy

@chaliy chaliy commented May 28, 2026

Copy link
Copy Markdown
Contributor

What

Add an integration regression test that mutates the same VFS path through:

  • Bash redirection
  • pathlib.Path.open()
  • Python builtin open()
  • Bash append/readback

Why

The previous Monty open() work had pairwise coverage, but not one same-path session test proving Bash, Path.open(), and builtin open() all share the exact same VFS file.

How

Added bash_path_open_and_open_share_same_vfs_path under the Python integration VFS bridging tests with exact final-content assertion.

Risk

  • Low
  • Test-only change.

Checklist

  • Tests added or updated
  • Backward compatibility considered

Verification

  • cargo test --features python -p bashkit --test integration bash_path_open_and_open_share_same_vfs_path -- --nocapture
  • cargo test --features python -p bashkit
  • just pre-pr

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit c141982 Commit Preview URL May 28 2026, 04:42 AM

@chaliy
chaliy merged commit ecf60f3 into main May 28, 2026
24 checks passed
@chaliy
chaliy deleted the 2026-05-28-python-open-vfs-roundtrip branch May 28, 2026 04:52
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