[MDEV-7388] Tests not working in Debian Created: 2014-12-28 Updated: 2014-12-30 Resolved: 2014-12-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 5.5.41 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Szymon Juraszczyk | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian Wheezy 7.7 |
||
| Issue Links: |
|
||||||||
| Description |
|
Hello, How do you guys build the Debian Wheezy packages? Do you build them with DEB_BUILD_OPTIONS=nocheck to skip the tests or you have some magic environment different from an average Debian Wheezy installation? The tests kick of after changing "$basedir/extra/replace" to "$basedir/builddir/extra/replace" in the line 2497. It's kind of puzzling to me though how it is possible that the stock source packages for Debian Wheezy have been unbuildable since nearly a year and still you successfully build them. Am I missing something or doing something stupid while trying to build MariaDB 5.5.x from your stock Debian Wheezy source packages? |
| Comments |
| Comment by Elena Stepanova [ 2014-12-28 ] |
|
Yes, basically we build with nocheck, and we run all the tests separately on the installed packages (not as a part of the build process itself). You can see the logs here: http://buildbot.askmonty.org/buildbot/builders/kvm-deb-wheezy-amd64/builds/3175 . It makes us miss some problems which affect running tests on an out-of-source build. The debian expert, otto, builds in a more traditional fashion and reports problems to us (and solves many of them himself). You can seek his advice here or on #maria channel. The problem you encountered is |
| Comment by Szymon Juraszczyk [ 2014-12-29 ] |
|
Thanks. I actually handle the problem the way I've described (the latest one by changing "$basedir/extra/replace" to "$basedir/builddir/extra/replace" in mysql-test/mysql-test-run.pl line 2497). I just thought some feedback might come in handy for you to make MariaDB even better and be able to build Debian packages with tests (which is the default) out of the box |
| Comment by Elena Stepanova [ 2014-12-29 ] |
|
Our build process uses debian/autobake-deb.sh which is, in fact, a documented recommended way to build deb packages https://mariadb.com/kb/en/mariadb/documentation/getting-started/compiling-mariadb-from-source/building-mariadb-on-ubuntu/ (the page is for Ubuntu, but still). While I agree that running the build with tests is technically a right thing to do, it would add even more burden on our already overloaded build system. We run tests on packages installed more or less the way a user would install them, and from an average user perspective it seems more important than running them upon a build. So, we would have to add build-time tests to post-installation tests, thus duplicating them. That's something we might not be able to afford. That said, we should definitely have at least one builder which would run tests on an out-of-source builds. Or rather two builders, Linux and Windows. The workaround with adding builddir can of course be only applied locally, it's not a generic solution. |
| Comment by Szymon Juraszczyk [ 2014-12-29 ] |
|
Don't worry, I can report you should any new problems with tests on Wheezy arise (there are already two) |
| Comment by Elena Stepanova [ 2014-12-30 ] |
|
Closing as a duplicate of |