Skip to content

fix(ci): kyverno self-test must fail on the flipped case (DRF-67) - #75

Merged
EurusDevSec merged 1 commit into
mainfrom
hoang/drf-67-kyverno-selftest-fix
Nov 24, 2026
Merged

EurusDevSec merged 1 commit into
mainfrom
hoang/drf-67-kyverno-selftest-fix

Conversation

@EurusDevSec

Copy link
Copy Markdown
Owner

Why

In PR #74's CI log the self-test printed exit 1: no summary: the flipped run failed for another reason, not because of the flipped case, and the self-test still passed. Likely cause: mktemp -d is 0700 and the kyverno-cli image runs as a non-root user (Docker Desktop on Windows does not enforce this, so it did not show locally). Unconfirmed until this PR's CI.

What

gitops/tests/kyverno_test.sh:

  • chmod -R a+rX on the temp copy.
  • The flipped run must report … tests passed and N tests failed with N >= 1; otherwise the gate fails and prints the CLI output.

Verification

  • Local: 14 passed 0 failed; self-test 11 tests passed and 3 tests failed; PASS kyverno test and self-test.
  • This PR's kyverno job must show the same self-test line (not no summary).

🤖 Generated with Claude Code

On the GitHub runner the self-test run printed "exit 1: no summary":
it failed for another reason (likely the 0700 mktemp dir unreadable by
the non-root CLI user), so the self-test passed without proving
anything. Make the copy world-readable and require the flipped run to
report "N tests failed" with N >= 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings November 24, 2026 15:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@EurusDevSec
EurusDevSec merged commit 4e70d4e into main Nov 24, 2026
3 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.

2 participants