Skip to content

Conversation

@oeqqwq
Copy link
Member

@oeqqwq oeqqwq commented May 7, 2025

No description provided.

@oeqqwq oeqqwq requested review from huocun-ant and tyrone-yu May 7, 2025 02:26
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Hello @oeqqwq, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request focuses on updating the SecretFlow PSI library. It includes dependency updates in the MODULE.bazel file, modifications to the RELEASE.md file to reflect version changes and feature updates, and the removal of a configuration option in the RR22 protocol. Additionally, there are updates to the documentation, specifically in the Chinese translation of the PSI protocol introduction, and some updates to example configurations.

Highlights

  • Dependency Updates: The MODULE.bazel file has been updated to remove specific dependencies and overrides, streamlining the build process.
  • Release Notes: The RELEASE.md file has been modified to reflect changes in versions, API updates, feature additions, improvements, and bug fixes.
  • Configuration Changes: The skip_duplicates_check option has been removed from the RR22 protocol configuration files.
  • Documentation Updates: The Chinese translation of the PSI protocol introduction has been updated with minor text and formatting adjustments.

Changelog

Click here to see the changelog
  • MODULE.bazel
    • Removed gRPC override.
    • Removed brpc and org_interconnection dependencies.
    • Removed prometheus-cpp dependency.
  • RELEASE.md
    • Added release notes for v0.5.0beta, v0.4.2beta, and v0.4.0beta.
    • Documented API changes, feature additions, improvements, and bug fixes.
  • benchmark/docker-compose/config/rr22_receiver_recovery.json
    • Removed skip_duplicates_check option.
  • benchmark/docker-compose/config/rr22_sender_recovery.json
    • Removed skip_duplicates_check option.
  • docs/locale/zh_CN/LC_MESSAGES/development/psi_protocol_intro.po
    • Updated POT-Creation-Date to 2025-04-28.
    • Made minor text and formatting adjustments to the Chinese translation.
  • docs/locale/zh_CN/LC_MESSAGES/reference/psi_config.po
    • Removed deprecated messages related to DDH, ecdh-oprf, and Blazing Fast PSI.
  • docs/locale/zh_CN/LC_MESSAGES/user_guide/apsi_benchmark.po
    • Updated POT-Creation-Date to 2025-04-28.
    • Made minor text adjustments to the Chinese translation.
  • docs/locale/zh_CN/LC_MESSAGES/user_guide/faq.po
    • Updated POT-Creation-Date to 2025-04-28.
    • Made minor text adjustments to the Chinese translation.
  • docs/locale/zh_CN/LC_MESSAGES/whatsnew.po
    • Updated POT-Creation-Date to 2025-04-28.
  • docs/reference/launch_config.md
    • Removed trailing whitespace.
  • docs/reference/pir_config.md
    • Removed trailing whitespace.
  • docs/reference/psi_config.md
    • Removed trailing whitespace.
  • docs/reference/psi_v2_config.md
    • Removed InternalRecoveryRecord and RecoveryCheckpoint sections.
    • Removed skip_duplicates_check field.
  • docs/user_guide/psi_v2.rst
    • Removed skip_duplicates_check option from example configurations.
  • docs/user_guide/psi_v2_benchmark.md
    • Removed skip_duplicates_check option from example configurations.
  • examples/pir/config/dk_pir_receiver_online.json
    • Removed trailing whitespace.
  • examples/pir/config/dk_pir_sender_offline.json
    • Removed trailing whitespace.
  • examples/psi/config/ecdh_receiver_inner_join.json
    • Removed skip_duplicates_check option.
  • examples/psi/config/ecdh_receiver_recovery.json
    • Removed skip_duplicates_check option.
  • examples/psi/config/ecdh_sender_inner_join.json
    • Removed skip_duplicates_check option.
  • examples/psi/config/ecdh_sender_recovery.json
    • Removed skip_duplicates_check option.
  • examples/psi/config/kkrt_receiver_recovery.json
    • Removed skip_duplicates_check option.
  • examples/psi/config/kkrt_sender_recovery.json
    • Removed skip_duplicates_check option.
  • examples/psi/config/rr22_receiver_recovery.json
    • Removed skip_duplicates_check option.
  • examples/psi/config/rr22_sender_recovery.json
    • Removed skip_duplicates_check option.
  • psi/algorithm/ecdh/ecdh_psi.cc
    • Removed ic_mode related code.
  • psi/algorithm/ecdh/ecdh_psi.h
    • Removed ic_mode option.
  • psi/algorithm/ecdh/receiver.cc
    • Removed ic_mode related code.
  • psi/algorithm/ecdh/sender.cc
    • Removed ic_mode related code.
  • psi/apps/psi_launcher/launch.cc
    • Removed ic_mode parameter from RunLegacyPsi function.
    • Modified UbExecConfToUbconf to set server and client receive results.
  • psi/apps/psi_launcher/launch.h
    • Removed ic_mode parameter from RunLegacyPsi function.
  • psi/apps/psi_launcher/psi_test.cc
    • Updated test case to reflect changes in UbPsiExecuteConfig.
  • psi/config/ub_psi.h
    • Added server_receive_result and client_receive_result fields.
  • psi/interface.cc
    • Removed skip_duplicates_check related code.
    • Modified check_hash_digest to support unique keys input check.
  • psi/legacy/bucket_psi.cc
    • Removed ic_mode related code.
  • psi/legacy/bucket_psi.h
    • Removed ic_mode related code.
  • psi/legacy/bucket_psi_test.cc
    • Removed run_in_ic_mode parameter.
  • psi/proto/psi_v2.proto
    • Removed skip_duplicates_check field.
  • psi/utils/BUILD.bazel
    • Added join_processor_test target.
  • psi/utils/communication.cc
    • Removed interconnection protocol related code.
  • psi/utils/communication.h
    • Removed interconnection protocol related code.
  • psi/utils/join_processor.cc
    • Added a check for stat.join_intersection_count before sorting.
  • psi/utils/join_processor_test.cc
    • Added new test file for join_processor.
  • psi/utils/sync.cc
    • Added AllGatherFlag function.
  • psi/utils/table_utils.cc
    • Set duplicate_key_cnt to 0 in KeyInfo::Make.
  • psi/utils/table_utils_test.cc
    • Added DupKeyCnt check in TableUtilTest.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


A sync of code, a version's flight,
Dependencies aligned, shining bright.
Old configs fade,
New features cascade,
A cleaner system, day and night.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the skip_duplicates_check option from the psi_v2 config, updates dependencies, and makes various documentation improvements. The changes seem reasonable and well-organized.

Summary of Findings

  • Removal of skip_duplicates_check: The skip_duplicates_check option has been removed from the psi_v2 config. It's important to ensure that the logic depending on this flag is either no longer needed or has been adapted to the new configuration. I did not comment on this change since I was instructed not to add review comments for low severity issues.
  • Documentation updates: Several documentation files have been updated with improved translations and formatting. This enhances the clarity and usability of the documentation. I did not comment on this change since I was instructed not to add review comments for low severity issues.
  • Dependency updates: Several dependencies in the MODULE.bazel file have been updated. It's crucial to verify that these updates don't introduce any compatibility issues or security vulnerabilities. I did not comment on this change since I was instructed not to add review comments for low severity issues.

Merge Readiness

The pull request appears to be in good shape for merging, but it's important to verify that the removal of skip_duplicates_check doesn't introduce any regressions. Also, please ensure that the dependency updates are safe and don't introduce any new issues. I am unable to directly approve this pull request, and users should have others review and approve this code before merging.

tyrone-yu
tyrone-yu previously approved these changes May 7, 2025
Copy link
Collaborator

@tyrone-yu tyrone-yu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@huocun-ant huocun-ant left a comment

Choose a reason for hiding this comment

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

LGTM

@oeqqwq oeqqwq merged commit dabeb0b into secretflow:main May 7, 2025
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants