Skip to content

Commit

Permalink
Increase timeouts and log test timestamps (#792)
Browse files Browse the repository at this point in the history
* Configure pytest to log timestamps

We'll configure pytest to use log timestamps, which allows us to
correlate test logs with kubernetes logs.

* Bump test timeouts again

We're waiting about 5 minutes for new nodes to become ready, however
sometimes this isn't enough. It can take around one minute just to
pull the cilium image.

For this reason, we'll double the test timeouts again.
  • Loading branch information
petrutlucian94 authored Nov 14, 2024
1 parent 5b032a9 commit 2e71353
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/branch_management/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ commands =
--tb native \
--log-cli-level DEBUG \
--disable-warnings \
--log-format "%(asctime)s %(levelname)s %(message)s" \
--log-date-format "%Y-%m-%d %H:%M:%S" \
{posargs} \
{tox_root}/tests
pass_env =
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/tests/test_util/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
DIR = Path(__file__).absolute().parent

# The following defaults are used to define how long to wait for a condition to be met.
DEFAULT_WAIT_RETRIES = int(os.getenv("TEST_DEFAULT_WAIT_RETRIES") or 60)
DEFAULT_WAIT_RETRIES = int(os.getenv("TEST_DEFAULT_WAIT_RETRIES") or 120)
DEFAULT_WAIT_DELAY_S = int(os.getenv("TEST_DEFAULT_WAIT_DELAY_S") or 5)

MANIFESTS_DIR = DIR / ".." / ".." / "templates"
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ commands =
--maxfail 1 \
--tb native \
--log-cli-level DEBUG \
--log-format "%(asctime)s %(levelname)s %(message)s" \
--log-date-format "%Y-%m-%d %H:%M:%S" \
--disable-warnings \
{posargs} \
{toxinidir}/tests
Expand Down

0 comments on commit 2e71353

Please sign in to comment.