Skip to content

chore(release): bump workspace to 1.4.2 + idempotent session-end fixes - #171

Merged
zackees merged 3 commits into
mainfrom
fix/client-session-end-idempotent
May 11, 2026
Merged

zackees merged 3 commits into
mainfrom
fix/client-session-end-idempotent

Conversation

@zackees

@zackees zackees commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bump workspace version to 1.4.2 to ship the unreleased session-end fixes
  • fix(cli): client_session_end is 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 (or 1.4.2) to trigger .github/workflows/release.yml, which publishes PyPI + crates.io and creates the GitHub release.

Test plan

  • CI green on all platforms
  • Workspace version matches tag at release time

🤖 Generated with Claude Code

zackees and others added 3 commits May 11, 2026 14:13
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

codecov Bot commented May 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zackees
zackees merged commit e1325e2 into main May 11, 2026
25 checks passed
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