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

OpenCHAMI / ochami / 36641633543
93%

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 10:50PM UTC
Jobs 1
Files 195
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

29 Sep 2026 10:47PM UTC coverage: 12.061%. Remained the same
36641633543

push

github

web-flow
fix(metadata): fix nil-pointer panic in patch commands from wrong flag name (#159)

metadata {defaults,group,instance,peer} patch's --set/--unset/--add/
--remove branch checked cmd.Flag("patch-format").Changed, but no flag
by that name is registered on these commands — the actual flag is
"patch-method" (Flags().VarP(&formatPatch, "patch-method", ...) a few
lines below), matching what the command's own Long/Example text and
its boot command family equivalent (cmd/boot/{bmc,config,node}/
patch.go, which correctly checks "patch-method") already call it.
cmd.Flag() returns nil for an unregistered name, so calling .Changed
on it panicked.

This made ochami metadata <resource> patch <id> --set k=v (the
documented dot-notation shorthand patch, one of each command's own
Example entries) crash unconditionally, regardless of whether
--patch-method was itself passed.

Signed-off-by: Devon Bautista <17506592+synackd@users.noreply.github.com>

0 of 12 new or added lines in 4 files covered. (0.0%)

24 existing lines in 4 files now uncovered.

1906 of 15803 relevant lines covered (12.06%)

0.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
0.0
0.0% cmd/metadata/defaults/patch.go
3
0.0
0.0% cmd/metadata/group/patch.go
3
0.0
0.0% cmd/metadata/instance/patch.go
3
0.0
0.0% cmd/metadata/peer/patch.go

Coverage Regressions

Lines Coverage ∆ File
6
0.0
0.0% cmd/metadata/defaults/patch.go
6
0.0
0.0% cmd/metadata/group/patch.go
6
0.0
0.0% cmd/metadata/instance/patch.go
6
0.0
0.0% cmd/metadata/peer/patch.go
Jobs
ID Job ID Ran Files Coverage
1 36641633543.1 29 Sep 2026 10:50PM UTC 195
12.06
GitHub Action Run
Source Files on build 36641633543
  • Tree
  • List 195
  • Changed 4
  • Source Changed 4
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36641633543
  • 97976641 on github
  • Prev Build on main (#34889474585)
  • Next Build on main (#37384093605)
  • 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