Bug #96527 group_replication.gr_clone_integration_* tests break on X-less build
Submitted: 14 Aug 2019 7:36 Modified: 4 Sep 2019 4:58
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Won't fix Impact on me:
None 
Category:Tests: Group Replication Severity:S7 (Test Cases)
Version:8.0.17 OS:Any
Assigned to: CPU Architecture:Any

[14 Aug 2019 7:36] Laurynas Biveinis
Description:
Build server without X plugin, then

[100%] group_replication.gr_clone_integration_basics  [ fail ]
        Test ended at 2019-08-14 10:29:34

CURRENT_TEST: group_replication.gr_clone_integration_basics
mysqltest: At line 30: Query 'let $MYSQLX_PORT= `SELECT @@mysqlx_port`' failed.
ERROR 1193 (HY000): Unknown system variable 'mysqlx_port'
In included file ./include/restart_with_mysqld_safe.inc: 30
included from ./include/spawn_monitoring_process.inc: 62
included from /Users/laurynas/percona/mysql-8.0/mysql-test/suite/group_replication/t/gr_clone_integration_basics.test: 65

Sibling bug of bug 96526, bug 95916

How to repeat:
CMake with -DWITH_MYSQLX=OFF
./mtr --suite=group_replication --do-test=gr_clone_integration

Suggested fix:
This is caused by include/restart_with_mysqld_safe.inc referencing X system variables unconditionally. It should be fixed so that it works without X too
[14 Aug 2019 10:04] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback!

regards,
Umesh
[4 Sep 2019 4:58] Erlend Dahl
We are sorry, but we will not fix this. There are a lot of different compile options and server options that you can tweak, and which will make the test suite fail (turning off P_S instrumentation is the first that comes to mind).

Adjusting the test suite to cater to all these different options requires too much resources. Not only to fix the immediate problems, but to follow up on regression runs so that the issues don't show up again.