chore: upload all the logs from /tmp (#3263)

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-07-04 09:17:25 +03:00 committed by GitHub
parent 3506ee0a14
commit d8946247df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -53,7 +53,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: logs
path: /tmp/failed/*
path: /tmp/dragonfly.*
lint-test-chart:
runs-on: ubuntu-latest

View File

@ -19,7 +19,7 @@ import time
from copy import deepcopy
from pathlib import Path
from tempfile import TemporaryDirectory
from tempfile import TemporaryDirectory, gettempdir
from .instance import DflyInstance, DflyParams, DflyInstanceFactory, RedisServer
from . import PortPicker, dfly_args
@ -82,6 +82,7 @@ def df_factory(request, tmp_dir, test_env) -> DflyInstanceFactory:
"""
Create an instance factory with supplied params.
"""
os.makedirs(os.path.join(gettempdir(), "tiered"), exist_ok=True)
scripts_dir = os.path.dirname(os.path.abspath(__file__))
path = os.environ.get("DRAGONFLY_PATH", os.path.join(scripts_dir, "../../build-dbg/dragonfly"))
@ -327,6 +328,7 @@ def with_ca_tls_client_args(with_tls_client_args, with_tls_ca_cert_args):
def copy_failed_logs_and_clean_tmp_folder(report):
return # TODO: to fix it first and then enable it.
failed_path = "/tmp/failed"
path_exists = os.path.exists(failed_path)
if not path_exists:

View File

@ -10,7 +10,7 @@ from .seeder import StaticSeeder
from .utility import info_tick_timer
BASIC_ARGS = {"port": 6379, "proactor_threads": 4, "tiered_prefix": "/tmp/tiering_test_backing"}
BASIC_ARGS = {"port": 6379, "proactor_threads": 4, "tiered_prefix": "/tmp/tiered/backing"}
@pytest.mark.skip("Requires evaluating runner performance first")