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

stacklok / toolhive / 21693232976
61%

Build:
DEFAULT BRANCH: main
Ran 05 Feb 2026 12:10AM UTC
Jobs 1
Files 491
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

05 Feb 2026 12:02AM UTC coverage: 60.712% (-0.008%) from 60.72%
21693232976

push

github

web-flow
Fix audit middleware file handle leak on shutdown (#3074)

* Fix audit middleware file handle leak on shutdown

Store Auditor reference in Middleware struct to enable proper cleanup.
Update Close() to call Auditor.Close() for file-based logging.
Use NewAuditorWithTransport directly instead of CreateMiddlewareWithTransport.

This ensures audit log file handles are properly closed when the runner
shuts down, preventing resource leaks and ensuring logs are flushed.

* Remove unused audit middleware factory functions

Delete CreateMiddlewareWithTransport and GetMiddlewareFromFile functions
along with their tests. These functions had a design flaw where they
created an Auditor but only returned the middleware function, making it
impossible for callers to close file handles.

The CreateMiddleware factory now calls NewAuditorWithTransport directly,
making these wrapper functions unnecessary.

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

9 existing lines in 4 files now uncovered.

40567 of 66819 relevant lines covered (60.71%)

75.28 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
86.96
-3.52% pkg/audit/middleware.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
79.58
0.0% pkg/transport/proxy/httpsse/http_proxy.go
2
57.89
-3.51% pkg/transport/session/sse_session.go
2
53.86
-0.2% pkg/workloads/manager.go
3
71.85
-1.11% pkg/ignore/processor.go
Jobs
ID Job ID Ran Files Coverage
1 21693232976.1 05 Feb 2026 12:10AM UTC 491
60.71
GitHub Action Run
Source Files on build 21693232976
  • Tree
  • List 491
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21693232976
  • 9c87519a on github
  • Prev Build on main (#21687962352)
  • Next Build on main (#21699165841)
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