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

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

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 01:30PM UTC
Jobs 4
Files 1134
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 01:29PM UTC coverage: 91.827% (+0.01%) from 91.813%
43876262011

push

github

web-flow
perf(portfolio): share one Zerion call between concurrent cache misses (#3759)

* fix(portfolio): limit the portfolio cache clear to Safes and throttle it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* 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

* refactor(portfolio): move the row sums into the portfolio domain

So /v2/safes can value a Safe with the same sums as the summaries.

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

* feat(safe): read /v2/safes balances from the shared portfolio snapshot

Behind FF_SAFES_PORTFOLIO_SNAPSHOT. When on, /v2/safes values each chain
from the cached Zerion /positions snapshot that /v1/portfolio and
/v2/portfolio/summaries read, instead of its own Zerion /portfolio call.
One Zerion call per Safe serves every screen, and they show the same total.

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

5510 of 6223 branches covered (88.54%)

Branch coverage included in aggregate %.

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

13679 of 14674 relevant lines covered (93.22%)

369.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-unit-tests - 43876262011.1 16 Nov 2026 01:30PM UTC 1134
69.79
GitHub Action Run
2 run-integration-tests-1 - 43876262011.2 16 Nov 2026 01:31PM UTC 1134
41.68
GitHub Action Run
3 run-integration-tests-3 - 43876262011.3 16 Nov 2026 01:31PM UTC 1134
46.07
GitHub Action Run
4 run-integration-tests-2 - 43876262011.4 16 Nov 2026 01:31PM UTC 1134
44.76
GitHub Action Run
Source Files on build 43876262011
  • Tree
  • List 1134
  • Changed 16
  • Source Changed 1
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43876262011
  • 378215d6 on github
  • Prev Build on main (#43870832137)
  • Next Build on main (#43885761756)
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