Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLES/OpenSUSE - build 15.5 and then install/upgrade test to later #608

Open
wants to merge 71 commits into
base: dev
Choose a base branch
from

Conversation

grooverdan
Copy link
Member

This keep our packages list smaller, less building, and works for 15.5 and 15.6

Factor the generation of lists together as what should be identical implementation. There should be only one match in the list.

Template selection

Please go the the Preview tab and select the appropriate sub-template:

grooverdan and others added 30 commits September 19, 2024 15:21
Add worker for openeuler 24.03.

Rename container generation to mathc the same name.
Clients in our binary taballs are linked dynamically with libncurses, which causes a trouble on systems where it is no longer available
As per MDBF-794 only centos7 and debian 10 bintar builders need to link statically with libncurses.

- for debian 10: libncurses.a is already present in /scripts/local/lib/ and -DCURSES_NEED_NCURSES=1 flag is enough to link it statically.
- for centos7: I've rebuilt the image and pushed manually a dev_ tag. libncurses.a was present on the system but not in the library path: /scripts/local/lib/

Tests available at:
- debian10: https://buildbot.dev.mariadb.org/#/builders/187/builds/23
- centos7: https://buildbot.dev.mariadb.org/#/builders/172/builds/292

Reference CMAKE output line:
-- Found Curses: /scripts/local/lib/libncurses.a
Adjust images to 1505 notation as well.
Fedora 41 is including MariaDB 10.11 so
use that as the minimum version.
Centos based have asio-devel in EPEL.

SLES is omitted as it requires a subpackage module
repository to be enabled. Doing so would increase
the package dependencies when using the built packages.
https://packagehub.suse.com/packages/asio/
(SLE-Module-PackageHub-Subpackages-Module )

OpenSUSE also has asio-devel but adds a complicated
path in with the openssl libraries and boost that
we'd be influcting on users if they used a non-bundled
version.

On RHEL - asio-devel in ubi9 EPEL but not 8.
Parts 1 and 2: Switching minor upgrade into "all" mode and extending
it with additional checks (ldd, requirements, capabilities)
During the "Compile step" - create_initial_db.cmake runs a bootstrap as a sanity check to avoid spending time on test runs.

It can happen that some changes on the server may cause a loop during the bootstrap process. Buildbot will terminate the parent process (dojob) when it reaches a timeout, but the MariaDB service will remain up causing new builds to fail.
https://buildbot.mariadb.org/#/builders/234/builds/32911

Modified the stop_processes step so handle this.
Use ( deb | archive ).mariadb.org to download the Packages file. This file is mandatory for both the 'All' and 'Columnstore' test types, exit with error if it is not found.

Apply uniq to remove duplicate values in the package list and sort the list for readability.
… old bb

- .build-id files may also be present on old systems where --noartifact
  does not work
- package dependencies need to be sorted for comparison
- dependency collection hangs frequently in buildbot, enabled logging
  temporarily to get more output for the issue
… old bb

- .build-id files may also be present on old systems where --noartifact
  does not work
- package dependencies need to be sorted for comparison
- dependency collection hangs frequently in buildbot, enabled logging
  temporarily to get more output for the issue
Improving build time by excluding the too many files of mariadb-test package from the ldd check when dependencies are collected.
Align code with old-bb and peform an extra restart after the previous version is installed so plugins are loaded.
The build runs --big-test which puts a lot of memory pressure
on the machine, so adjusting the parallel to mitigate this.
fauust and others added 26 commits October 16, 2024 12:11
…PM repo on {archive/mirror}.mariadb.org

Exception: centos >= 9 which should be sorted out! (relative path on mirrors centos/$version/$platform)

Build_arch is used as $arch in bash_lib.sh, rpm_setup_mariadb_mirror{} to calculate mirror/archive URL.
…it as REQUIRED hence minor upgrades (all) will reflect the change during verifications.

> 10.5 MariaDB releases use liburing. Q3 release was linked against libaio which accounts for the differences found during testing.
- cache location is zypp
- "all" does not exist for clearing cache, instead zypper uses --all
-  when MariaDB.repo is first added the key should be trusted in a non-interactive manner, hence --gpg-auto-import-keys
- first zypper packages -r goes to /dev/null because there is a lot of noise from trusting the key. Sudo is needed to make the cache.
- second zypper packages -r runs as a normal user with no issues.
- ID_LIKE may not exist
- upgrade command does not exist for zypper
- set delimiter for zypper packages -r output
- suppress libmecab diffs to account for old/new bb env diffs
- add krb5/judy/lzo to opensuse images to allow creating rpm packages for  lzo, oqgraph, and gssap
:~$ docker run --rm -it -u root quay.io/mariadb-foundation/bb-worker:dev_opensuse1505 bash
0b0ed4c04573:/home/buildbot # rpm -qa | grep libedit
libedit0-3.1.snap20150325-2.12.x86_64
libedit-devel-3.1.snap20150325-2.12.x86_64

:~$ docker run --rm -it -u root quay.io/mariadb-foundation/bb-worker:dev_opensuse1506 bash
588c54d665b5:/home/buildbot # rpm -qa | grep libedit
libedit0-3.1.snap20150325-2.12.x86_64
Changes:
- libvirt:
  - add minor | columnstore builder
  - suggest + tags for major/minor tests
  - suggest adding test_mode to builder name

- bash library:
  - fix syntax for creating columnstore structures
  - move here: get_columnstore_logs()

- deb upgrade:
  - the big comment block was deleted because dependency collection was handled in bash library
  - columnstore package list is now static. Mainly because it will pull CMAPI and was agreed not to install / upgrade it.

- rpm upgrade:
  - columnstore test_mode option was missing
  - handled extra restart if test_mode is columnstore
  - remove chunks of commented code. Same reason as in deb upgrade.

What will this patch do:
- install the server and the CS plugin. Create structures (query)
- upgrade both
- verify structures (query)

LDD and REQS comparison are OFF for CS.
This keep our packages list smaller, less building, and works for 15.5 and 15.6

Factor the generation of lists together as what should be identical
implementation. There should be only one match in the list.
@RazvanLiviuVarzaru
Copy link
Collaborator

RazvanLiviuVarzaru commented Nov 7, 2024

Looks ok, but I suggest pinging Elena and Daniel to raise awareness for the Q1 2025 release.
If everyone agrees with the decision, then we merge.

if "sles-1505" in builderName or "opensuse-1505" in builderName:
builders.append(b.replace("1505", "1506"))
break
return builders
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch here, rather than returning an empty list if the parent builder doesn't have any install / upgrade builders defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants