Repository navigation
Fix docket-rs's rediss:// connections, and put TLS behind a default feature - #552
Merged
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
chrisguidry
approved these changes
Oct 8, 2026
chrisguidry
force-pushed
the
rust-tls-feature
branch
from
October 8, 2026 17:14
9cc3f8d to
1174e38
Compare
Documentation build overview
3 files changed± api-reference/index.html± dependency-injection/index.html± production/index.html |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chrisguidry
force-pushed
the
rust-tls-feature
branch
from
October 8, 2026 17:51
1174e38 to
51d19fd
Compare
chrisguidry
added a commit
that referenced
this pull request
Oct 9, 2026
…ial batches, and bump docket-rs to 0.3.0 (#564) A release review of the changes since python/v0.26.2 and rust/v0.2.0 found these problems. - A Perpetual that stops itself after a replace of its own key (#554) published `completed` on the key, so `get_result()` returned `None` before the replacement ran. At 0.26.2 it raised `ExecutionCancelled`. Both languages now end a superseded Perpetual run without a state event, as #562 did for Retry. This also covers a Perpetual reschedule that a replace superseded, which published the same way at 0.26.2. - docket-rs's default `tls` feature (#552) turned on rustls's `ring` backend. In an application that already has rustls's default `aws-lc-rs`, rustls then has two backends, and every rustls config in the process panics, the application's own included, even with no `rediss://` URL. `tls` now brings no backend, and the new `tls-ring` feature adds `ring` for an application with none. There is no `tls-aws-lc-rs` feature: `--all-features` would then turn on both. - A docket-rs batch that failed after its first chunk (#550) returned only the error, so the caller lost the dispositions of the tasks already in Redis. The batch now returns every execution, with the failed chunk and those after it marked `Disposition::Failed`. A failure on the first chunk still returns the error, as in 0.2.0. - docket-rs goes to 0.3.0, because `Admission::admit` (#547) and `add_many`/`replace_many` (#550) changed incompatibly since 0.2.0. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Y2QtufEUxxm9XgTqCWySHG Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
docket-rs panicked on its first command to a
rediss://URL. redis turns off rustls's default features, which include its crypto backends, and nothing else in docket-rs turned one on, so rustls could not build a TLS config. docket-rs also took all of redis's default features, none of which it uses beyond thestreamsandscriptit names, and gave every user rustls whether or not they connect over TLS. Cargo gives a crate no way to turn off a feature that one of its dependencies turns on.redis's default features are now off, and TLS is a
tlsfeature, on by default, that turns on redis's rustls support and gives rustls itsringbackend. Without it, aredissURL fails with "rediss:// needs docket's tls feature", the waymemory://fails without thememoryfeature, and the build drops 14 crates. If an application also turns on rustls'saws-lc-rsbackend, rustls cannot choose between the two, and the README says to install one.rust/rust-toolchain.tomlpins Rust 1.99, the crates'rust-version, so local runs and CI lint with the same clippy; the coverage job setsRUSTUP_TOOLCHAINto stay on nightly. The lint job now also runs clippy without default features, and the two lints that fired there are fixed.Session context
A question about whether docket-rs needs redis's default features turned this up. With them off, the dependency tree had rustls but neither
ringnoraws-lc-rs, and a small program that connected torediss://on a closed port panicked in rustls instead of reporting the refused connection. Turning the defaults back on doesn't help, since they don't touch rustls. Cluster, Sentinel, and token-based authentication stay on for everyone: together they add four crates, and making them optional would put#[cfg]through the connection code.Tests came first:
a_tls_connect_reaches_the_networkpanicked the same way before rustls hadring, and expects a refused connection now. Nothing here completes a TLS handshake, because CI has no TLS backend. The two clippy lints were onmaintoo, and fire only without thememoryfeature: a wildcard match left with one variant, and a test helper that only the memory tests call.Locally, the Rust workspace passes on memory and on a real Redis 8 with all features, the docket-rs tests pass without TLS, clippy
-D warningsis clean with no features, each feature alone, and all features, and prek passes.🤖 Generated with Claude Code