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

opendefensecloud / solution-arsenal / 39598200574
79%

Build:
DEFAULT BRANCH: main
Ran 21 Oct 2026 12:30PM UTC
Jobs 1
Files 100
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

21 Oct 2026 12:15PM UTC coverage: 79.557% (+0.1%) from 79.424%
39598200574

push

github

web-flow
refactor(controller): make condition reasons constants (#885)

## What
Condition reasons in the controllers are now `Reason*` constants next to
the `ConditionType*` ones. Controllers and unit tests use them, string
values are unchanged.

## Why
Reasons are part of the status contract -> a typo or rename in a literal
silently breaks consumers. `NotGranted`, `NotFound` and `Resolved` are
shared by the Release and Target reconcilers, so they live once in
`release_controller.go`.

e2e keeps the literals on purpose, its a black-box check of the wire
values.

## Testing
Pure refactor, no behavior change.

```
$ go build ./... && go vet ./pkg/controller/
$ go test ./pkg/controller/
ok  	go.opendefense.cloud/solar/pkg/controller	198.147s
```

## Checklist
- [x] Tests added/updated (assertions switched to the constants)
- [x] No breaking changes
- [x] Readable commit history (squashed and cleaned up as desired)
- [x] AI code review considered and comments resolved

Closes #860

31 of 38 new or added lines in 5 files covered. (81.58%)

1 existing line in 1 file now uncovered.

5390 of 6775 relevant lines covered (79.56%)

34.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
78.56
0.57% pkg/controller/target_controller.go
2
90.32
0.0% pkg/controller/targetreport_controller.go
1
87.07
0.43% pkg/controller/rendertask_controller.go

Coverage Regressions

Lines Coverage ∆ File
1
89.22
-0.98% pkg/discovery/runner.go
Jobs
ID Job ID Ran Files Coverage
1 39598200574.1 21 Oct 2026 12:30PM UTC 100
79.56
GitHub Action Run
Source Files on build 39598200574
  • Tree
  • List 100
  • Changed 7
  • Source Changed 5
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39598200574
  • 1332a1c5 on github
  • Prev Build on main (#39584061575)
  • Next Build on main (#39783242068)
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