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

karellen / kubernator / 27163073273
82%

Build:
DEFAULT BRANCH: master
Ran 08 Jun 2026 09:17PM UTC
Jobs 5
Files 40
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

08 Jun 2026 07:53PM UTC coverage: 82.105% (+0.06%) from 82.044%
27163073273

push

github

web-flow
Fix test-only JSON patches treated as non-empty mutations (#108)

## Summary

- **Bug:** `_filter_resource_patch` always preserves `test` ops
(uid/resourceVersion guards), so when all mutation ops are filtered out
or absent, the patch list is still truthy. This causes spurious
"Patching resource" log entries in dump mode and unnecessary no-op PATCH
API calls in apply mode.
- **Fix:** Track whether any mutation (non-`test`) ops survive
filtering. Return an empty list when only `test` ops remain, since
test-only JSON Patches are no-ops.
- **Tests:** Added `k8s_filter_patch_tests.py` covering: test-only patch
returns empty, mutations preserved with tests, all mutations excluded
returns empty, partial exclude preserves remaining, empty input returns
empty.

## Test plan

- [x] All existing unit tests pass (`pyb -vX run_unit_tests`)
- [x] New `k8s_filter_patch_tests.py` covers the fix

1081 of 1496 branches covered (72.26%)

Branch coverage included in aggregate %.

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

4443 of 5232 relevant lines covered (84.92%)

4.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27163073273.1 08 Jun 2026 09:17PM UTC 40
81.66
GitHub Action Run
2 27163073273.2 08 Jun 2026 09:17PM UTC 40
82.03
GitHub Action Run
3 27163073273.3 08 Jun 2026 09:17PM UTC 40
81.66
GitHub Action Run
4 27163073273.4 08 Jun 2026 09:20PM UTC 40
81.66
GitHub Action Run
5 27163073273.5 08 Jun 2026 10:50PM UTC 40
81.66
GitHub Action Run
Source Files on build 27163073273
  • Tree
  • List 40
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ddf59cc5 on github
  • Prev Build on master (#27083097760)
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