• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sds / mock_redis / 41407519476
97%

Build:
DEFAULT BRANCH: main
Ran 02 Nov 2026 07:38AM UTC
Jobs 12
Files 27
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2026 07:37AM UTC coverage: 96.936% (+0.2%) from 96.754%
41407519476

push

github

web-flow
fix: reject nonpositive SET expirations before changing key state (#360)

Fixes #359.

`SET` currently writes the value and removes its TTL before checking
expiration. A rejected zero expiration can therefore create a key,
overwrite an existing value/type, or remove its TTL. Negative
expirations can delete the key without raising; NX/XX can bypass
validation.

Validate EX/PX/EXAT/PXAT before GET/NX/XX and mutation, using the same
integer conversion as redis-rb. Remove the late zero checks. Standalone
EXPIRE behavior, positive past timestamps and existing error wording are
unchanged.

Adds state-preservation tests for missing/expiring/list keys, GET/NX/XX
ordering, integer strings and raw `call` dispatch, plus nil/false and
valid-expiration controls.

### Verification

Using private local Redis processes and Ruby 4.0.7:

- SET specs on Redis 6.2.24: **102 passed** with redis-rb 5.4.1 and
6.0.0. Before the fix: 64 failures in the same matrix.
- New cases on Redis 7.0.15: **78 passed** with each client; also passed
randomized-order runs.
- Separate real/mock comparison: **90 scenarios per server/client
combination** matched return values, error classes and value/type/TTL
state. Redis 7 error text still differs; this is not byte-for-byte error
parity.
- RuboCop on both changed files and `git diff --check`: passed.

The expanded full suite has the same failures as unpatched main: 1,286
examples / 2 failures on Redis 6.2 and 1,317 / 14 on Redis 7. These are
the private-endpoint connection expectation, canned memory-usage
comparison, and Redis 7 error-wording mismatches. No new failing
examples appeared. I am not claiming an all-green full suite.

The existing CI version-selection issue is tracked separately in #358;
no workflow changes are included here.

Co-authored-by: Shane da Silva <shane@dasilva.io>

2 of 2 new or added lines in 1 file covered. (100.0%)

2025 of 2089 relevant lines covered (96.94%)

2520.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby3.4-6.2 - 41407519476.1 02 Nov 2026 07:38AM UTC 27
94.97
GitHub Action Run
2 ruby3.0-6.2 - 41407519476.2 02 Nov 2026 07:38AM UTC 27
95.09
GitHub Action Run
3 ruby3.4-7.0 - 41407519476.3 02 Nov 2026 07:38AM UTC 27
38.17
GitHub Action Run
4 ruby3.3-6.2 - 41407519476.4 02 Nov 2026 07:38AM UTC 27
95.09
GitHub Action Run
5 ruby3.1-7.0 - 41407519476.5 02 Nov 2026 07:38AM UTC 27
38.19
GitHub Action Run
6 ruby3.1-6.2 - 41407519476.6 02 Nov 2026 07:38AM UTC 27
95.09
GitHub Action Run
7 ruby3.2-7.0 - 41407519476.7 02 Nov 2026 07:38AM UTC 27
38.19
GitHub Action Run
8 ruby3.0-7.0 - 41407519476.8 02 Nov 2026 07:38AM UTC 27
38.19
GitHub Action Run
9 ruby4.0-7.0 - 41407519476.9 02 Nov 2026 07:38AM UTC 27
38.17
GitHub Action Run
10 ruby3.2-6.2 - 41407519476.10 02 Nov 2026 07:38AM UTC 27
95.09
GitHub Action Run
11 ruby4.0-6.2 - 41407519476.11 02 Nov 2026 07:38AM UTC 27
94.97
GitHub Action Run
12 ruby3.3-7.0 - 41407519476.12 02 Nov 2026 07:38AM UTC 27
38.21
GitHub Action Run
Source Files on build 41407519476
  • Tree
  • List 27
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ffe88cad on github
  • Prev Build on main (#41407274202)
  • Next Build on main (#41415357951)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc