Skip to content

fix: replace StatusSkipped with StatusCompliant in all checks#32

Merged
sebrandon1 merged 1 commit intomainfrom
remove-status-skipped
Apr 8, 2026
Merged

fix: replace StatusSkipped with StatusCompliant in all checks#32
sebrandon1 merged 1 commit intomainfrom
remove-status-skipped

Conversation

@sebrandon1
Copy link
Copy Markdown
Member

Summary

  • Replace all 96 StatusSkipped returns in check implementations with StatusCompliant
  • Check functions should only return Compliant or NonCompliant -- skip decisions belong to the consumer
  • When there are no resources to validate, the correct answer is Compliant (no violations found)
  • The StatusSkipped constant is retained for backward compatibility

Context

The certsuite PoC migration (certsuite #3554) revealed that StatusSkipped returns cause the certsuite to record checks as skipped in claim files, which QE tests interpret as failures.

Test plan

  • go test ./... all tests pass
  • golangci-lint 0 issues

Check functions should only return Compliant or NonCompliant. Skip
decisions belong to the consumer (certsuite's WithSkipCheckFn), not
the check implementation. When there are no resources to validate,
the correct answer is Compliant (no violations found), not Skipped.

Replaces 96 StatusSkipped returns across all check categories with
StatusCompliant. The StatusSkipped constant is retained for backward
compatibility but is no longer used by any check function.
@sebrandon1 sebrandon1 merged commit 46b9734 into main Apr 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant