From b4687daa749ef86d43d26a410def816b5be61870 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Mon, 9 Mar 2026 20:20:06 +0000 Subject: [PATCH] Rollback test_binlog_reader-t.cpp to tag v3.0.5 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. --- test/tap/tests/test_binlog_reader-t.cpp | 36 +++++-------------------- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/test/tap/tests/test_binlog_reader-t.cpp b/test/tap/tests/test_binlog_reader-t.cpp index 7a63a07ed..f4cfaca5d 100644 --- a/test/tap/tests/test_binlog_reader-t.cpp +++ b/test/tap/tests/test_binlog_reader-t.cpp @@ -27,7 +27,6 @@ #include #include #include -#include #include "mysql.h" #include "mysqld_error.h" @@ -46,7 +45,6 @@ using std::map; using nlohmann::json; int create_testing_tables(MYSQL* mysql_server) { - diag("Creating testing tables..."); // Create the testing database MYSQL_QUERY(mysql_server, "CREATE DATABASE IF NOT EXISTS test"); MYSQL_QUERY(mysql_server, "DROP TABLE IF EXISTS test.gtid_test"); @@ -66,7 +64,6 @@ int create_testing_tables(MYSQL* mysql_server) { } int insert_random_data(MYSQL* proxysql_mysql, uint32_t rows) { - diag("Inserting %u rows of random data...", rows); int rnd_a = rand() % 1000; string rnd_c = random_string(rand() % 100 + 5); string rnd_pad = random_string(rand() % 50 + 5); @@ -128,7 +125,6 @@ map> extract_hosgtroups_stats(const vector reader_2_read {}; // Reset connection pool stats - diag("Resetting connection pool stats..."); int rc = mysql_query(proxysql_admin, "SELECT * FROM stats.stats_mysql_connection_pool_reset"); if (rc != EXIT_SUCCESS) { goto cleanup; } mysql_free_result(mysql_store_result(proxysql_admin)); @@ -297,7 +275,6 @@ int main(int argc, char** argv) { rc = insert_random_data(proxysql_mysql, NUM_ROWS); if (rc != EXIT_SUCCESS) { goto cleanup; } - diag("Performing %u update/select pairs...", NUM_CHECKS); for (uint32_t i = 0; i < NUM_CHECKS; i++) { rc = perform_update(proxysql_mysql, NUM_ROWS); if (rc != EXIT_SUCCESS) { goto cleanup; } @@ -361,6 +338,5 @@ cleanup: mysql_close(proxysql_mysql); mysql_close(proxysql_admin); - diag("Test completed"); return exit_status(); }