Commit Graph

65 Commits

Author SHA1 Message Date
Troy Dawson
9007408176 Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
2024-10-29 09:12:22 -07:00
Troy Dawson
682997a4d1 Bump release for June 2024 mass rebuild 2024-06-24 09:22:56 -07:00
Yaakov Selkowitz
9bb4f8bc1d Adapt tests to openssl 3.2
https://github.com/brianmario/mysql2/pull/1357
2024-02-09 11:30:41 -05:00
Yaakov Selkowitz
53f298ce31 Avoid rubygem-eventmachine build dependency in RHEL
The eventmachine interface is an optional feature, and is otherwise
unused in RHEL.  This is based on c9s:

0066899ab0
2024-02-09 11:30:41 -05:00
Yaakov Selkowitz
5c7ffda69a Adapt tests to mariadb 10.11
As of mariadb 10.11 (Fedora 40), the documented method of reverting the
user account to mysql_native_password post-creation fails with:

ERROR 1698 (28000): Access denied for user 'mockbuild'@'localhost'

Using the documented method for setting this at creation time works with
both 10.5 and 10.11.
2024-02-08 22:21:16 -05:00
Fedora Release Engineering
05b8a5a8fb Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 17:10:44 +00:00
Vít Ondruch
0ca8aac22b Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.3 2024-01-03 12:42:20 +01:00
Jarek Prokop
b357d26044 Upgrade to rubygem-mysql2 0.5.5.
Remove patching the GC.verify_compaction_references in spec suite,
Appropriate fix is present in Fedora and upstream Ruby 3.2 already.
Fedora Ruby 3.1 fixed the support via the following commits:
b7b5473796
ca94aff023

Resolves: rhbz#2163026
2023-10-25 12:48:03 +02:00
Fedora Release Engineering
8e596532c3 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 18:02:08 +00:00
Fedora Release Engineering
9edf05fd21 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 20:47:47 +00:00
Michal Schorm
8b771a1ea9 Enhance the DB connection check.
This commit is based on one of the commits by Michal Schorm
<mschorm@redhat.com>. Thanks!

* https://src.fedoraproject.org/rpms/rubygem-mysql2/pull-request/13
  - [5/6] Testsuite fix - enhance the error handling of the loop that checks
    whether the DB server is alive
* https://bugzilla.redhat.com/show_bug.cgi?id=2144488#c2
  - (3) While waiting for the DB server to come online

In the previous logic, the DB connection logic didn't exit correctly with error
when the last 10th try still fails. The new logic makes the logic fail
properly, and prints the DB error log file. The printed log makes us debug
easily.
2023-01-19 17:42:48 +01:00
Vít Ondruch
b5062f7590 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.2 2023-01-03 18:46:22 +01:00
Jun Aruga
c33b1cff59 Fix the broken SSL tests with MariaDB 10.5.18.
This commit fixes the broken SSL tests below.

The rubygem-mysql2 build started to fail with the error below by the `mysql`
that can't connect to the MariaDB server, when a dependency mariadb was upgraded
from the version 3:10.5.16-3.fc37 to 3:10.5.18-1.fc38.
https://koschei.fedoraproject.org/build/14086115

build.log
~~~
+ /usr/libexec/mysqld --datadir=/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/data --log-error=/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.log --socket=/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.sock --pid-file=/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.pid --port=13471 --ssl
++ seq 10
+ for i in $(seq 10)
+ sleep 1
2022-11-17 11:20:48 0 [Note] /usr/libexec/mysqld (mysqld 10.5.18-MariaDB) starting as process 1297 ...
+ grep -q 'ready for connections.' /builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.log
+ echo 'Waiting connections... 1'
...
+ echo 'Waiting connections... 10'
Waiting connections... 10
+ mysql -u mockbuild -e 'ALTER USER '\''root'\''@'\''localhost'\'' IDENTIFIED VIA mysql_native_password USING PASSWORD('\'''\'')' -S /builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.sock -P 13471
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.' (2)
~~~

After Michal Schorm <mschorm@redhat.com>'s investigation (thanks!), we found
the error comes from the not appropriate SSL configurations.

It was reported that in Fedora, the MariaDB 10.5.16 used downstream OpenSSL 3
patch, and the MariaDB 10.5.18 started to use upstream OpenSSL 3 patch.
And there are some differences between these two patch files. And the difference
triggered this issue.
See also <https://github.com/brianmario/mysql2/pull/1290>.

I also applied a patch to use the SSL pem files in the spec directory directly
to run the SSL tests. Because we can't set up the files in the `/etc/mysql`.
See also <https://github.com/brianmario/mysql2/pull/1293>.

I also regenerated the SSL certification files from the localhost. It requires
openssl as a build dependency. This is a temporary workaround. It is expected
that the certification files are managed in the upstream repository.
See also <https://github.com/brianmario/mysql2/pull/1296>.

Resolves: rhbz#2144488
2022-12-23 18:25:12 +01:00
Fedora Release Engineering
fd43948e4e Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 01:56:13 +00:00
Jarek Prokop
e21b5b958a Upgrade to rubygem-mysql2 0.5.4.
Resolves: rhbz#2081426
2022-05-06 19:19:52 +02:00
Jarek Prokop
184bbedf20 Update upstream script reference link. 2022-04-29 17:48:13 +02:00
Jarek Prokop
b6f85bc7e5 Sync the test DB setup logic with upstream.
Reset password for the root user due to MariaDB 10.4 authentication
change.
https://mariadb.com/kb/en/authentication-from-mariadb-104/#altering-the-user-account-to-revert-to-the-previous-authentication-method

Relevant links:
ffdd8c6c67/tasks/rspec.rake (L37-L59)
https://github.com/brianmario/mysql2/blob/master/ci/setup.sh
2022-04-29 17:44:45 +02:00
Jarek Prokop
23a87cbbd6 Enhance comments on patches. 2022-04-27 12:27:31 +02:00
Jun Aruga
81e2cc94f1 Remove gem_make.out and mkmf.log files from the binary RPM package. 2022-04-06 18:40:52 +02:00
Pavel Valena
deb21bb3fe Fix test assertion for mariadb-connector-c
https://github.com/brianmario/mysql2/issues/1240

also enhance .spec and .gitignore files.
2022-02-21 16:50:40 +01:00
Mamoru TASAKA
8f26419007 Apply upstream patch : Update Mysql2::Result spec for Ruby 3.1 2022-01-27 16:31:36 +09:00
Mamoru TASAKA
1690d1e660 F-36: rebuild against ruby31 2022-01-27 08:57:13 +09:00
Fedora Release Engineering
d490cbf053 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 18:54:16 +00:00
Fedora Release Engineering
6d461f4fb2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 12:22:04 +00:00
Vít Ondruch
6d35cbef77 Fix FTBFS due to MariaDB 10.5+ incompatibilies.
Resolves: rhbz#1914515
Resolves: rhbz#1923277
2021-02-11 20:26:15 +01:00
Troy Dawson
1222ea9e06 remove mini-bump 2021-02-09 09:28:38 -08:00
Troy Dawson
4a4aaed70e mini-bump to get it to build on ELN 2021-02-09 09:16:40 -08:00
Fedora Release Engineering
3ff186a72b - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 16:11:39 +00:00
Pavel Valena
5726f27506 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0 2021-01-07 03:21:32 +01:00
Fedora Release Engineering
871b0edb8a - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 06:44:03 +00:00
Alexander Chernyakhovsky
b9f647bd9f Update tests to build and run on F32 2020-07-02 16:52:04 -04:00
Fedora Release Engineering
674d475250 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 18:56:38 +00:00
Vít Ondruch
83280f5ca0 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.7 2020-01-17 14:02:57 +01:00
Jun Aruga
228f0ad343 New upstream release 0.5.3 2019-12-04 16:31:46 +01:00
Fedora Release Engineering
b6d2a54364 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 19:43:35 +00:00
Jun Aruga
cc15309b2a Assign a random testing port
That fixes below error as much as possible. (The example is for rubygem-pg)
https://src.fedoraproject.org/rpms/rubygem-pg/pull-request/3
2019-05-23 12:12:35 +02:00
Fedora Release Engineering
e274528d03 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 12:37:04 +00:00
Mamoru TASAKA
1068d0366d F-30: rebuild against ruby26 2019-01-21 23:05:22 +09:00
Jun Aruga
38b9b71fae New upstream release 0.5.2 2018-07-19 16:56:28 +02:00
Fedora Release Engineering
1d20ba1b64 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 04:28:42 +00:00
Fedora Release Engineering
26cfa81b51 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 14:24:29 +00:00
Björn Esser
4b439e9903
Rebuilt for switch to libxcrypt 2018-01-20 23:08:05 +01:00
Mamoru TASAKA
892a21848e F-28: rebuild for ruby25 2018-01-05 00:47:56 +09:00
Jun Aruga
a0c3c0e88b New upstream release 0.4.10
Added unit test environment.
2017-12-18 11:54:24 +01:00
Fedora Release Engineering
e3ca4e6b57 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 07:56:54 +00:00
Fedora Release Engineering
e78d9ba8de - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 17:28:13 +00:00
Adam Williamson
c57c46e5af New upstream release 0.4.8 (builds against MariaDB 10.2) 2017-07-13 18:56:47 -07:00
Fedora Release Engineering
a2cff3e4e2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 12:31:01 +00:00
Vít Ondruch
3ea7696874 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4 2017-01-11 12:08:38 +01:00
Miroslav Suchý
d6feaa2572 rebase to 0.4.4 2016-06-09 10:08:38 +02:00