Skip to content

Conversation

aanm
Copy link
Member

@aanm aanm commented May 23, 2025

Remove leftover HELLO.

Fixes: 8438b08 ("pkg/egressgateway: add ipv6 euqivalent bpf map userspace wrapper")

@aanm aanm requested a review from rgo3 May 23, 2025 14:33
@aanm aanm requested a review from a team as a code owner May 23, 2025 14:33
@aanm aanm added area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. release-note/misc This PR makes changes that have no direct user impact. feature/egress-gateway Impacts the egress IP gateway feature. labels May 23, 2025
@aanm aanm requested a review from ysksuzuki May 23, 2025 14:33
@aanm aanm enabled auto-merge May 23, 2025 14:33
@aanm
Copy link
Member Author

aanm commented May 23, 2025

/test

Remove leftover HELLO.

Fixes: 8438b08 ("pkg/egressgateway: add ipv6 euqivalent bpf map userspace wrapper")
Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm force-pushed the pr/remove-fmts branch from 5a0ecdb to 1971297 Compare May 23, 2025 15:14
@aanm
Copy link
Member Author

aanm commented May 23, 2025

/test

Copy link
Contributor

@rgo3 rgo3 left a comment

Choose a reason for hiding this comment

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

I don't even remember what I was trying to debug there 😢

@joestringer
Copy link
Member

joestringer commented May 23, 2025

@rgo3 @nathanjsweet @pippolo84 @julianwiedmann @viktor-kurchenko @ldelossa How did this slip through in #38452 ? I'd like to dig a bit more to understand whether there is a systematic problem here in the way that we approach development and reviews. Bear with me if you think these concerns are overblown.

I'm not so concerned about the content of the change here itself, admittedly it's in test code which is less critical. What concerns me more is that at no point during development or review did someone look at this line of code and make a judgement value about whether it makes sense. Are we all consistent in the belief that when you review a change, you need to put eyes on every line of code for your codeowners and decide if you understand how that code fits into the PR?

I would expect at least two people to look at this line of code before it goes into the tree: the contributor and the reviewer for the code owner area. I can understand if there are mistakes, but that's partly why we have a system that involves at least two people looking at the code.

@pippolo84
Copy link
Member

pippolo84 commented May 23, 2025

I'd like to dig a bit more to understand whether there is a systematic problem here in the way that we approach development and reviews.

I remember reviewing that test too, but probably because I was focused on the coverage of the IPv6 policy map operations and the consistency with the IPv4 counterpart I must have missed the offending line. My mistake, sorry for that.

I won't say there is a systematic problem, though, I remember catching many similar leftovers in many other PRs. I wonder if there is something we can do to prevent this from happening again with a linting of some sort, but a quick search in the codebase reveal some legitimate usages of fmt.Println in other tests. A further reason to be extra careful in future reviews.

Are we all consistent in the belief that when you review a change, you need to put eyes on every line of code for your codeowners and decide if you understand how that code fits into the PR?

Sure, this has always been clear. Again, will put extra care to avoid similar mistakes in the future.

@pippolo84 pippolo84 requested review from pippolo84 and removed request for ysksuzuki May 23, 2025 21:33
@aanm aanm added this pull request to the merge queue May 23, 2025
Merged via the queue into main with commit 2c7bb26 May 23, 2025
212 of 213 checks passed
@aanm aanm deleted the pr/remove-fmts branch May 23, 2025 21:45
@maintainer-s-little-helper maintainer-s-little-helper bot added ready-to-merge This PR has passed all tests and received consensus from code owners to merge. labels May 23, 2025
@viktor-kurchenko
Copy link
Contributor

@rgo3 @nathanjsweet @pippolo84 @julianwiedmann @viktor-kurchenko @ldelossa How did this slip through in #38452 ? I'd like to dig a bit more to understand whether there is a systematic problem here in the way that we approach development and reviews. Bear with me if you think these concerns are overblown.

I'm not so concerned about the content of the change here itself, admittedly it's in test code which is less critical. What concerns me more is that at no point during development or review did someone look at this line of code and make a judgement value about whether it makes sense. Are we all consistent in the belief that when you review a change, you need to put eyes on every line of code for your codeowners and decide if you understand how that code fits into the PR?

I would expect at least two people to look at this line of code before it goes into the tree: the contributor and the reviewer for the code owner area. I can understand if there are mistakes, but that's partly why we have a system that involves at least two people looking at the code.

No excuse, I'm super sorry for that. Probably I didn't pay enough attention to the test.
I'll put extra care into avoiding it in the future!

@rgo3
Copy link
Contributor

rgo3 commented May 26, 2025

I’m not sure if this points to a broader systemic issue, but my sense is that this kind of oversight can easily happen in larger PRs, especially when a significant portion of the diff comes from boilerplate or already-reviewed code (e.g., changes in indentation). Particularly in cases like this, where tests are extended, and the review potentially focuses largely on the comparison of the tests functionality (v4 vs. v6), the chances of overlooking a typo or a unwanted print statement in order to maintain a certain velocity will never be 0.

So if we want to avoid such slip ups at all cost, I agree with @pippolo84 that we should have a linter workflow that points out any new occurrences of print statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. feature/egress-gateway Impacts the egress IP gateway feature. 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
None yet
Development

Successfully merging this pull request may close these issues.

5 participants