Skip to content

ROX-30941: Correct 'getDeduperAction' details#17108

Merged
vikin91 merged 2 commits intomasterfrom
piotr/ROX-30941-cleanup
Oct 7, 2025
Merged

ROX-30941: Correct 'getDeduperAction' details#17108
vikin91 merged 2 commits intomasterfrom
piotr/ROX-30941-cleanup

Conversation

@vikin91
Copy link
Contributor

@vikin91 vikin91 commented Oct 2, 2025

Description

Clarify situation with 'deduperActionUpdateProcess' for connections.

Renames getDeduperAction into getConnectionDeduperAction to make clear that this function is used only in connection enrichment.
Remove case TransitionTypeOpen2Open returning deduperActionUpdateProcess as it does not apply for connections.
The correct deduper action for Open->Open transition is deduperActionNoop.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

This change does not change behavior.
Unit tests are sufficient to validate that - those were run locally and on CI.

@vikin91 vikin91 requested a review from a team as a code owner October 2, 2025 13:57
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes - here's some feedback:

  • Please search and update any remaining references, including tests, to the old getDeduperAction name to prevent dangling usages.
  • Add a unit test for TransitionTypeOpen2Open in getConnectionDeduperAction to explicitly verify it now returns deduperActionNoop.
  • Remove or deprecate the old getDeduperAction implementation if it’s no longer in use, to avoid confusion going forward.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Please search and update any remaining references, including tests, to the old getDeduperAction name to prevent dangling usages.
- Add a unit test for TransitionTypeOpen2Open in getConnectionDeduperAction to explicitly verify it now returns deduperActionNoop.
- Remove or deprecate the old getDeduperAction implementation if it’s no longer in use, to avoid confusion going forward.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@vikin91
Copy link
Contributor Author

vikin91 commented Oct 2, 2025

  • Please search and update any remaining references, including tests, to the old getDeduperAction name to prevent dangling usages.

Did that - all clear.

  • Add a unit test for TransitionTypeOpen2Open in getConnectionDeduperAction to explicitly verify it now returns deduperActionNoop.

This is an unexported implementation detail and I don't think that separate dedicated unit test coverage is necessary. This code is covered in other tests with larger scope.

  • Remove or deprecate the old getDeduperAction implementation if it’s no longer in use, to avoid confusion going forward.

This is not part of an exported contract, so no need for deprecating.

@vikin91 vikin91 requested a review from lvalerom October 2, 2025 14:01
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at bf2cc4a.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.x-950-gbf2cc4af2e.

@codecov
Copy link

codecov bot commented Oct 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.75%. Comparing base (daa25a2) to head (bf2cc4a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #17108      +/-   ##
==========================================
- Coverage   48.78%   48.75%   -0.03%     
==========================================
  Files        2712     2712              
  Lines      202407   202403       -4     
==========================================
- Hits        98746    98687      -59     
- Misses      95876    95925      +49     
- Partials     7785     7791       +6     
Flag Coverage Δ
go-unit-tests 48.75% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@openshift-ci
Copy link

openshift-ci bot commented Oct 2, 2025

@vikin91: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/gke-qa-e2e-tests bf2cc4a link false /test gke-qa-e2e-tests
ci/prow/gke-sensor-integration-tests bf2cc4a link false /test gke-sensor-integration-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

@lvalerom lvalerom left a comment

Choose a reason for hiding this comment

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

LGTM

@vikin91
Copy link
Contributor Author

vikin91 commented Oct 6, 2025

/retest-required

@vikin91
Copy link
Contributor Author

vikin91 commented Oct 6, 2025

/test gke-upgrade-tests

@vikin91 vikin91 merged commit 5146601 into master Oct 7, 2025
102 of 105 checks passed
@vikin91 vikin91 deleted the piotr/ROX-30941-cleanup branch October 7, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants