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

boinger / confvis / 24609176026
88%

Build:
DEFAULT BRANCH: main
Ran 18 Apr 2026 04:43PM UTC
Jobs 1
Files 75
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

18 Apr 2026 04:00PM UTC coverage: 86.634% (+0.5%) from 86.156%
24609176026

push

github

boinger
feat(history): cap history growth via Prune/PruneRef + --history-max-entries

AppendToFile and AppendToRef had no retention: history grew forever, and
Last(n) had to load every entry into memory before returning the last N.
For long-lived CI dogfood pipelines this is slow over time and wasteful
at read time.

Add history.Prune(path, maxEntries) and history.PruneGitRef(ref,
maxEntries) — symmetric helpers for the two storage backends. File
backend uses write-to-sibling-tempfile + atomic rename so readers never
see a partial file. Ref backend reuses the existing blob
read-modify-write flow. Both are no-ops when the input has <=maxEntries
or when maxEntries <=0.

Expose via a new --history-max-entries flag on `confvis gauge`,
default 5000 (0 or negative disables pruning). CLI wires through
GaugeDeps as HistoryPruner / GitRefPruner so tests can inject mocks.
appendToHistory calls the pruner after a successful append; prune
failures surface as errors, preserving the pre-prune append so the
next run retries.

10 new tests (5 file-backend, 5 git-ref-backend) cover trims-to-last-N,
no-op-under-cap, disabled-on-zero-or-negative, missing-input-no-op,
and order preservation.

50 of 82 new or added lines in 5 files covered. (60.98%)

25 existing lines in 1 file now uncovered.

4453 of 5140 relevant lines covered (86.63%)

15.02 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
80.77
-6.53% internal/history/history.go
9
61.62
-2.95% internal/cli/config.go
6
90.16
-9.84% internal/cli/gauge_history.go
3
74.37
-1.01% internal/cli/gauge.go
2
82.22
1.14% internal/history/gitref.go

Coverage Regressions

Lines Coverage ∆ File
25
88.24
0.28% internal/checks/github.go
Jobs
ID Job ID Ran Files Coverage
1 24609176026.1 18 Apr 2026 04:43PM UTC 75
86.63
GitHub Action Run
Source Files on build 24609176026
  • Tree
  • List 75
  • Changed 9
  • Source Changed 7
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24609176026
  • 907b75d0 on github
  • Prev Build on main (#24607856910)
  • Next Build on main (#24609402716)
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