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

umputun / remark42 / 28682472386
84%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2026 08:43PM UTC
Jobs 1
Files 53
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

03 Jul 2026 08:40PM UTC coverage: 84.38% (-0.06%) from 84.435%
28682472386

push

github

umputun
feat(api): adopt enforcing rest.Timeout, drop local cooperative timeout

go-pkgz/rest v1.22.0 ships an enforcing Timeout middleware (net/http.TimeoutHandler
style): it runs the handler with a deadline and returns 504 at the deadline even if
the handler ignores the context - unlike the local cooperative timeout, which only
cancelled the context and never actually stopped a stuck handler.

Replace the local timeout with rest.Timeout on every route with a bounded response.
The streaming and long-polling routes are deliberately left without it, since the
enforcing timeout buffers the whole response in memory and aborts at the deadline:
- GET /api/v1/userdata and GET /api/v1/admin/export stream gzipped exports
- GET /api/v1/admin/wait long-polls for up to 15m
- POST /api/v1/admin/import[/form] and /remap ingest large uploads

Delete the local timeout middleware and its test; the enforcing behaviour is covered
by go-pkgz/rest. TestRouteTimeout locks the enforcing-vs-exempt contract in this build.

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

9 existing lines in 2 files now uncovered.

6396 of 7580 relevant lines covered (84.38%)

36.84 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
95.24
-0.57% backend/app/rest/api/middleware.go
2
83.67
-0.2% backend/app/cmd/server.go
Jobs
ID Job ID Ran Files Coverage
1 28682472386.1 03 Jul 2026 08:43PM UTC 53
84.38
GitHub Action Run
Source Files on build 28682472386
  • Tree
  • List 53
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b33025a7 on github
  • Prev Build on master (#28544463906)
  • Next Build on master (#28682486334)
  • 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