Skip to content

chore(deps): apply open Dependabot bumps - #152

Closed
mrnasil wants to merge 10 commits into
mainfrom
chore/close-dependabot-prs
Closed

mrnasil wants to merge 10 commits into
mainfrom
chore/close-dependabot-prs

Conversation

@mrnasil

@mrnasil mrnasil commented Oct 9, 2026

Copy link
Copy Markdown
Member

Summary

Test plan

  • cargo check -p whycodes-cli --locked

mrnasil added 10 commits October 9, 2026 08:03
Take rust-minor (tokio 1.53.2, thiserror 2.0.21, uuid 1.27.0, libc 0.2.190, tract-onnx 0.23.8) and @types/node 26.6.4 so PRs 149 and 150 can close.
The first retry reused a temp file the winner had already renamed, so Linux returned NotFound. Each attempt now writes a fresh temp, and a non-file destination still fails immediately.
Split the rename race into a helper whose lines the directory-dest and missing-parent tests hit, so whycodes-config stays at 100%.
Concurrent saves recreate the temp and retry NotFound, AlreadyExists, and Windows sharing violations. Real IO errors still return immediately, and tmp cleanup is logged.
Rename onto a missing file first, and only replace when the dest already exists. A lost race re-reads the file the other writer just created instead of returning File exists.
llvm-cov counts the unwrap_or_else body as its own line. The empty-parent fallback is now a match arm the relative-path test already hits.
A process-wide lock keeps write_atomic on the single path coverage already counts. Concurrent saves no longer share a temp file or return File exists.
… floor

Replace the lock closure and the lazy parent fallback with match arms the existing write_atomic tests already run.
The save lock stays a single unwrap_or_else line, and the temp file is always .config.toml.tmp. That removes the two load.rs lines the 100% config floor was missing.
The two missed load.rs lines were the temp-file cleanup after a failed replace. Fold that failure into the returned I/O error and hit it by planting a directory on the next temp path under the save lock.
@mrnasil mrnasil mentioned this pull request Oct 10, 2026
1 of 2 tasks
@mrnasil

mrnasil commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

Superseded by #154 (lockfile-only; the config race is already fixed on main by #151).

@mrnasil mrnasil closed this Oct 10, 2026
@mrnasil
mrnasil deleted the chore/close-dependabot-prs branch October 12, 2026 01:40
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