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

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

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 12:47PM UTC
Jobs 4
Files 1133
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

16 Nov 2026 12:44PM UTC coverage: 91.79% (-0.004%) from 91.794%
43869374028

push

github

web-flow
fix(portfolio): shorten the cache ttl for refetches after a clear (#3749)

* fix(portfolio): keep a portfolio fetched right after a clear for 2 minutes only

A transaction clears the cache before Zerion may have indexed it. With an
hour-long TTL the refetch could cache the old balance for an hour. A fetch
within PORTFOLIO_CACHE_SETTLE_SECONDS (default 120) of the last clear is now
kept only until that window ends, so the next read sees the settled balance.

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

* fix(portfolio): record the clear time in its own key for the settle window

The Redis invalidation marker lives 60 s and is set once (NX), so a refetch
60-120 s after a clear, or soon after a repeat clear, still got the full TTL.
Each Zerion clear now writes its own cleared-at key for the settle window,
overwritten every time, and the settle-window entry is stored without jitter.

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

* chore(portfolio): name the post-transaction cache window by what it is

PORTFOLIO_CACHE_SETTLE_SECONDS becomes
PORTFOLIO_CACHE_TTL_AFTER_TRANSACTION_SECONDS (config key
portfolio.cache.afterTransactionTtlSeconds), next to the existing
PORTFOLIO_CACHE_TTL_SECONDS, and its description says what it does in
plain words. Not deployed anywhere yet, so no alias is needed.

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

* test(portfolio): pin the full TTL when the window outlasts it

Review follow-up: the default setup (10 s TTL, 120 s window) takes the
full-TTL path with jitter, and nothing tested it. Also declares the
injected configuration service private readonly in ZerionCacheService.

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

5502 of 6219 branches covered (88.47%)

Branch coverage included in aggregate %.

15 of 15 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

13661 of 14658 relevant lines covered (93.2%)

365.52 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
82.57
-0.92% src/modules/relay/domain/relayers/no-fee-campaign.relayer.ts
Jobs
ID Job ID Ran Files Coverage
1 run-unit-tests - 43869374028.1 16 Nov 2026 12:47PM UTC 1133
69.75
GitHub Action Run
2 run-integration-tests-2 - 43869374028.2 16 Nov 2026 12:48PM UTC 1133
44.73
GitHub Action Run
3 run-integration-tests-3 - 43869374028.3 16 Nov 2026 12:47PM UTC 1133
45.6
GitHub Action Run
4 run-integration-tests-1 - 43869374028.4 16 Nov 2026 12:48PM UTC 1133
41.52
GitHub Action Run
Source Files on build 43869374028
  • Tree
  • List 1133
  • Changed 25
  • Source Changed 6
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43869374028
  • 69e1356b on github
  • Prev Build on main (#43868667898)
  • Next Build on main (#43870832137)
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