Skip to content
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

tests: Add exceptions for error logs check #2432

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

jrajahalme
Copy link
Member

Add "Failed to update lock:" and "Failed to release lock:" to log level error excpetions, as these errors originate from vendored code and we can not silence them otherwise. This prevents CI flake like this:

❌ Found 1 logs in kind-kind/kube-system/cilium-operator-799cff46cd-n2lfz (cilium-operator) matching list of errors that must be investigated:
level=error msg="Failed to update lock: Operation cannot be fulfilled on leases.coordination.k8s.io "cilium-operator-resource-lock": the object has been modified; please apply your changes to the latest version and try again" subsys=klog (1 occurrences)

Add "Failed to update lock:" and "Failed to release lock:" to log level
error excpetions, as these errors originate from vendored code and we can
not silence them otherwise. This prevents CI flake like this:

  ❌ Found 1 logs in kind-kind/kube-system/cilium-operator-799cff46cd-n2lfz (cilium-operator) matching list of errors that must be investigated:
level=error msg="Failed to update lock: Operation cannot be fulfilled on leases.coordination.k8s.io \"cilium-operator-resource-lock\": the object has been modified; please apply your changes to the latest version and try again" subsys=klog (1 occurrences)

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme added area/CI Continuous Integration testing issue or flake ci/flake Issues tracking failing (integration or unit) tests. labels Mar 19, 2024
@jrajahalme jrajahalme requested review from a team as code owners March 19, 2024 11:55
Copy link
Contributor

@ldelossa ldelossa left a comment

Choose a reason for hiding this comment

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

LGTM

@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 Mar 19, 2024
@michi-covalent michi-covalent merged commit 8bce24c into main Mar 19, 2024
13 checks passed
@michi-covalent michi-covalent deleted the error-check-exceptions branch March 19, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ci/flake Issues tracking failing (integration or unit) tests. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants