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

safe-global / safe-decoder-service / 24830722284
92%

Build:
DEFAULT BRANCH: main
Ran 23 Apr 2026 10:42AM UTC
Jobs 1
Files 69
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

23 Apr 2026 10:40AM UTC coverage: 91.411% (-0.09%) from 91.498%
24830722284

push

github

Uxio0
Merge log_record_factory so both db_session and task_detail are injected

main.py and workers/tasks.py each registered their own log record factory
via logging.setLogRecordFactory, with the last import winning. In the web
process (which transitively imports workers/tasks.py via events.py) the
task factory was overwriting the request factory, causing db_session to be
absent from web logs.

A single log_record_factory is now defined in safe_logger.py and registered
there. It lazily imports _db_session_context from database.py (avoiding the
config -> safe_logger -> database circular import) and reads both context
vars, so all log records carry whichever attributes are active in the current
context.

12 of 12 new or added lines in 2 files covered. (100.0%)

1 existing line in 1 file now uncovered.

1309 of 1432 relevant lines covered (91.41%)

0.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
91.78
-0.15% app/loggers/safe_logger.py
Jobs
ID Job ID Ran Files Coverage
1 24830722284.1 23 Apr 2026 10:42AM UTC 69
91.41
GitHub Action Run
Source Files on build 24830722284
  • Tree
  • List 69
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 272a681e on github
  • Prev Build on main (#24830716252)
  • Next Build on main (#24830735584)
  • Delete
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