Skip to content

fix(storage): gate the lock-identity probe to unix so windows builds again - #725

Merged
ajianaz merged 1 commit into
developfrom
fix/windows-lock-identity
Nov 14, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/windows-lock-identity

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

What

Gate the #718 lock-identity probe (std::os::unix::fs::MetadataExt, dev/ino) behind #[cfg(unix)]; on non-unix it returns None.

Why

tole-core stopped compiling on x86_64-pc-windows-msvc (E0433 os::unix, E0599 dev/ino at storage.rs:1169), which failed the v0.11.0 release train's Windows build job (run 43574225374) while Linux×2 and macOS stayed green. Windows has no fork, so the transient duplicate-of-closed-descriptor retry (#552, #712) cannot occur there — None restores the pre-#718 behavior where a self-pid hold is a real hold. Unix behavior unchanged.

Testing

  • cargo check -p tole-core clean
  • cargo test -p tole-core --lib storage 4/4 passed
  • CI Windows job builds on this PR

…again

#718 keyed the in-process hold registry by (dev, ino) through
std::os::unix::fs::MetadataExt without a cfg gate; tole-core stopped
compiling on x86_64-pc-windows-msvc (E0433 os::unix, E0599 dev/ino),
which failed the v0.11.0 release train's windows job while every other
target stayed green. Windows has no fork, so the transient duplicate of
a closed descriptor (#552, #712) cannot occur there: the probe returns
None, a self-pid hold stays a real hold, and the retry never fires —
the pre-#718 behavior. Unix behavior is unchanged.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 0b7a47c into develop Nov 14, 2026
15 checks passed
ajianaz added a commit that referenced this pull request Nov 14, 2026
## What

Release sync for v0.11.0 as ONE squash commit on a main-based branch:
main + the develop delta (release prep #723/#724 and the storage fix
#725). The commit's tree is identical to develop's tree (verified: git
diff of the two trees is empty), so the tagged tree equals the fully
validated tree.

## Why

The first v0.11.0 run (tag on e833469) failed x86_64-pc-windows-msvc:
#718's std::os::unix::fs::MetadataExt use had no cfg gate, so tole-core
did not compile on Windows (run 43574225374). #725 gates the probe
(Windows returns None; no fork there, so the transient-duplicate retry
never applies) and is on develop with 15/15 checks green. A merge-commit
sync (#727, closed) trips the message-standard check on 17 pre-ban
Co-authored-by trailers still in develop's v0.9/v0.10 history; a direct
develop->main PR (#726, closed) conflicts after the #724 squash merge.
The one-commit squash on a main-based branch carries the same content
with none of those problems.

## Testing

- [x] PR #725 (the fix): 15/15 checks green on develop
- [x] Local cargo check + storage tests 4/4; cross-check vs
x86_64-pc-windows-msvc shows no tole-core errors
- [x] This branch's tree == develop tree (content parity proven)
- [ ] This PR's CI green, then re-tag v0.11.0 to the new main HEAD

Co-authored-by: ajianaz <[email protected]>
@ajianaz
ajianaz deleted the fix/windows-lock-identity branch November 14, 2026 09:01
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