Repository navigation
fix(ci): kyverno self-test must fail on the flipped case (DRF-67) - #75
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 -dis0700and 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+rXon the temp copy.… tests passed and N tests failedwith N >= 1; otherwise the gate fails and prints the CLI output.Verification
11 tests passed and 3 tests failed;PASS kyverno test and self-test.kyvernojob must show the same self-test line (notno summary).🤖 Generated with Claude Code