Rollback test_binlog_reader-t.cpp to tag v3.0.5#5445
Conversation
The test_binlog_reader-t.cpp test was previously modified to attempt fixing issues in the new CI infrastructure. However, these fixes depended on the 'proxysql_mysqlbinlog' tool which is currently missing or not correctly provisioned in the new environment. As the previous attempts to workaround the missing tool by dynamically detecting hostgroups and enabling GTID ports did not lead to a passing test, we are rolling back this file to its known stable state from tag v3.0.5. This aligns with the requirement to maintain test integrity while the infrastructure provisioning for the binlog reader tool is addressed.
Summary of ChangesHello, 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! This pull request reverts changes made to the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe 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 by creating a comment using either
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 Limitations & Feedback Gemini Code Assist 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. 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. Footnotes
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTest file cleanup that removes diagnostic logging calls, simplifies initialization and connection logic in the main function, and corrects a comparison logic error in the check_gitd_tracking function where expected and actual query values are now compared in consistent orientation. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
There was a problem hiding this comment.
Code Review
This pull request rolls back test/tap/tests/test_binlog_reader-t.cpp to a previous stable version from tag v3.0.5. The changes are consistent with a rollback, primarily removing recent additions like diagnostic logging and logic related to CI fixes.
My review found one minor issue: the <numeric> header is removed, but the file still uses std::accumulate. While this might compile due to transitive includes from other headers (like json.hpp), it's best practice to explicitly include headers for symbols used directly in a file to improve maintainability and prevent future build breaks. I've added a suggestion to restore the include. Otherwise, the rollback appears correct.
Note: Security Review did not run due to the size of the PR.
| #include <utility> | ||
| #include <vector> | ||
| #include <numeric> | ||
|
|
There was a problem hiding this comment.
The <numeric> header was removed, but std::accumulate (which is defined in <numeric>) is used later in this file (line 326). While this may compile due to being included transitively through another header (e.g., json.hpp), it's best practice to include headers for all symbols directly used in a file. This improves code clarity and prevents potential build failures if transitive dependencies change in the future. Please restore this include.
| #include <numeric> |



The test_binlog_reader-t.cpp test was previously modified to attempt fixing issues in the new CI infrastructure. However, these fixes depended on the 'proxysql_mysqlbinlog' tool which is currently missing or not correctly provisioned in the new environment.
As the previous attempts to workaround the missing tool by dynamically detecting hostgroups and enabling GTID ports did not lead to a passing test, we are rolling back this file to its known stable state from tag v3.0.5. This aligns with the requirement to maintain test integrity while the infrastructure provisioning for the binlog reader tool is addressed.
Summary by CodeRabbit