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

synackd / ochami / 41886189620
93%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 06:25PM UTC
Jobs 1
Files 209
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

04 Nov 2026 06:17PM UTC coverage: 93.176% (+0.01%) from 93.164%
41886189620

push

github

web-flow
docs!: document patch flag limits, rename rfc7386 (#240)

* docs(client): note keyval patch encoding limits

NewKeyValPatchData picks the patch encoding from whether add or remove
items are present, and set and unset behave differently in the two
encodings. Nothing in its doc comment says so, so a caller can't tell
that adding an array operation makes a previously valid set or unset
fail.

Describe both behaviors, including that a null value is stored by an
RFC 6902 patch rather than deleting the key. State why the function
doesn't reconcile them: doing so needs the current document, which it
has no way to read.

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

* docs(man): describe strict --set/--unset handling

ochami-boot(1) and ochami-metadata(1) say --set creates a key that
doesn't exist, without saying that passing --add or --remove turns the
whole command into an RFC 6902 JSON Patch. That encoding rejects a set
whose parent key is missing and an unset whose key is missing, so
commands that follow the man page can fail with a 422 from the service.

Explain in each patch section which encoding is sent, that an RFC 6902
patch applies as a whole, and that empty fields count as missing
because the services omit them from the stored spec. Otherwise, an
unset of an empty field that works alone would look like a service bug
once --add is added.

Give the restrictions on --set and --unset their own paragraphs, and
state the merge patch behavior they differ from: missing parent keys
are created and absent keys are ignored. Point to --unset for removing
a key, since --set with a null value keeps a map key under RFC 6902
where a merge patch deletes it.

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

* docs(cmd): warn of strict --set/--unset handling

The patch commands' help describes the key/value flags as one method,
but passing --add or --remove changes how --set and --unset are sent
and when the ser... (continued)

57 of 57 new or added lines in 8 files covered. (100.0%)

248 existing lines in 28 files now uncovered.

13626 of 14624 relevant lines covered (93.18%)

762.16 hits per line

Coverage Regressions

Lines Coverage ∆ File
67
89.6
-4.05% pkg/client/smd/smd.go
39
89.71
1.09% cmd/discover/static/static.go
24
91.93
0.09% pkg/client/client.go
20
89.52
-5.35% pkg/client/cloud_init/cloud_init.go
14
93.55
-0.65% cmd/cloud_init/node/get.go
10
94.09
0.09% cmd/cloud_init/group/get.go
9
93.14
0.08% pkg/client/rcs/rcs.go
8
82.86
0.5% cmd/smd/compep/get.go
7
93.75
0.71% cmd/smd/group/update.go
6
82.61
0.79% cmd/pcs/transition/abort.go
6
95.45
0.15% internal/cli/errors.go
6
93.42
-3.84% pkg/client/pcs/pcs.go
4
87.88
-5.22% cmd/smd/group/member/add.go
2
95.12
0.46% cmd/cloud_init/node/set.go
2
96.06
0.3% cmd/smd/compep/delete.go
2
91.54
0.63% cmd/smd/component/delete.go
2
98.28
0.05% cmd/smd/group/add.go
2
96.15
0.32% cmd/smd/group/member/set.go
2
97.75
0.46% pkg/client/boot_service/bmc.go
2
97.8
0.43% pkg/client/boot_service/bootconfig.go
2
97.8
0.43% pkg/client/boot_service/node.go
2
91.78
0.74% pkg/client/bss/bss.go
2
97.75
0.46% pkg/client/metadata_service/defaults.go
2
97.75
0.46% pkg/client/metadata_service/group.go
2
97.75
0.46% pkg/client/metadata_service/instanceinfo.go
2
97.75
0.46% pkg/client/metadata_service/wireguardpeer.go
1
98.97
5.57% cmd/bss/boot/params/delete.go
1
96.67
2.48% cmd/cloud_init/group/delete.go
Jobs
ID Job ID Ran Files Coverage
1 41886189620.1 04 Nov 2026 06:25PM UTC 209
93.18
GitHub Action Run
Source Files on build 41886189620
  • Tree
  • List 209
  • Changed 59
  • Source Changed 58
  • Coverage Changed 56
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41886189620
  • de16f11a on github
  • Prev Build on main (#41718772477)
  • Next Build on main (#42056743969)
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