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

safe-global / safe-queue-service / 45595441209
95%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 10:33AM UTC
Jobs 1
Files 91
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

25 Nov 2026 10:29AM UTC coverage: 94.986% (+0.08%) from 94.907%
45595441209

push

github

web-flow
Bound the safes filter of the multisig transaction lists (#415)

* Bound the safes filter of the multisig transaction lists

- Merge repeated chain IDs of a Safe, inside one `safes` value too.
- Cap the (Safe, chain ID) pairs at API_LIST_MULTISIG_TRANSACTIONS_FILTER_MAX_SAFES
  once merged, with a 422 before any Safe info lookup or SQL. A Safe without
  chain IDs counts as one pair.
- Merge overlapping filter rows in the repository, so a transaction is
  returned once.
- One filter row keeps the plain WHERE, so a single Safe list reads the index
  in nonce order and stops at the page end.
- Several rows are bound as arrays and joined with their unnest, so the SQL
  text does not depend on the filter and the index is read once per row.

* Cap the Safe and chain ID pairs on their own setting

Client Gateway caps the Safes of a Space at 100 addresses and sends every
chain of each one, so a Space can go above 100 pairs. The pairs now have
their own limit, API_LIST_MULTISIG_TRANSACTIONS_FILTER_MAX_SAFE_CHAIN_PAIRS
(500), separate from the 100 values of API_LIST_MULTISIG_TRANSACTIONS_FILTER_MAX_SAFES.

/multisig-transactions/queue reads the Safe info of each pair. They now run
at most API_QUEUE_SAFE_INFO_MAX_CONCURRENCY (50) at a time, so one request
cannot take the whole Transaction Service connection pool of the process.

* Cancel the pending Safe info lookups when one fails

The /queue lookups run in a TaskGroup, so when one of them fails the ones
still waiting for the concurrency limit do not start after the response.

* Key the Safe filters by Safe and chain ID

SafeFilters maps each Safe address to None (all chains) or to the lowest
nonce to list per chain ID. The keys make each Safe and each chain of a
Safe appear once, so the filter rows of the list query never overlap and
the repository no longer merges them. The parser stays the only place
that merges repeated Safes and chain IDs, and /queue fills the nonces in
place instead of rebuilding the filt... (continued)

3751 of 3949 relevant lines covered (94.99%)

0.95 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
97.24
0.11% app/services/multisig_transaction_service.py
4
98.26
1.05% app/datasources/db/repositories/multisig_transaction_repository.py
1
98.86
-0.06% app/api/v1/multisig_transaction/routers.py
Jobs
ID Job ID Ran Files Coverage
1 45595441209.1 25 Nov 2026 10:33AM UTC 91
94.99
GitHub Action Run
Source Files on build 45595441209
  • Tree
  • List 91
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e7eb65c3 on github
  • Prev Build on main (#45427231984)
  • Next Build on main (#45798929549)
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