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

checker: Fix incorrect checker for ExportedEqual() #24373

Merged

Conversation

christarazi
Copy link
Member

When using checker.ExportedEqual(), it was using the standard Equals
checker under-the-hood, but this is incorrect. Fix it to use the correct
checker.

In the commit introducing the bug, there was no direct usage of
checker.ExportedEqual(), but rather checker.ExportedEqual (note the
plural). Subtle!

Discovered while working on improving policy unit tests.

Fixes: f4407e7 ("checker: Add ExportedEquals checker")

Signed-off-by: Chris Tarazi chris@isovalent.com

When using checker.ExportedEqual(), it was using the standard Equals
checker under-the-hood, but this is incorrect. Fix it to use the correct
checker.

In the commit introducing the bug, there was no direct usage of
checker.ExportedEqual(), but rather checker.ExportedEqual (note the
plural). Subtle!

Discovered while working on improving policy unit tests.

Fixes: f4407e7 ("checker: Add ExportedEquals checker")

Signed-off-by: Chris Tarazi <chris@isovalent.com>
@christarazi christarazi added area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact. labels Mar 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Mar 14, 2023
@christarazi
Copy link
Member Author

cc @jrajahalme

@christarazi christarazi added needs-backport/1.11 needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Mar 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.13.1 Mar 14, 2023
@christarazi christarazi marked this pull request as ready for review March 14, 2023 23:08
@christarazi christarazi requested a review from a team as a code owner March 14, 2023 23:08
Copy link
Member

@jrajahalme jrajahalme left a comment

Choose a reason for hiding this comment

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

Thanks for the fix, this likely went unnoticed as checker.ExportedEqual() is not used in the current repo.

@nebril nebril added this to Needs backport from master in 1.13.2 Mar 15, 2023
@nebril nebril removed this from Needs backport from master in 1.13.1 Mar 15, 2023
@christarazi christarazi added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 15, 2023
@christarazi
Copy link
Member Author

Marking ready to merge as we have approving reviews and we don't need a full CI run.

@borkmann borkmann merged commit 9ac5b53 into cilium:master Mar 15, 2023
@christarazi christarazi deleted the pr/christarazi/fix-checker-exportedequals branch March 15, 2023 22:55
@NikAleksandrov NikAleksandrov mentioned this pull request Mar 20, 2023
5 tasks
@NikAleksandrov NikAleksandrov mentioned this pull request Mar 20, 2023
9 tasks
@NikAleksandrov NikAleksandrov mentioned this pull request Mar 23, 2023
29 tasks
@NikAleksandrov NikAleksandrov added backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. and removed needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Mar 23, 2023
@youngnick youngnick added backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. and removed backport-pending/1.11 labels Mar 23, 2023
@jibi jibi added backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. labels Apr 7, 2023
@gentoo-root gentoo-root moved this from Needs backport from master to Backport done to v1.13 in 1.13.2 Apr 14, 2023
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 backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.13.2
Backport done to v1.13
Status: Released
Development

Successfully merging this pull request may close these issues.

None yet

7 participants