Skip to content

tests: introduce kubectlRun to avoid conflating stdin and stdout in tests#15151

Merged
alpeb merged 2 commits intomainfrom
alpeb/no-stderr-tests
Apr 9, 2026
Merged

tests: introduce kubectlRun to avoid conflating stdin and stdout in tests#15151
alpeb merged 2 commits intomainfrom
alpeb/no-stderr-tests

Conversation

@alpeb
Copy link
Copy Markdown
Member

@alpeb alpeb commented Apr 9, 2026

Introduce a new test helper TestHelper.KubectlRun (and mark TestHelper.Kubectl as deprecated), that keeps stdout and stderr separate when invoking kubectl. This avoids failures on Kubernetes 1.35+, where deprecation warnings for Endpoints are emitted alongside command output and can break deserialization in TestDestinationAPIStreamTracksRolloutEndpoints.

… tests

Introduce a new test helper `TestHelper.KubectlRun` (and mark `TestHelper.Kubectl` as deprecated), that keeps stdout and stderr separate when invoking `kubectl`. This avoids failures on Kubernetes 1.35+, where deprecation warnings for Endpoints are emitted alongside command output and can break deserialization in `TestDestinationAPIStreamTracksRolloutEndpoints`.
@alpeb alpeb requested a review from a team as a code owner April 9, 2026 18:09
@cratelyn cratelyn requested a review from adleong April 9, 2026 18:51
@alpeb alpeb merged commit cda7b5c into main Apr 9, 2026
67 of 69 checks passed
@alpeb alpeb deleted the alpeb/no-stderr-tests branch April 9, 2026 19:36
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