Skip to content

Commit

Permalink
MDBF-772: Test all past MariaDB version that they install
Browse files Browse the repository at this point in the history
Test with all current MariaDB versions that commit
can be installed over them and it works after that
  • Loading branch information
illuusio committed Oct 15, 2024
1 parent 2fe6de3 commit b685b80
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
21 changes: 21 additions & 0 deletions master-libvirt/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import docker
import os
import sys

from constants import *

sys.setrecursionlimit(10000)

sys.path.insert(0, "/srv/buildbot/master")
Expand Down Expand Up @@ -212,6 +214,7 @@ def getDebInstallStep():
"systemdCapability",
"test_mode",
"test_type",
"prev_major_version",
"version_name",
]
),
Expand All @@ -228,6 +231,21 @@ def getMajorVersionStep():
),
)

def getDebUpgradeVersionSteps(f_deb_upgrade_steps):
current_major_version = util.Interpolate(f"%(prop:major_version)s")
rtn_steps = util.BuildFactory()
for cur_branch in branches_main:
if current_major_version == cur_branch:
break

f_deb_upgrade_steps.addStep(
steps.SetProperty(
property="prev_major_version",
value=cur_branch
)
)

f_deb_upgrade_steps.addStep(getDebUpgradeStep())

# FACTORY

Expand All @@ -243,6 +261,9 @@ f_deb_upgrade.addStep(getMajorVersionStep())
f_deb_upgrade.addStep(getScript("deb-upgrade.sh"))
f_deb_upgrade.addStep(getDebUpgradeStep())

## f_deb_upgrade_from_version
getDebUpgradeVersionSteps(f_deb_upgrade)

## f_rpm_install
f_rpm_install = util.BuildFactory()
f_rpm_install.addStep(getScript("rpm-install.sh"))
Expand Down
8 changes: 7 additions & 1 deletion scripts/deb-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ set -e
manual_run_switch "$1"

upgrade_type_mode
upgrade_test_type "$test_type"

# If there is available previous major version
# then expect that it will be used as base of
# installation
if [ -z "${prev_major_version}" ]; then
upgrade_test_type "$test_type"
fi

bb_print_env

Expand Down

0 comments on commit b685b80

Please sign in to comment.