-
Notifications
You must be signed in to change notification settings - Fork 26
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
DEVELOPMENT_BRANCH=main #615
base: dev
Are you sure you want to change the base?
Conversation
Add worker for openeuler 24.03. Rename container generation to mathc the same name.
As per https://github.com/MariaDB/server/blob/8478a06cdbb7281e1cc2d507f18c985c736c2ffc/cmake/cpack_rpm.cmake#L374 MariaDB-compat won't be built for OpenEuler.
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)
Post-review fixes and cosmetic changes
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.
- 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.
- prepare minio mc client installation on master containers - setup mc client configuration during container start-up - assume different minio instances for dev and prod by defining their specifics in .env files
- configure install builders to perform PAM tests. RPM and DEB. - migrate pam test script from old - bb: - no need to create a new user. We have buildbot user. - PAM v1 & v2 are configured and the auth is tested with the buildbot user. - the user should not be able to login after the plugin is uninstalled - perform MTR pam test in suite=plugins
Without the MariaDB version specified, the operator was depending on a tag to identify the version. As we trigger by sha this needs to be specified. Depends on mariadb-operator/mariadb-operator#1048
We need to merge MariaDB#585 to Production, which will enable the cursor tests on x86-debian-12-fulltest After the cursor tests are Stable we can enable them on the protected branches builder last-N-failed.
This affects how and which install/upgrade tests are done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per https://mariadb.com/kb/en/mariadb-upgrade/
You should run mariadb-upgrade after upgrading from one major MySQL/MariaDB release to another
Running mariadb-upgrade
if [[ $test_type == "major" ]]
will suffice.
Right now, we are doing things a bit differently between RPM and DEB as:
For DEB is wrong because it won't evaluate as true in most cases.
if [[ $major_version == "$development_branch" ]]; then
sudo mariadb-upgrade
fi
And for RPM we are lucky we have the OR major upgrade condition.
if [[ $major_version == "$development_branch" ]] || [[ $test_type == "major" ]]; then
sudo mariadb-upgrade
fi
Another thought is that mariadb-upgrade
can catch early incompatibilities for minor upgrades too. So why not remove any condition and run it everytime, no matter the test_type?
It's also safe to run mariadb-upgrade for minor upgrades, as if there are no incompatibilities nothing is changed.
@cvicentiu any thoughts on this?
d7eb898
to
4be5d7c
Compare
This affects how and which install/upgrade tests are done.