Repository navigation
fix(k3s): authorize galactica on kyber and surface client sync failures #1738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -44,4 +44,16 @@ When run bash -c "grep 'chmod 600' '$SCRIPT'" | |||||
| The output should include 'chmod 600' | ||||||
| End | ||||||
| End | ||||||
|
|
||||||
| Describe 'failure visibility' | ||||||
| It 'does not silently discard scp stderr' | ||||||
| When run bash -c "grep 'scp ' '$SCRIPT'" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: This regression test only greps the first line of the multi-line Prompt for AI agents
Suggested change
|
||||||
| The output should not include '2>/dev/null' | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regression test is too narrow to catch a recurrence: this assertion only looks at lines containing Consider checking the whole script instead, e.g.: It 'does not silently discard scp stderr'
When run bash -c "! grep -n '2>/dev/null' '$SCRIPT'"
The status should be success
Endor a multi-line grep that spans the scp invocation ( |
||||||
| End | ||||||
|
|
||||||
| It 'logs scp failures to stderr' | ||||||
| When run bash -c "grep 'failed to fetch kubeconfig' '$SCRIPT'" | ||||||
| The output should include 'failed to fetch kubeconfig' | ||||||
| End | ||||||
| End | ||||||
| End | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test 'does not silently discard scp stderr' is currently ineffective. Because
grep 'scp 'only returns the first line of the multi-linescpcommand, it does not see the redirection (which was on the following line due to the backslash). Consequently, this test would pass even if2>/dev/nullwere still present in the script. Usinggrep -A 1ensures the redirection line is included in the check.