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

go-pkgz / ctrl
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.2.1
DEFAULT BRANCH: master
Repo Added 25 Feb 2025 05:51AM UTC
Files 4
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

LAST BUILD ON BRANCH refs/tags/v0.2.1
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • fix/http-shutdown-completion
  • fix/time-dependent-tests
  • master
  • refs/tags/v0.1.0
  • refs/tags/v0.2.0
  • refs/tags/v0.2.1
  • update/testify-and-docs

19 Aug 2026 01:53AM UTC coverage: 94.924%. Remained the same
32208359791

push

github

web-flow
Replace timing-based waits in tests with synchronisation (#5)

Previously, the shutdown tests slept for a fixed period and then asserted that
the injected exit function had been called, which fails on a loaded machine
whenever the scheduler runs the timer later than the sleep. The injected exit
now reports through a channel, so each test waits exactly as long as it needs
to and fails on a deadline instead.

The second-signal case ran with a 500ms shutdown timeout while asserting on an
exit that the second signal was meant to cause, so the timeout could produce
that exit on its own; its timeout is now long enough that only the signal can.
The concurrent-signals case keeps a short timeout on purpose, as os/signal
drops a send to a full channel and a burst may therefore be delivered once, but
it now runs on a signal of its own and joins its senders, so nothing it sends
can reach a later case.

The timeout accuracy case measured from before the signal that starts the timer
and asserted a 150ms window around it. It now measures from the shutdown
callback, runs on its own signal, keeps the meaningful bound that the forced
exit never happens early, and leaves the upper one loose enough to survive a
delayed timer.

The HTTP tests no longer sleep before the first request, as the listener is
created before the server starts and already accepts connections; their
requests carry a client timeout, so a stuck server fails the test instead of
hanging it.

187 of 197 relevant lines covered (94.92%)

5.61 hits per line

Relevant lines Covered
Build:
Build:
197 RELEVANT LINES 187 COVERED LINES
5.61 HITS PER LINE
Source Files on master
  • Tree
  • List 4
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32208359791 refs/tags/v0.2.1 Replace timing-based waits in tests with synchronisation (#5) Previously, the shutdown tests slept for a fixed period and then asserted that the injected exit function had been called, which fails on a loaded machine whenever the scheduler runs t... push 19 Aug 2026 02:23AM UTC web-flow github
94.92
32206568911 master Replace timing-based waits in tests with synchronisation (#5) Previously, the shutdown tests slept for a fixed period and then asserted that the injected exit function had been called, which fails on a loaded machine whenever the scheduler runs t... push 19 Aug 2026 01:54AM UTC web-flow github
94.92
32206561610 master Bump CI actions and golangci-lint (#4) Previously, the workflow was pinned to actions/setup-go v3, actions/checkout v3 and golangci-lint-action v7 running golangci-lint v2.3.1, all several majors behind the rest of go-pkgz; this matches go-pkgz/r... push 19 Aug 2026 01:54AM UTC web-flow github
94.92
32206553662 master Bump testify to v1.12.0, correct the documented Go version (#2) The new testify no longer depends on go-spew and go-difflib, so both drop out of the module graph; it requires go 1.17, so the go directive stays at 1.23 and the package remains cons... push 19 Aug 2026 01:54AM UTC web-flow github
96.45
32205711858 master Fix HTTP server helper reporting success before shutdown finished (#3) Previously, RunHTTPServerWithContext published the serve result as soon as startFn returned, and http.Server.Shutdown makes Serve return ErrServerClosed at the start of the sh... push 19 Aug 2026 01:40AM UTC web-flow github
94.92
32204775392 fix/time-dependent-tests Replace timing-based waits in tests with synchronisation Previously, the shutdown tests slept for a fixed period and then asserted that the injected exit function had been called, which fails on a loaded machine whenever the scheduler runs the ti... Pull #5 19 Aug 2026 01:24AM UTC paskal github
97.59
32204739027 fix/http-shutdown-completion Fix HTTP server helper reporting success before shutdown finished Previously, RunHTTPServerWithContext published the serve result as soon as startFn returned, and http.Server.Shutdown makes Serve return ErrServerClosed at the start of the shutdow... Pull #3 19 Aug 2026 01:24AM UTC paskal github
94.92
32203604512 update/testify-and-docs Bump testify to v1.12.0, correct the documented Go version The new testify no longer depends on go-spew and go-difflib, so both drop out of the module graph; it requires go 1.17, so the go directive stays at 1.23 and the package remains consumabl... Pull #2 19 Aug 2026 01:05AM UTC paskal github
97.59
16870342526 refs/tags/v0.2.0 Update docs and migrate to golangci-lint v2 - Add missing ErrorOrFuncf and ErrorOrFuncWithErr functions to README - Enhance package documentation in ctrl.go with comprehensive godoc - Migrate golangci-lint configuration to v2 format - Update GitH... push 11 Aug 2025 03:42AM UTC umputun github
97.59
16870325261 master Update docs and migrate to golangci-lint v2 - Add missing ErrorOrFuncf and ErrorOrFuncWithErr functions to README - Enhance package documentation in ctrl.go with comprehensive godoc - Migrate golangci-lint configuration to v2 format - Update GitH... push 11 Aug 2025 03:40AM UTC umputun github
97.59
See All Builds (14)
  • Repo on GitHub
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