Repository navigation
feat(worker): Reserve private checkpoint directories - #438
Conversation
|
@codex review — pass 1 of 3 for exact head |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b9cb88150a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const options = { skip: !linux, timeout: 10_000 }; | ||
| const base = process.env.CHECKPOINT_TEST_ROOT ?? homedir(); |
There was a problem hiding this comment.
Gate reservation integration tests on filesystem support
On Linux hosts whose home directory is on overlayfs, Btrfs, or another unsupported filesystem, these tests run unconditionally even though successful reservation requires ext4/XFS. With the default fixture root on overlayfs in this environment, four focused tests failed at filesystem admission before exercising their intended cleanup or contention assertions. Since npm test includes this file, this breaks the standard test suite in such environments. Probe the fixture filesystem and skip the success-dependent integration tests when unsupported, or require an explicitly configured supported fixture root; keep the unsupported-filesystem rejection test separate.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 66cb969. Auto-detected unsupported fixture roots now skip only tests that need a successful reservation. Explicit fixture roots remain strict. WSL verified ext4 success and tmpfs rejection, including the default-skip behavior. Production filesystem admission is unchanged.
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
What changes
Adds an internal, Linux-only reservation for an existing checkpoint directory. There is no runtime wiring, staging, reading, or enablement. This branches from
mainindependently of #437.0700leaf. Checks ext4/XFS using descriptor-targetedstatfscorroborated by the descriptor's mount ID.flockon the directory inode. Under that lock: revalidate → await isolation verification and grant pins → revalidate → run the async operation → release pins → close. There is no lock file to clean up.The reservation is not an isolation policy. A future caller must perform complete admission against all grants, keep them pinned until release, and unwind partial pins if admission fails.
Verification
tsc --noEmit, andgit diff --check.