Skip to content

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Nov 28, 2024

Since commit 5417a3f ("cli/connectivity: Check for unexpected warning logs") we check for unexpected warnings in logs as part of the connectivity checks. This leads to some fallout in cilium/cilium-cli when pulling in that change1 for the upcoming cilium-cli v0.16.21 release, mainly due to the fact that Hubble and Hubble UI are enabled in the cilium/cilium-cli workflows.

To work around that and don't block the next release of cilium-cli for too long, allow to specify log levels to check by means of a hidden flag (by default, errors and warnings are both still checked). This allows to skip checking of warnings logs temporarily. In the long term all these warning logs should be addressed by either fixing their root cause, demoting their level or adding them to the ignore list.

/cc @pchaigno

Footnotes

  1. https://github.com/cilium/cilium-cli/pull/2869

@tklauser tklauser added release-note/ci This PR makes changes to the CI. cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Nov 28, 2024
@tklauser tklauser requested review from a team as code owners November 28, 2024 09:41
@tklauser tklauser force-pushed the pr/tklauser/cli-check-error-levels branch from dce1e60 to ff689f4 Compare November 28, 2024 09:45
@tklauser
Copy link
Member Author

/test

Copy link
Member

@mhofstetter mhofstetter left a comment

Choose a reason for hiding this comment

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

LGTM - thanks!

Since commit 5417a3f ("cli/connectivity: Check for unexpected
warning logs") we check for unexpected warnings in logs as part of the
connectivity checks. This leads to some fallout in cilium/cilium-cli
when pulling in that change[^1] for the upcoming cilium-cli v0.16.21
release, mainly due to the fact that Hubble and Hubble UI are enabled in
the cilium/cilium-cli workflows.

To work around that and don't block the next release of cilium-cli for
too long, allow to specify log levels to check by means of a hidden
flag (by default, errors and warnings are both still checked). This
allows to skip checking of warnings logs temporarily. In the long term
all these warning logs should be addressed by either fixing their root
cause, demoting their level or adding them to the ignore list.

[^1]: cilium/cilium-cli#2869

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser force-pushed the pr/tklauser/cli-check-error-levels branch from ff689f4 to aa81725 Compare November 28, 2024 09:51
@tklauser
Copy link
Member Author

/test

@tklauser tklauser enabled auto-merge November 28, 2024 10:13
@tklauser tklauser added this pull request to the merge queue Nov 28, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 28, 2024
Merged via the queue into main with commit 66377ae Nov 28, 2024
210 checks passed
@tklauser tklauser deleted the pr/tklauser/cli-check-error-levels branch November 28, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants