Skip to content

fix test.py #532

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
14 changes: 14 additions & 0 deletions jenkins/nightly_local.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
#!/bin/bash
ulimit -n 65535
export LANGUAGE=en_US@utf-8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_NUMERIC=en_US.UTF-8
export LC_TIME=en_US.UTF-8
export LC_COLLATE=en_US.UTF-8
export LC_MONETARY=en_US.UTF-8
export LC_MESSAGES=en_US.UTF-8
export LC_PAPER=en_US.UTF-8
export LC_NAME=en_US.UTF-8
export LC_ADDRESS=en_US.UTF-8
export LC_TELEPHONE=en_US.UTF-8
export LC_MEASUREMENT=en_US.UTF-8
export LC_IDENTIFICATION=en_US.UTF-8
export PYTHONUNBUFFERED=1
export ENDPOINT=http://localhost:9000
DOCKER_NETWORK_NAME=host
RTA_DIR="$(pwd)"
Expand Down
14 changes: 14 additions & 0 deletions jenkins/nightly_local_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
#!/bin/bash
ulimit -n 65535
export LANGUAGE=en_US@utf-8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_NUMERIC=en_US.UTF-8
export LC_TIME=en_US.UTF-8
export LC_COLLATE=en_US.UTF-8
export LC_MONETARY=en_US.UTF-8
export LC_MESSAGES=en_US.UTF-8
export LC_PAPER=en_US.UTF-8
export LC_NAME=en_US.UTF-8
export LC_ADDRESS=en_US.UTF-8
export LC_TELEPHONE=en_US.UTF-8
export LC_MEASUREMENT=en_US.UTF-8
export LC_IDENTIFICATION=en_US.UTF-8
export PYTHONUNBUFFERED=1
export ENDPOINT=http://localhost:9000
DOCKER_NETWORK_NAME=host
RTA_DIR="$(pwd)"
Expand Down
32 changes: 11 additions & 21 deletions release_tester/arangodb/installers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@

from reporting.reporting_utils import step

from arangodb.hot_backup_cfg import (
HotBackupCliCfg,
HotBackupProviderCfg,
HotBackupMode,
HB_PROVIDERS
)
from arangodb.hot_backup_cfg import HotBackupCliCfg, HotBackupProviderCfg, HotBackupMode, HB_PROVIDERS

IS_WINDOWS = platform.win32_ver()[0] != ""
IS_MAC = platform.mac_ver()[0] != ""
SYSTEM = platform.system()
DISTRO = ""


@dataclass
class InstallerBaseConfig(OptionGroup):
"""commandline argument config settings"""
Expand All @@ -45,6 +41,7 @@ class InstallerBaseConfig(OptionGroup):
checkdata: bool
is_instrumented: bool


class InstallerFrontend:
# pylint: disable=too-few-public-methods
"""class describing frontend instances"""
Expand All @@ -59,7 +56,7 @@ class InstallerConfig:
"""stores the baseline of this environment"""

# pylint: disable=too-many-arguments disable=too-many-instance-attributes
# pylint: disable=too-many-locals disable=too-many-statements
# pylint: disable=too-many-locals disable=too-many-statements disable=invalid-name
def __init__(
self,
version: str,
Expand All @@ -83,17 +80,14 @@ def __init__(
self.supports_rolling_upgrade = not IS_WINDOWS
self.verbose = bc.verbose
self.package_dir = bc.package_dir
self.have_system_service = False # TODO: re-enable not self.zip_package and self.src_testing
self.have_system_service = False # TODO: re-enable not self.zip_package and self.src_testing
self.debug_package_is_installed = False
self.client_package_is_installed = False
self.server_package_is_installed = False
self.stress_upgrade = bc.stress_upgrade

self.deployment_mode = deployment_mode
self.do_install = self.deployment_mode in ["all", "install"]
self.do_uninstall = self.deployment_mode in ["all", "uninstall"]
self.do_system_test = self.deployment_mode in ["all", "system"] and self.have_system_service
self.do_starter_test = self.deployment_mode != "none" # in ["all", "tests"]

self.install_prefix = Path("/")

self.base_test_dir = bc.test_data_dir
Expand Down Expand Up @@ -186,10 +180,6 @@ def set_from(self, other_cfg):
self.src_testing = other_cfg.src_testing

self.deployment_mode = other_cfg.deployment_mode
self.do_install = other_cfg.do_install
self.do_uninstall = other_cfg.do_uninstall
self.do_system_test = other_cfg.do_system_test
self.do_starter_test = other_cfg.do_starter_test
self.supports_rolling_upgrade = other_cfg.supports_rolling_upgrade
self.verbose = other_cfg.verbose
self.package_dir = other_cfg.package_dir
Expand Down Expand Up @@ -374,7 +364,7 @@ def __init__(
testrun_name: str = "",
directory_suffix: str = "",
minimum_supported_version: str = "3.5.0",
use_auto_certs: bool = True,
use_auto_certs: bool = False,
cluster_nodes: int = 3,
):
"""set the values for this testrun"""
Expand All @@ -394,9 +384,9 @@ def __init__(
self.cluster_nodes = cluster_nodes

def set_kwargs(self, kwargs):
""" pick values from the commandline arguments that should override defaults"""
self.use_auto_certs = kwargs['use_auto_certs']
self.cluster_nodes = kwargs['cluster_nodes']
"""pick values from the commandline arguments that should override defaults"""
self.use_auto_certs = kwargs["use_auto_certs"]
self.cluster_nodes = kwargs["cluster_nodes"]

def __repr__(self):
return """{0.__class__.__name__}
Expand Down Expand Up @@ -447,7 +437,7 @@ def create_config_installer_set(
run_properties.ssl,
run_properties.force_one_shard,
run_properties.use_auto_certs,
base_config.arangods
base_config.arangods,
)
installer = make_installer(install_config)
installer.calculate_package_names()
Expand Down
Loading