Skip to content

deps(deps): bump github.com/redis/go-redis/v9 from 9.18.0 to 9.21.0 - #249

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/redis/go-redis/v9-9.21.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/redis/go-redis/v9-9.21.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/redis/go-redis/v9 from 9.18.0 to 9.21.0.

Release notes

Sourced from github.com/redis/go-redis/v9's releases.

9.21.0

This is a minor release adding new features and bug fixes. There are no breaking changes; upgrading from 9.20.x is a drop-in replacement.

🚀 Highlights

Zero-copy GetToBuffer / SetFromBuffer

Two new StringCmdable methods let callers read and write Redis string values directly into and from pre-allocated byte buffers, eliminating the per-call payload allocation that Get/Set incur:

GetToBuffer(ctx, key, buf) *ZeroCopyStringCmd   // reads into buf; ZeroCopyStringCmd { Val() int; Bytes() []byte; Result() (int, error) }
SetFromBuffer(ctx, key, buf) *StatusCmd

GetToBuffer decodes the bulk reply straight into the caller-owned buf (no intermediate allocation); a buffer that is too small returns an error after draining the payload, so the connection stays aligned for the next reply. SetFromBuffer is provided for API symmetry — it dispatches to the same []byte writer path as Set(ctx, key, buf, 0) and produces byte-identical output on the wire. Available on *Client, *ClusterClient, *Ring, *Conn and Pipeliner.

(#3834) by @​ndyakov

Explicit LIMIT 0 for stream trimming

Redis treats XTRIM/XADD approximate-trim (~) LIMIT 0 as "disable the trimming effort cap entirely", which differs from omitting LIMIT (the implicit 100 * stream-node-max-entries default). The command builders previously only emitted LIMIT when limit > 0, so callers could never send an explicit LIMIT 0. Following the KeepTTL = -1 precedent, the new XTrimLimitDisabled = -1 sentinel now emits an explicit LIMIT 0; limit == 0 keeps the historical no-LIMIT behavior, so existing callers produce byte-identical commands.

(#3848) by @​TheRealMal

✨ New Features

  • Zero-copy buffer string commands: new GetToBuffer / SetFromBuffer on StringCmdable and the ZeroCopyStringCmd result type, reading/writing string values into caller-owned buffers without per-call payload allocation (#3834) by @​ndyakov
  • XTrimLimitDisabled sentinel: XTRIM/XADD approximate trimming can now send an explicit LIMIT 0 to disable the trim effort cap, via the new XTrimLimitDisabled = -1 sentinel (#3848) by @​TheRealMal
  • PubSub health-check timeouts: channel.initHealthCheck now bounds the Ping it issues with a fresh per-check timeout context (the exported pingTimeout / reconnectTimeout) instead of context.TODO(), so a stuck health-check Ping can no longer block indefinitely (#3819) by @​abdellani
  • Skip redundant UNWATCH in Tx.Close: a transaction now tracks whether a WATCH is still active (watchArmed) and only issues UNWATCH on Close when it is, removing an extra round trip on the common WATCH/.../EXEC and no-key Watch paths while never returning a connection to the pool with an active watch (#3854) by @​fcostaoliveira

🐛 Bug Fixes

  • maintnotifications ModeAuto fail-open: ModeAuto now stays fail-open when the server does not support maintenance notifications — connections are retired and tracking is guarded during downgrade so the client keeps working instead of erroring (#3853) by @​terrorobe

👥 Contributors

We'd like to thank all the contributors who worked on this release!

@​abdellani, @​fcostaoliveira, @​ndyakov, @​terrorobe, @​TheRealMal

9.20.1

This is a patch release containing bug fixes only. There are no new features or breaking changes; upgrading from 9.20.0 is a drop-in replacement.

🚀 Highlights

RESP3 pub/sub message loss fixed

PeekPushNotificationName previously inspected only the bytes already buffered by bufio, so when a push frame header straddled a buffer fill boundary it could return a truncated notification name (e.g. "messa" instead of "message"). The push processor then mis-routed the frame and ReadReply silently dropped it, causing intermittent RESP3 pub/sub message loss. The peek now grows its window (36 bytes → up to 4 KiB) and reads more from the connection until the header is complete, cleanly separating incomplete prefixes from corrupt frames (including overflow-safe bulk-length handling). Fixes #3839.

... (truncated)

Changelog

Sourced from github.com/redis/go-redis/v9's changelog.

9.21.0 (2026-06-18)

This is a minor release adding new features and bug fixes. There are no breaking changes; upgrading from 9.20.x is a drop-in replacement.

🚀 Highlights

Zero-copy GetToBuffer / SetFromBuffer

Two new StringCmdable methods let callers read and write Redis string values directly into and from pre-allocated byte buffers, eliminating the per-call payload allocation that Get/Set incur:

GetToBuffer(ctx, key, buf) *ZeroCopyStringCmd   // reads into buf; ZeroCopyStringCmd { Val() int; Bytes() []byte; Result() (int, error) }
SetFromBuffer(ctx, key, buf) *StatusCmd

GetToBuffer decodes the bulk reply straight into the caller-owned buf (no intermediate allocation); a buffer that is too small returns an error after draining the payload, so the connection stays aligned for the next reply. SetFromBuffer is provided for API symmetry — it dispatches to the same []byte writer path as Set(ctx, key, buf, 0) and produces byte-identical output on the wire. Available on *Client, *ClusterClient, *Ring, *Conn and Pipeliner.

(#3834) by @​ndyakov

Explicit LIMIT 0 for stream trimming

Redis treats XTRIM/XADD approximate-trim (~) LIMIT 0 as "disable the trimming effort cap entirely", which differs from omitting LIMIT (the implicit 100 * stream-node-max-entries default). The command builders previously only emitted LIMIT when limit > 0, so callers could never send an explicit LIMIT 0. Following the KeepTTL = -1 precedent, the new XTrimLimitDisabled = -1 sentinel now emits an explicit LIMIT 0; limit == 0 keeps the historical no-LIMIT behavior, so existing callers produce byte-identical commands.

(#3848) by @​TheRealMal

✨ New Features

  • Zero-copy buffer string commands: new GetToBuffer / SetFromBuffer on StringCmdable and the ZeroCopyStringCmd result type, reading/writing string values into caller-owned buffers without per-call payload allocation (#3834) by @​ndyakov
  • XTrimLimitDisabled sentinel: XTRIM/XADD approximate trimming can now send an explicit LIMIT 0 to disable the trim effort cap, via the new XTrimLimitDisabled = -1 sentinel (#3848) by @​TheRealMal
  • PubSub health-check timeouts: channel.initHealthCheck now bounds the Ping it issues with a fresh per-check timeout context (the exported pingTimeout / reconnectTimeout) instead of context.TODO(), so a stuck health-check Ping can no longer block indefinitely (#3819) by @​abdellani
  • Skip redundant UNWATCH in Tx.Close: a transaction now tracks whether a WATCH is still active (watchArmed) and only issues UNWATCH on Close when it is, removing an extra round trip on the common WATCH/.../EXEC and no-key Watch paths while never returning a connection to the pool with an active watch (#3854) by @​fcostaoliveira

🐛 Bug Fixes

  • maintnotifications ModeAuto fail-open: ModeAuto now stays fail-open when the server does not support maintenance notifications — connections are retired and tracking is guarded during downgrade so the client keeps working instead of erroring (#3853) by @​terrorobe

👥 Contributors

We'd like to thank all the contributors who worked on this release!

@​abdellani, @​fcostaoliveira, @​ndyakov, @​terrorobe, @​TheRealMal


Full Changelog: redis/go-redis@v9.20.1...v9.21.0

9.20.1 (2026-06-11)

This is a patch release containing bug fixes only. There are no new features or breaking changes; upgrading from 9.20.0 is a drop-in replacement.

... (truncated)

Commits
  • 1551837 chore(release): 9.21.0 (#3857)
  • 1cfa927 fix(maintnotifications): keep ModeAuto fail-open (#3853)
  • 1f0ea0e feat(pubsub): introduce timeouts for Ping on channel.initHealthCheck (#3819)
  • 5484b0b feat(tx): skip redundant UNWATCH in Tx.Close when no WATCH is active (#3854)
  • bf57a51 chore(deps): bump rojopolis/spellcheck-github-actions (#3852)
  • 641294c feat(streams): support explicit LIMIT 0 in XTRIM/XADD trimming via XTrimLimit...
  • 74d9bb0 feat(command): add zero-copy GetToBuffer and SetFromBuffer (#3834)
  • a13416b chore(release): 9.20.1 (#3847)
  • 10dc44f fix(push): fix peeking when push name is truncated (#3842)
  • e1a2d68 fix(ft.hybrid): Always generate vector param names if they are not provided b...
  • Additional commits viewable in compare view

@dependabot @github

dependabot Bot commented on behalf of github Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Assignees

The following users could not be added as assignees: objectfs/maintainers. Either the username does not exist or it does not have the correct permissions to be added as an assignee.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added dependencies Dependency updates (Dependabot) go Go module dependency labels Aug 3, 2026
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis) from 9.18.0 to 9.21.0.
- [Release notes](https://github.com/redis/go-redis/releases)
- [Changelog](https://github.com/redis/go-redis/blob/master/RELEASE-NOTES.md)
- [Commits](redis/go-redis@v9.18.0...v9.21.0)

---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
  dependency-version: 9.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/redis/go-redis/v9-9.21.0 branch from 6d54df8 to 5238104 Compare August 3, 2026 14:45
scttfrdmn added a commit that referenced this pull request Aug 3, 2026
…183 (#266)

Consolidates dependabot PRs #249-#253 into one commit rather than five CI runs
for changes that are one `go get` and share a single verification.

  aws-sdk-go-v2         1.41.5  -> 1.43.2
  aws-sdk-go-v2/config  1.31.12 -> 1.32.33
  klauspost/compress    1.18.7  -> 1.19.1
  pierrec/lz4/v4        4.1.22  -> 4.1.27
  redis/go-redis/v9     9.18.0  -> 9.21.0

Two transitive consequences are worth naming here rather than leaving to be
rediscovered from go.mod:

smithy-go moved 1.24.2 -> 1.27.5. That is not incidental — the real AWS Pricing
API work (#183) needs >= 1.26.0, because `service/pricing` imports
`endpoints/private/bdd`, which is absent from 1.24.x. The audit noted that
adding the pricing client would force this bump under the S3 client as well;
that has now happened as a side effect of a routine SDK update, verified by a
full green suite rather than deferred to the pricing PR.

The SDK also restructured SSO authentication: `internal/ini` is gone and
`service/signin` v1.5.2 is new. Nothing in this repository imports either
directly, and credential resolution runs through `config.LoadDefaultConfig`, so
the change is confined to the indirect set.

Verification: `go build ./...` and `go vet ./...` clean, `gofmt -l .` empty,
full `go test -count=1 -race` suite green across all packages, coverage gate
reports 34 packages at or above floor, `golangci-lint
--new-from-merge-base=origin/main` 0 issues.
@dependabot @github

dependabot Bot commented on behalf of github Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/redis/go-redis/v9-9.21.0 branch August 3, 2026 15:30
scttfrdmn added a commit that referenced this pull request Aug 3, 2026
…discarded (#289)

`time: 09:00` unquoted is not a string in YAML 1.1: Dependabot's parser reads it
as a sexagesimal integer, its schema requires a string, and it rejects the ENTIRE
FILE — one error per ecosystem entry, six of them.

An invalid config is not partially applied, it is ignored. So every `labels:`,
`groups:`, `reviewers:` and `ignore:` block in this file was dead and Dependabot
ran on its defaults. Present since 2025-10-15 (d4ff903), where the key was
introduced unquoted and never quoted after.

This also explains a fix that appeared to land and didn't. `automerge` was missing
from the repository, Dependabot drops unknown labels silently, and every approve
and merge step in dependabot-automerge.yml is gated on that label — 46 PRs opened,
0 merged. That was diagnosed and fixed: the label is in .github/labels.yml and on
the repository, guarded by TestDependabotLabelsAreDefined. And it still did not
work, because `labels:` sat inside a file being thrown away. Confirmed on the open
PRs — #210, #249, #254 and #258 all carry `dependencies` plus an ecosystem label
and no `automerge`. Two independent causes for one symptom; fixing the visible one
left the other invisible.

It hid for nine months because it surfaces as a failing `.github/dependabot.yml`
check on every PR, which reads like a failed job rather than an invalid config —
and the file has a `version: 2` key and six well-formed-looking entries, so
nothing about reading it suggests it is being discarded.

TestDependabotScheduleTimesAreQuoted checks the file TEXT, not the decoded value,
and that is deliberate. Asserting the decoded Go type is the obvious design and it
cannot work: gopkg.in/yaml.v2 and gopkg.in/yaml.v3 both decode 09:00, 9:00, 10:30
and 05:00 as Go `string`, because Go's YAML 1.2 core schema has no sexagesimal
integer type while Dependabot's YAML 1.1 parser does. A decode-based assertion
therefore passes on exactly the input that breaks the file — the first version of
this test did, which is how the text approach was arrived at.

The narrower claim that buys: it cannot tell `"9am"` from `"09:00"`, since both
are quoted strings and only Dependabot's own schema knows the difference. The
failing check on the PR stays the authority on validity; this stops the known
regression. Mutation-verified three ways: unquoting fails it, single-quoting
passes, renaming the key trips the scan-found-nothing guard.

Refs #288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates (Dependabot) go Go module dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants