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

safe-global / safe-client-gateway / 44511761474
92%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2026 11:07AM UTC
Jobs 4
Files 1136
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

19 Nov 2026 11:06AM UTC coverage: 92.255% (+0.03%) from 92.224%
44511761474

push

github

web-flow
perf: write Redis cache entries and invalidations in one round trip (#3800)

* perf: write Redis cache entries and invalidations in one round trip

RedisCacheService sent HSET and EXPIRE as separate awaited commands, so
every cache write cost two round trips and every deleteByKey cost three
(UNLINK, then HSET + EXPIRE for the invalidation marker). Both now go out
as a single MULTI/EXEC, which also means a value is never stored without
its TTL. increment() drops the redundant GET, since INCR already replies
with the new value.

Refs WA-4122

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MyKaL1RWWXqiV2RBn91dt8

* perf: pipeline deleteByKey so the unlink survives a refused marker write

A MULTI is refused as a whole when Redis rejects any queued command, e.g.
with OOM at maxmemory, so the UNLINK did not run at all. deleteByKey now
pipelines its commands instead: still one round trip, but each command runs
on its own, as before this change. The invalidation marker is written
before the UNLINK, so the entry is never gone while its marker is missing.

Specs: faker values for unused reply slots, reset the exec mocks between
tests, and cover the non-positive default TTL branch.

Refs WA-4122

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MyKaL1RWWXqiV2RBn91dt8

* perf: keep deleteByKey's unlink first and honour disableOfflineQueue

Queue the UNLINK before the invalidation marker again, as on main: at
maxmemory the marker write only succeeds once the entry's memory is
freed, so writing it first made deleteByKey fail under OOM.

node-redis rejects single commands with ClientOfflineError while
reconnecting when disableOfflineQueue is set, but queues MULTI and
pipelines regardless. hSet and deleteByKey now apply the same fail-fast
before sending their batch.

Refs WA-4122

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: htt... (continued)

5576 of 6257 branches covered (89.12%)

Branch coverage included in aggregate %.

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

13757 of 14699 relevant lines covered (93.59%)

366.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-unit-tests - 44511761474.1 19 Nov 2026 11:07AM UTC 1136
70.27
GitHub Action Run
2 run-integration-tests-1 - 44511761474.2 19 Nov 2026 11:08AM UTC 1136
40.9
GitHub Action Run
3 run-integration-tests-2 - 44511761474.3 19 Nov 2026 11:08AM UTC 1136
46.27
GitHub Action Run
4 run-integration-tests-3 - 44511761474.4 19 Nov 2026 11:07AM UTC 1136
47.08
GitHub Action Run
Source Files on build 44511761474
  • Tree
  • List 1136
  • Changed 20
  • Source Changed 1
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44511761474
  • 091eb686 on github
  • Prev Build on main (#44509005332)
  • Next Build on main (#44512971941)
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