Skip to content

test(client): create the key before BLESS SET/GET/CLEAR - #3490

Merged
nkaradzhov merged 1 commit into
redis:masterfrom
nkaradzhov:fix/bless-specs-existing-key
Oct 8, 2026
Merged

nkaradzhov merged 1 commit into
redis:masterfrom
nkaradzhov:fix/bless-specs-existing-key

Conversation

@nkaradzhov

@nkaradzhov nkaradzhov commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

This pull request fixes the BLESS SET, GET and CLEAR behavior tests, which fail every night against Redis unstable.

The server rejects these commands on a key that does not exist and replies ERR no such key. The specs called them on a key they never created, so all six tests (client and cluster) failed on every server that has BLESS. PR CI did not catch this. The specs only run on 8.12 or newer, and the newest server in the PR CI matrix is 8.10.

The specs now create the key first. They also check the real replies, not just the reply type:

  • BLESS SET returns 1, then 0 on a repeat.
  • BLESS GET returns [], then ['NO-EVICT'] after a set.
  • BLESS CLEAR returns 1, then 0 on a repeat.

This is a test-only change. No runtime code changes.

Separate follow-up: add an 8.12 or unstable entry to the PR CI matrix so 8.12-only tests run before merge.


Note

Low Risk
Test-only updates to integration specs; no production or client runtime behavior changes.

Overview
Fixes failing BLESS SET/GET/CLEAR client behavior specs on Redis 8.12+ by matching server rules: BLESS only works on keys that already exist.

Each spec now SETs the key before exercising BLESS. Assertions move from loose type checks to expected integer/array replies—e.g. SET/CLEAR return 1 then 0 on repeat, GET returns [] then ['NO-EVICT'] after a bless.

Test-only; no client or command implementation changes.

Reviewed by Cursor Bugbot for commit ea71869. Bugbot is set up for automated code reviews on this repo. Configure here.

The server rejects BLESS SET, GET and CLEAR on a missing key with
"ERR no such key". The specs called them on a key that did not exist,
so they failed on every server that has BLESS (8.12+, unstable). PR CI
tops out at 8.10, so the version gate skipped them there.

Create the key first and assert the real replies instead of only the
reply type.
@nkaradzhov
nkaradzhov merged commit 8e56fc0 into redis:master Oct 8, 2026
25 of 26 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