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

gsmlg-dev / elixir_caddy / dd7842039c5c30ad284913159b1fd381af53beac-PR-7
56%
main: 60%

Build:
Build:
LAST BUILD BRANCH: fix/enhancements-and-docs
DEFAULT BRANCH: main
Ran 09 Mar 2026 05:54AM UTC
Jobs 4
Files 25
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

09 Mar 2026 05:53AM UTC coverage: 55.887% (+2.3%) from 53.616%
dd7842039c5c30ad284913159b1fd381af53beac-PR-7

Pull #7

github

GSMLG-BOT
fix(admin-api): fix contract mismatches and harden error handling

Fixes five API contract bugs that caused CaseClauseError and BadMapError
exceptions on the startup config-push path:

- External.get_caddyfile/0: match bare map from Api.get_config/0
- External.push_initial_config/0: consume bare map from Api.adapt/1
- External.push_initial_config/0: consume %{status:} struct from Api.load/1
- External.execute_shell_command/1: guard against empty command string
- Api.load/1: guard against nil from get_config/0

Also improves error handling in Request.do_recv/3 by propagating read_body
errors and using safe Jason.decode/1 instead of decode!. Replaces direct
Logger calls with Caddy.Telemetry.log_debug to comply with Constitution
Principle II. Adds comprehensive behavioral test coverage for all scenarios.

All public API signatures remain unchanged. No new dependencies added.
Pull Request #7: fix(admin-api): fix contract mismatches and harden error handling

10 of 18 new or added lines in 3 files covered. (55.56%)

2 existing lines in 2 files now uncovered.

769 of 1376 relevant lines covered (55.89%)

14.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
3.03
-0.2% lib/caddy/admin/request.ex

Coverage Regressions

Lines Coverage ∆ File
1
3.03
-0.2% lib/caddy/admin/request.ex
1
55.43
31.26% lib/caddy/server/external.ex
Jobs
ID Job ID Ran Files Coverage
1 dd7842039c5c30ad284913159b1fd381af53beac-PR-7.1 09 Mar 2026 05:54AM UTC 25
55.89
GitHub Action Run
2 dd7842039c5c30ad284913159b1fd381af53beac-PR-7.2 09 Mar 2026 05:54AM UTC 25
55.89
GitHub Action Run
3 dd7842039c5c30ad284913159b1fd381af53beac-PR-7.3 09 Mar 2026 05:54AM UTC 25
55.89
GitHub Action Run
4 dd7842039c5c30ad284913159b1fd381af53beac-PR-7.4 09 Mar 2026 05:54AM UTC 25
55.89
GitHub Action Run
Source Files on build dd7842039c5c30ad284913159b1fd381af53beac-PR-7
  • Tree
  • List 25
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #7
  • PR Base - main (#27BC7748...)
  • Delete
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