This commit resolves multiple issues in the new CI infrastructure related
to binary dependency discovery and COM_BINLOG_DUMP protocol testing.
Key changes:
- In test_com_binlog_dump_enables_fast_forward-t.cpp:
- Fixed a path construction bug where an empty TEST_DEPS resulted in
attempting to execute '/mysqlbinlog' (root directory) instead of
searching the system PATH.
- Added comprehensive diagnostics (diag()) to show connection details,
TEST_DEPS status, and detailed file system checks (stat() and 'which')
to ensure mysqlbinlog is found and executable.
- Improved error reporting by dumping current PATH and CWD on failure.
- In infra/control/env-isolated.bash and run-tests-isolated.bash:
- Standardized TEST_DEPS and TEST_DEPS_PATH to use workspace-relative
paths ('/test-scripts/deps') instead of Jenkins-specific
hardcoded paths.
- Updated symlink creation logic in run-tests-isolated.bash to correctly
map detected binaries (mysqlbinlog, test_binlog_reader-t) into the
workspace-relative dependency directory inside the test container.
diag("Testing COM_BINLOG_DUMP enables fast forward");
diag("This test verifies that mysqlbinlog can successfully connect through ProxySQL even if fast_forward is initially disabled for the user, as ProxySQL should enable it upon receiving COM_BINLOG_DUMP.");
if(cl.getEnv()){
diag("Failed to get the required environmental variables.");