Repository navigation
chore(release): bump workspace to 1.4.2 + idempotent session-end fixes - #171
Merged
Merged
Conversation
The Windows Test job has been failing PR teardown with
soldr: zccache session-end <uuid> failed: cannot connect to daemon
at \.\pipe\zccache-...: I/O error: The system cannot find the file
specified. (os error 2)
##[error]Process completed with exit code 1.
even when every workspace test passed. Root cause: `client_session_end`
is the in-process entry point that soldr's `rust-plan save` and the
Python `ZccacheClient.session_end` binding call. It was the only
session-end path that did NOT yet adopt the idempotency contract from
#137 / #151 / #159 — connect-time `NotFound` on the named pipe was
returned as a hard `Err(String)` rather than `Ok(None)`. The CLI
subcommand was switched to `session_end_idempotent` in #163, but
library callers were left on the old, non-idempotent path.
Fix: collapse `client_session_end` to a thin String-error wrapper
around `session_end_idempotent`. All callers (CLI, Python, soldr,
future tools) now share one definition of "the daemon already died".
Regression test `client_session_end_swallows_vanished_daemon` mirrors
the existing `session_end_idempotent_swallows_vanished_daemon`: bind
no listener, call with a fresh UUID, assert `Ok(None)`.
Verification: `soldr cargo test -p zccache-cli --lib` — 4 / 4 relevant
tests pass; `soldr cargo clippy -p zccache-cli --all-targets -D warnings`
clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The Windows Test job has been failing every PR teardown with
soldr: zccache session-end <uuid> failed: cannot connect to daemon
at \.\pipe\zccache-...: I/O error: The system cannot find the file
specified. (os error 2)
##[error]Process completed with exit code 1.
even after every workspace test passed. The bundled zccache 1.4.0
binary inside soldr 0.7.14 still uses the non-idempotent
`client_session_end` (fixed at the source level in the prior commit
on this branch). Source fix can't help in CI until soldr ships a new
release bundling zccache 1.4.1+, which is out of band.
Workflow-level workaround: after `cargo test`, if soldr exited non-zero,
check the captured output. If cargo itself reported no failed tests AND
the output contains exactly the soldr session-end teardown error, treat
the run as success and emit a GitHub workflow warning. Other non-zero
exits — real test failures, panics, build errors — still propagate
unchanged.
Targeted by:
- "test result: FAILED" / "panicked at" must be absent (no real failure)
- "soldr: zccache session-end .* failed: cannot connect to daemon"
must be present (the specific teardown bug)
Once soldr's bundled zccache picks up the idempotent
`client_session_end`, this carve-out becomes dead code and can be
removed.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fix(cli):client_session_endis now idempotent on a vanished daemon (a245e18)ci(check): tolerate soldr's at-exit session-end teardown when the daemon already exited (be16278)Release
After merge, push tag
v1.4.2(or1.4.2) to trigger.github/workflows/release.yml, which publishes PyPI + crates.io and creates the GitHub release.Test plan
🤖 Generated with Claude Code