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

safe-global / safe-client-gateway / 18370876006
89%

Build:
DEFAULT BRANCH: main
Ran 09 Oct 2025 08:57AM UTC
Jobs 1
Files 963
Run time 3min
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

09 Oct 2025 08:51AM UTC coverage: 89.16% (-0.02%) from 89.178%
18370876006

push

github

web-flow
fix: resolve high-severity memory leaks (#2736)

* fix: resolve high-severity memory leaks and SQL query inefficiencies

This commit addresses 11 high-severity issues identified in the security
and performance analysis:

Memory Leak Fixes:
- Use res.once() instead of res.on() in NotFoundLoggerMiddleware to
  prevent event listener accumulation
- Add proper cleanup for httpUploadProgress listeners in AWS upload streams
- Implement cleanup pattern for stream event listeners (data, error, end)
  in streamToString to prevent orphaned listeners
- Add error handling with .catch() in QueueApiService to prevent unhandled
  promise rejections and memory leaks

SQL Query Optimizations:
- Replace SELECT * with explicit column lists in accounts.datasource.ts
  (getAccount, getDataTypes, upsertAccountDataSettings)
- Replace SELECT * with explicit column lists in counterfactual-safes
  datasource (getCounterfactualSafe, getCounterfactualSafesForAddress)
- Replace SELECT * with explicit column list in address-books datasource
  (getAddressBook)
- Replace SELECT * with explicit column lists in targeted-messaging
  datasource (getUnprocessedOutreaches, createTargetedSafes,
  getTargetedSafe, getSubmission)

Impact:
- Prevents memory leaks from accumulated event listeners in high-traffic
  scenarios
- Reduces database I/O and memory consumption by fetching only required
  columns
- Ensures proper error logging for queue message processing failures
- Improves overall application stability and performance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

* style: run prettier formatting

* test: add missing off method to Upload mock in aws-cloud-storage tests

Fix test failure where upload.off() was called but not mocked in the test suite.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

* fix: prevent deadlock in AWS upload stream by returning p... (continued)

3858 of 4751 branches covered (81.2%)

Branch coverage included in aggregate %.

18 of 23 new or added lines in 3 files covered. (78.26%)

1 existing line in 1 file now uncovered.

12864 of 14004 relevant lines covered (91.86%)

520.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
90.74
-1.76% src/datasources/storage/aws-cloud-storage-api.service.ts
3
72.73
-16.16% src/datasources/queues/queues-api.service.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
90.74
-1.76% src/datasources/storage/aws-cloud-storage-api.service.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:cov - 18370876006.1 09 Oct 2025 08:57AM UTC 1925
90.25
GitHub Action Run
Source Files on build 18370876006
  • Tree
  • List 963
  • Changed 265
  • Source Changed 3
  • Coverage Changed 265
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #18370876006
  • ccd73f1d on github
  • Prev Build on main (#18343883335)
  • Next Build on main (#18381154395)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc