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

dunglas / mercure / 25045912896
84%
master: 93%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 28 Apr 2026 09:50AM UTC
Jobs 1
Files 23
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

28 Apr 2026 09:48AM UTC coverage: 83.829% (-0.06%) from 83.886%
25045912896

push

github

web-flow
feat(chart): support readOnlyRootFilesystem out of the box (#1226)

* feat(chart): mount /config and /tmp so readOnlyRootFilesystem works

Caddy writes autosave config under XDG_CONFIG_HOME=/config, and /tmp is
useful general-purpose scratch. Until now both were just the rootfs
writable layer, so `securityContext.readOnlyRootFilesystem: true` would
crash the pod on first write.

Mount /config and /tmp as emptyDir unconditionally. /data stays
conditional on persistence (existing behaviour); under
`readOnlyRootFilesystem: true` with the default BoltDB transport,
enable persistence so /data is a writable PVC. Other transports
(Redis, etc.) do not touch /data, so RO rootfs works out of the box.

Documents the chart's rootless+RO-rootfs example in docs/hub/install.md.

* fix(bolt): create the data directory if missing

When the bolt transport's path resolves to a fresh emptyDir or PVC, the
parent directory does not exist (the host image's pre-created
`/data/caddy` is masked by the mount), and `bolt.Open` fails with
`open .../mercure.db: no such file or directory`.

`MkdirAll` the parent in `NewBoltTransport`, before opening the file,
so any caller of the lib (not just the Caddy module) is covered.
No-op when the directory already exists.

4 of 6 new or added lines in 1 file covered. (66.67%)

1747 of 2084 relevant lines covered (83.83%)

49.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
80.37
-0.48% bolt.go
Jobs
ID Job ID Ran Files Coverage
1 0 - 25045912896.1 28 Apr 2026 09:50AM UTC 23
83.83
GitHub Action Run
Source Files on build 25045912896
  • Tree
  • List 23
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d9fa350b on github
  • Prev Build on main (#25044174714)
  • Next Build on main (#25046991551)
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