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

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

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 11:40AM UTC
Jobs 4
Files 1103
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

13 Nov 2026 11:34AM UTC coverage: 91.622% (-0.02%) from 91.643%
43418206389

push

github

web-flow
fix: make the v2 migrator lock acquisition atomic (#3594)

* fix(db): make the v2 migrator lock acquisition atomic

Creating the _lock table and checking-then-inserting the lock row ran as
separate statements, so two instances starting at once could both create
the table (failing on pg_class_relname_nsp_index) or both take the lock.
Both steps now run in one transaction behind pg_advisory_xact_lock.

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

* fix(db): skip the migrator lock when no migration is pending

With the lock acquisition serialised, instances starting together queued
on the _lock row one retry tick apart even when there was nothing to run,
and ran out of retries with eight or more of them. The pending check now
runs under the advisory lock: with nothing pending an instance starts
without taking the _lock row, and waiters stop as soon as the winner has
applied everything.

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

* refactor: name entity-manager params and use a distinctive advisory key

Advisory lock keys are database-wide, so 1 could collide with anything
else that picks the first value.

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

* refactor: use a LockResult enum and test the waiter path

Covers an instance that finds a lock row on its first attempt and nothing
pending on the retry: it starts without running migrations.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

5362 of 6079 branches covered (88.21%)

Branch coverage included in aggregate %.

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

3 existing lines in 3 files now uncovered.

13273 of 14260 relevant lines covered (93.08%)

366.09 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
93.94
-0.55% src/modules/safe/domain/safe.repository.ts
1
86.67
-5.0% src/modules/notifications/routes/v1/notifications.controller.ts
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 - 43418206389.1 13 Nov 2026 11:40AM UTC 1103
69.3
GitHub Action Run
2 run-integration-tests-3 - 43418206389.2 13 Nov 2026 11:41AM UTC 1103
46.14
GitHub Action Run
3 run-integration-tests-2 - 43418206389.3 13 Nov 2026 11:41AM UTC 1103
42.15
GitHub Action Run
4 run-integration-tests-1 - 43418206389.4 13 Nov 2026 11:41AM UTC 1103
40.84
GitHub Action Run
Source Files on build 43418206389
  • Tree
  • List 1103
  • Changed 17
  • Source Changed 2
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43418206389
  • b8044d5e on github
  • Prev Build on main (#43417840664)
  • Next Build on main (#43421217988)
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