Skip to content

fix(vfs): run bashkit suites nightly on Windows and fix what they found - #2938

Merged
chaliy merged 8 commits into
mainfrom
claude/project-thread-sx9opx
Nov 18, 2026
Merged

chaliy merged 8 commits into
mainfrom
claude/project-thread-sx9opx

Conversation

@chaliy

@chaliy chaliy commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Михайло · project thread

What changed

  • New Windows nightly workflow (daily 05:00 UTC, manual dispatch, and PRs that edit it) runs bashkit's lib, integration and proptest_security suites on windows-latest. Not a Check gate.
  • New proptest: random scripts of ~20 path commands (mkdir -p, cd, find, cp -r, mv, ln -s, tar, redirects, ...) over a/b/c/./.. paths run through testing::CheckedFs, asserting the backend never sees \.
  • Real Windows bugs the first run found, fixed:
    • Path::is_absolute() is false for /etc/x on Windows. The output_file check and a dozen builtins (cat, grep, rg, shuf, sqlite, test, path, textrev, git, python, ts, interpreter) now ask has_root(), and clippy bans is_absolute in the crate.
    • Writing to a closed fd printed the host's EBADF text (wording differs on Windows); now always Bad file descriptor.
    • custom_fs_tests' MinimalFs and a grep security test built VFS paths with PathBuf::push.
  • .gitattributes forces LF checkout; CRLF broke skill, workflow and snapshot fixtures.
  • Host-tool oracle tests (they shell out to bash/GNU tools; Windows bash is the WSL launcher) and the Unix child-process harness in threat_model_tests are ignored off unix. Linux CI still runs all of them.
  • Spec runner gains ### skip_windows: reason; ls with a \ file name is skipped there and recorded as L-FS-005.

Why

Follow-up to #2936 (#2933). Host-separator bugs can't show up on Linux CI or Linux fuzzing, since / already is the Linux separator. PR CI keeps only targeted Windows filters for speed; this runs the rest of the code on Windows once a day.

Before / After

Before: first Windows trial run, integration suite 89 failed.
After: Windows full test suite green on a0ccf4c (lib 3196 pass; integration and proptest_security pass). Linux: lib 3206 pass, integration 1924 pass.

Risk

  • Low. Production changes are is_absolute → has_root (identical on unix) and a fixed EBADF message string.
  • Ignored-off-unix tests lose Windows coverage they never had (they failed there).

Checklist

  • Tests added or updated
  • Backward compatibility considered

Generated by Claude Code

Windows-only path bugs (#2425, #2933) are invisible to Linux CI and fuzzing.
New windows-nightly workflow runs the bashkit lib, integration and proptest
security suites on windows-latest; it also trial-runs on PRs that edit it.

A proptest feeds random path-heavy scripts through testing::CheckedFs and
fails on any host-separator path; named windows_containment_* so the PR
Windows job runs it too.
@chaliy chaliy self-assigned this Nov 18, 2026
- has_root() instead of is_absolute() for VFS paths; clippy bans is_absolute
- EBADF on closed fd reports 'Bad file descriptor' on every host
- custom_fs/grep tests build VFS paths with vfs_join
- .gitattributes forces LF checkout (CRLF broke skill/workflow fixtures)
- spec runner: skip_windows directive; ls backslash case is L-FS-005
- host-tool oracle and Unix process-harness tests ignored off unix
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 18, 2026 •

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 67f12e0 Commit Preview URL

Branch Preview URL
Nov 18 2026, 08:16 PM

@chaliy chaliy changed the title ci: nightly Windows run of the bashkit test suites fix(vfs): run bashkit suites nightly on Windows and fix what they found Nov 18, 2026
@chaliy
chaliy marked this pull request as ready for review November 18, 2026 19:33
@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chaliy
chaliy merged commit 8fbcb4a into main Nov 18, 2026
69 checks passed
@chaliy
chaliy deleted the claude/project-thread-sx9opx branch November 18, 2026 20:52
@chaliy chaliy mentioned this pull request Nov 19, 2026
2 tasks done
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