Skip to content

Commit

Permalink
Merge branch 'main' into tes-mariadb-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmadhankumar authored Nov 13, 2024
2 parents cdb0999 + 6ed899c commit 7b6c05e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_systemd_no_udev_present(self, auto_container):
def test_systemd_boottime(self, auto_container):
"""Ensure the container startup time is below 5 seconds"""

# FIXME: Temporary workaround: While using emulated workers, the startup time test doesn't make sense.'
# https://github.com/SUSE/BCI-tests/issues/647
if auto_container.connection.system_info.arch == "ppc64le":
pytest.skip(
"boottime test temporarily disabled on emulated ppc64le workers."
Expand Down
5 changes: 4 additions & 1 deletion tests/test_mariadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from pytest_container.container import container_and_marks_from_pytest_param
from pytest_container.pod import Pod
from pytest_container.pod import PodData
from pytest_container.runtime import LOCALHOST
from pytest_container.runtime import OciRuntimeBase
from tenacity import retry
from tenacity import stop_after_attempt
Expand Down Expand Up @@ -93,7 +94,9 @@ def _generate_test_matrix() -> List[ParameterSet]:

@retry(
wait=wait_exponential(multiplier=1, min=4, max=10),
stop=stop_after_attempt(5),
stop=stop_after_attempt(
8 if LOCALHOST.system_info.arch == "ppc64le" else 5
),
)
def _wait_for_server(connection):
connection.check_output("healthcheck.sh --connect")
Expand Down
8 changes: 8 additions & 0 deletions tests/test_postgres.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests for the PostgreSQL related application container images."""

from datetime import timedelta
from itertools import product
from typing import List
from typing import Optional
Expand All @@ -10,6 +11,7 @@
from pytest_container.container import ContainerData
from pytest_container.container import DerivedContainer
from pytest_container.container import container_and_marks_from_pytest_param
from pytest_container.runtime import LOCALHOST

from bci_tester.data import POSTGRESQL_CONTAINERS
from bci_tester.data import POSTGRES_PASSWORD
Expand Down Expand Up @@ -66,6 +68,12 @@ def _generate_test_matrix() -> List[ParameterSet]:
extra_launch_args=(
["--user", username] if username else []
),
# https://github.com/SUSE/BCI-tests/issues/647
healthcheck_timeout=(
timedelta(minutes=3)
if LOCALHOST.system_info.arch == "ppc64le"
else None
),
),
pg_user,
pw,
Expand Down

0 comments on commit 7b6c05e

Please sign in to comment.