Bug #56774 "debug" tests during RPM + PKG build don't use the debug server

Submitted: 14 Sep 2010 15:22 Modified: 16 Sep 2010 12:56
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S1 (Critical)
Version:5.5.6-rc OS:Other (See text)
Assigned to: Joerg Bruehe CPU Architecture:Any

[14 Sep 2010 15:22] Joerg Bruehe
Description:
Affected: Linux RPM builds + Solaris PKG builds

This is a part of the RPM test log of the 5.5.6-rc build
on SLES 11 (x86_64):

=====
...
Completed: Failed 1/1 tests, 0.00% were successful.

Failing test(s): nist.nist_all

The log files in var/log may give you some hint of what went wrong.

If you want to report this error, please read first the documentation
at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html

mysql-test-run: *** ERROR: there were failing test cases
+ mv ../bin/mysqld ../bin/mysqld.orig
mv: cannot stat `../bin/mysqld': No such file or directory
+ mv ../bin/mysqld-debug ../bin/mysqld
mv: cannot stat `../bin/mysqld-debug': No such file or directory
+ tee -a mtr.log
+ cd mysql-test
+ source collections/test-bt-debug
++ perl mysql-test-run.pl --force --timer --comment=debug --skip-ndbcluster --skip-rpl --report-features --experimental=collections/default.experimental
Logging: mysql-test-run.pl  --force --timer --comment=debug --skip-ndbcluster --skip-rpl --report-features --experimental=collections/default.experimental
100914  1:05:43 [Note] Plugin 'FEDERATED' is disabled.
MySQL Version 5.5.6

##############################################################################
# debug
##############################################################################
...
=====

Similar lines are in the test log of Solaris-PKG builds.

Note that the script tries to switch from the default (optimized) server to the debug server by using "mv ../bin/mysqld*" commands which fail because there is no server binary in "../bin", but the script just continues and reports the next test run to be done using the debug server.

In a tar.gz test log, the path is different ("bin/" as opposed to "../bin/"), and the commands succeed:

=====
...
Completed: Failed 1/1 tests, 0.00% were successful.

Failing test(s): nist.nist_all

The log files in var/log may give you some hint of what went wrong.

If you want to report this error, please read first the documentation
at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html

mysql-test-run: *** ERROR: there were failing test cases
+ mv bin/mysqld bin/mysqld.orig
+ mv bin/mysqld-debug bin/mysqld
+ tee -a mtr.log
+ cd mysql-test
+ source collections/test-bt-debug
++ perl mysql-test-run.pl --force --timer --comment=debug --skip-ndbcluster --skip-rpl --report-features --experimental=collections/default.experimental
Logging: mysql-test-run.pl  --force --timer --comment=debug --skip-ndbcluster --skip-rpl --report-features --experimental=collections/default.experimental
100913 21:35:42 [Note] Plugin 'FEDERATED' is disabled.
MySQL Version 5.5.6

##############################################################################
# debug
##############################################################################
...
=====

How to repeat:
Look into a RPM test log of the cmake build process.
[16 Sep 2010 12:50] Joerg Bruehe
I found the cause:
The test script uses a wrong path name when trying to put the debug server in the default place.

A fix was used successfully in re-tests, I will now commit it.
[16 Sep 2010 12:56] Joerg Bruehe
Fixed by this patch:

https://intranet.mysql.com/secure/mailarchive/mail.php?folder=138&mail=15165

Internal tool only, users are not affected.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.