ci: run operator unit tests - #1838
Conversation
Arbitration summary — PR #1838 (
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/v3.0 #1838 +/- ##
================================================
+ Coverage 76.72% 76.80% +0.08%
================================================
Files 472 472
Lines 50356 50356
================================================
+ Hits 38634 38678 +44
+ Misses 8324 8277 -47
- Partials 3398 3401 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
fa65489 to
6b7bab8
Compare
✅ Approve — automated reviewThe operator test job is unconditional, uses the pinned Nix environment, and gates both image publication jobs. The added invariant checker and tests align with the intended CI contract. No findings. |
What changed
Reproduction
Target base: ae5346f
Default-tag test-bearing packages existed in misc/operator, while GitHub Actions only generated, linted, and built that module. No PR job ran its unit tests.
Pinned Go 1.26.5 baseline:
The initial local attempts failed before repository compilation because an ambient Homebrew Go 1.27 GOROOT overrode the Nix Go 1.26.5 binary. Clearing GOROOT resolved the environment; this PR explicitly clears it in the job command.
Scope
No integration/envtest tags and no Chainsaw coverage are added or changed.
Required CI integration
PR #1835 is still open and owns the in-flight Required CI aggregate. This PR intentionally does not duplicate or edit that aggregate. If #1835 merges first, this branch must be synchronized and Tests-Operator added to Required-CI.needs under its documented contract.
Validation
Risk
LOW: CI and repository-invariant tooling only; production and operator runtime code are unchanged.