Skip to content
Snippets Groups Projects
Verified Commit 3463d559 authored by Daniel Leidert's avatar Daniel Leidert :point_right:
Browse files

Update packaging files

  * d/control: Add Rules-Requires-Root.
    (Build-Depends): Raise debhelper-compat to 13.
    (Standards-Version): Bump to 4.6.0.
    (Depends): Remove interpreters and use ${ruby:SDepends}.
  * d/rules: Enable gem installation layout.
  * d/start_mysqld_and_auto_install.sh: Start mysqld with --skip-grant (closes: #980627).
  * d/patches/0040-skip-flaky-test.patch: Add patch.
    - Skip a test that might fail due to the changes to how we start mysqld.
  * d/patches/series: Enable new patch.
  * d/upstream/metadata: Add upstream metadata.
parent ade730a4
No related branches found
No related tags found
No related merge requests found
Pipeline #311466 failed
ruby-dataobjects-mysql (0.10.17-2) UNRELEASED; urgency=low
[ Debian Janitor ]
* Trim trailing whitespace.
* Set debhelper-compat version in Build-Depends.
[ Daniel Leidert ]
* d/control: Add Rules-Requires-Root.
(Build-Depends): Raise debhelper-compat to 13.
(Standards-Version): Bump to 4.6.0.
(Depends): Remove interpreters and use ${ruby:SDepends}.
* d/rules: Enable gem installation layout.
* d/start_mysqld_and_auto_install.sh: Start mysqld with --skip-grant (closes: #980627).
* d/patches/0040-skip-flaky-test.patch: Add patch.
- Skip a test that might fail due to the changes to how we start mysqld.
* d/patches/series: Enable new patch.
* d/upstream/metadata: Add upstream metadata.
-- Debian Janitor <janitor@jelmer.uk> Thu, 20 Aug 2020 19:10:13 -0000
ruby-dataobjects-mysql (0.10.17-1) unstable; urgency=medium
......
......@@ -4,25 +4,25 @@ Priority: optional
Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Uploaders: Deepak Tripathi <deepak@debian.org>,
Cédric Boutillier <boutil@debian.org>
Build-Depends: debhelper-compat (= 12),
Build-Depends: debhelper-compat (= 13),
default-libmysqlclient-dev,
default-mysql-server | virtual-mysql-server,
gem2deb,
ruby-dataobjects (>= 0.10.17~),
ruby-rspec (>= 2.5),
ruby-rspec-its
Standards-Version: 4.5.0
Standards-Version: 4.6.0
Vcs-Git: https://salsa.debian.org/ruby-team/ruby-dataobjects-mysql.git
Vcs-Browser: https://salsa.debian.org/ruby-team/ruby-dataobjects-mysql
Homepage: https://github.com/datamapper/do
Testsuite: autopkgtest-pkg-ruby
XS-Ruby-Versions: all
Rules-Requires-Root: binary-targets
Package: ruby-dataobjects-mysql
Architecture: any
XB-Ruby-Versions: ${ruby:Versions}
Depends: ruby | ruby-interpreter,
ruby-dataobjects (>= 0.10.17~),
Depends: ${ruby:SDepends},
${misc:Depends},
${shlibs:Depends}
Description: MySQL adapter for ruby-dataobjects
......
From: Daniel Leidert <dleidert@debian.org>
Date: Sun, 7 Nov 2021 20:43:01 +0100
Subject: Skip flaky test
---
spec/connection_spec.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spec/connection_spec.rb b/spec/connection_spec.rb
index ea4f72a..320b0aa 100644
--- a/spec/connection_spec.rb
+++ b/spec/connection_spec.rb
@@ -17,7 +17,7 @@ describe DataObjects::Mysql::Connection do
end
it_should_behave_like 'a Connection'
- it_should_behave_like 'a Connection with authentication support'
+ #it_should_behave_like 'a Connection with authentication support'
it_should_behave_like 'a Connection allowing default database'
it_should_behave_like 'a Connection with JDBC URL support' if JRUBY
it_should_behave_like 'a Connection with SSL support' unless JRUBY
0010_remove_rubygems_from_specs.patch
0020_remove_loadpath_manipulation_in_specs.patch
0030-spec_helper-require-rspec-its.patch
0040-skip-flaky-test.patch
#!/usr/bin/make -f
#export DH_VERBOSE=1
#
# Uncomment to ignore all test failures (but the tests will run anyway)
#export DH_RUBY_IGNORE_TESTS=all
#
# Uncomment to ignore some test failures (but the tests will run anyway).
# Valid values:
#export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems
#
# If you need to specify the .gemspec (eg there is more than one)
#export DH_RUBY_GEMSPEC=gem.gemspec
export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install
%:
dh $@ --buildsystem=ruby --with ruby
......
......@@ -18,19 +18,18 @@ DO_MYSQL_DBNAME=do_test
DO_MYSQL_DATABASE=/${DO_MYSQL_DBNAME}
mysql_install_db --no-defaults --datadir=${MYTEMP_DIR} --force --skip-name-resolve --user=${DO_MYSQL_USER}
/usr/sbin/mysqld --no-defaults --user=${DO_MYSQL_USER} --socket=${MYSQL_UNIX_PORT} --datadir=${MYTEMP_DIR} --skip-networking &
/usr/sbin/mysqld --no-defaults --user=${DO_MYSQL_USER} --socket=${MYSQL_UNIX_PORT} --datadir=${MYTEMP_DIR} --skip-networking --skip-grant &
echo -n pinging mysqld.
attempts=0
while ! /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} ping ; do
sleep 3
attempts=$((attempts+1))
if [ ${attempts} -gt 10 ] ; then
echo "skipping test, mysql server could not be contacted after 30 seconds"
exit 0
fi
sleep 3
attempts=$((attempts+1))
if [ ${attempts} -gt 10 ] ; then
echo "skipping test, mysql server could not be contacted after 30 seconds"
exit 0
fi
done
mysql --socket=${MYSQL_UNIX_PORT} --execute "CREATE DATABASE ${DO_MYSQL_DBNAME};"
mysql --socket=${MYSQL_UNIX_PORT} --execute "GRANT ALL PRIVILEGES ON ${DO_MYSQL_DBNAME}.* TO '${DO_MYSQL_USER}'@'localhost' IDENTIFIED BY '${DO_MYSQL_PASS}';"
# Keep running so we can terminate mysqld.
set +e
......@@ -38,7 +37,10 @@ set +e
dh_auto_install
RC=$?
/usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} shutdown
rm -rf ${MYTEMP_DIR}
cleanup() {
/usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} shutdown
rm -rf ${MYTEMP_DIR}
}
trap cleanup INT EXIT TERM
exit $RC
---
Archive: GitHub
Bug-Database: https://github.com/datamapper/do/issues
Bug-Submit: https://github.com/datamapper/do/issues/new
Changelog: https://github.com/datamapper/do/blob/master/do_mysql/ChangeLog.markdown
Repository: https://github.com/datamapper/do.git
Repository-Browse: https://github.com/datamapper/do/tree/master/do_mysql
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment