Compare commits
3 Commits
cpp23
...
add-logs-t
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
798903e236 | ||
|
|
28f49a3b90 | ||
|
|
d66c66ff85 |
34
.github/workflows/diff.yaml
vendored
34
.github/workflows/diff.yaml
vendored
@@ -213,6 +213,16 @@ jobs:
|
|||||||
name: "Code coverage (Debug build)"
|
name: "Code coverage (Debug build)"
|
||||||
path: tools/github/cppcheck_and_clang_format.txt
|
path: tools/github/cppcheck_and_clang_format.txt
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Debug build)"
|
||||||
|
path: |
|
||||||
|
build/logs
|
||||||
|
/tmp/memgraph_drivers/logs
|
||||||
|
/tmp/memgraph_integration/logs
|
||||||
|
|
||||||
release_build:
|
release_build:
|
||||||
name: "Release build"
|
name: "Release build"
|
||||||
runs-on: [self-hosted, Linux, X64, Diff]
|
runs-on: [self-hosted, Linux, X64, Diff]
|
||||||
@@ -330,14 +340,12 @@ jobs:
|
|||||||
name: "Enterprise DEB package"
|
name: "Enterprise DEB package"
|
||||||
path: build/output/memgraph*.deb
|
path: build/output/memgraph*.deb
|
||||||
|
|
||||||
- name: Save test data
|
- name: Save test logs
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: "Test data(Release build)"
|
name: "Test logs (Release build)"
|
||||||
path: |
|
path: build/logs
|
||||||
# multiple paths could be defined
|
|
||||||
build/logs
|
|
||||||
|
|
||||||
experimental_build_ha:
|
experimental_build_ha:
|
||||||
name: "High availability build"
|
name: "High availability build"
|
||||||
@@ -377,14 +385,12 @@ jobs:
|
|||||||
./run.sh "Coordinator"
|
./run.sh "Coordinator"
|
||||||
./run.sh "Client initiated failover"
|
./run.sh "Client initiated failover"
|
||||||
./run.sh "Uninitialized cluster"
|
./run.sh "Uninitialized cluster"
|
||||||
- name: Save test data
|
- name: Save test logs
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: "Test data(High availability build)"
|
name: "Test logs (High availability build)"
|
||||||
path: |
|
path: build/logs
|
||||||
# multiple paths could be defined
|
|
||||||
build/logs
|
|
||||||
|
|
||||||
experimental_build_mt:
|
experimental_build_mt:
|
||||||
name: "MultiTenancy replication build"
|
name: "MultiTenancy replication build"
|
||||||
@@ -442,14 +448,12 @@ jobs:
|
|||||||
./run.sh "Index replication"
|
./run.sh "Index replication"
|
||||||
./run.sh "Constraints"
|
./run.sh "Constraints"
|
||||||
|
|
||||||
- name: Save test data
|
- name: Save test logs
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: "Test data(MultiTenancy replication build)"
|
name: "Test logs (MultiTenancy replication build)"
|
||||||
path: |
|
path: build/logs
|
||||||
# multiple paths could be defined
|
|
||||||
build/logs
|
|
||||||
|
|
||||||
release_jepsen_test:
|
release_jepsen_test:
|
||||||
name: "Release Jepsen Test"
|
name: "Release Jepsen Test"
|
||||||
|
|||||||
28
.github/workflows/release_debian10.yaml
vendored
28
.github/workflows/release_debian10.yaml
vendored
@@ -168,6 +168,13 @@ jobs:
|
|||||||
name: "Code coverage (Debug build)"
|
name: "Code coverage (Debug build)"
|
||||||
path: tools/github/cppcheck_and_clang_format.txt
|
path: tools/github/cppcheck_and_clang_format.txt
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Debug drivers tests)"
|
||||||
|
path: build/logs
|
||||||
|
|
||||||
debug_integration_test:
|
debug_integration_test:
|
||||||
name: "Debug integration tests"
|
name: "Debug integration tests"
|
||||||
runs-on: [self-hosted, Linux, X64, Debian10]
|
runs-on: [self-hosted, Linux, X64, Debian10]
|
||||||
@@ -198,6 +205,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tests/integration/run.sh
|
tests/integration/run.sh
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Debug integration tests)"
|
||||||
|
path: build/logs
|
||||||
|
|
||||||
release_build:
|
release_build:
|
||||||
name: "Release build"
|
name: "Release build"
|
||||||
runs-on: [self-hosted, Linux, X64, Debian10]
|
runs-on: [self-hosted, Linux, X64, Debian10]
|
||||||
@@ -369,6 +383,13 @@ jobs:
|
|||||||
cd ../pulsar
|
cd ../pulsar
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Release e2e tests)"
|
||||||
|
path: build/logs
|
||||||
|
|
||||||
release_durability_stress_tests:
|
release_durability_stress_tests:
|
||||||
name: "Release durability and stress tests"
|
name: "Release durability and stress tests"
|
||||||
runs-on: [self-hosted, Linux, X64, Debian10]
|
runs-on: [self-hosted, Linux, X64, Debian10]
|
||||||
@@ -417,6 +438,13 @@ jobs:
|
|||||||
source ve3/bin/activate
|
source ve3/bin/activate
|
||||||
python3 durability --num-steps 20
|
python3 durability --num-steps 20
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Release durability and stress)"
|
||||||
|
path: build/logs
|
||||||
|
|
||||||
release_jepsen_test:
|
release_jepsen_test:
|
||||||
name: "Release Jepsen Test"
|
name: "Release Jepsen Test"
|
||||||
runs-on: [self-hosted, Linux, X64, Debian10, JepsenControl]
|
runs-on: [self-hosted, Linux, X64, Debian10, JepsenControl]
|
||||||
|
|||||||
28
.github/workflows/release_ubuntu2004.yaml
vendored
28
.github/workflows/release_ubuntu2004.yaml
vendored
@@ -164,6 +164,13 @@ jobs:
|
|||||||
name: "Code coverage (Debug build)"
|
name: "Code coverage (Debug build)"
|
||||||
path: tools/github/cppcheck_and_clang_format.txt
|
path: tools/github/cppcheck_and_clang_format.txt
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Debug drivers tests)"
|
||||||
|
path: build/logs
|
||||||
|
|
||||||
debug_integration_test:
|
debug_integration_test:
|
||||||
name: "Debug integration tests"
|
name: "Debug integration tests"
|
||||||
runs-on: [self-hosted, Linux, X64, Ubuntu20.04]
|
runs-on: [self-hosted, Linux, X64, Ubuntu20.04]
|
||||||
@@ -194,6 +201,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tests/integration/run.sh
|
tests/integration/run.sh
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Debug integration tests)"
|
||||||
|
path: build/logs
|
||||||
|
|
||||||
release_build:
|
release_build:
|
||||||
name: "Release build"
|
name: "Release build"
|
||||||
runs-on: [self-hosted, Linux, X64, Ubuntu20.04]
|
runs-on: [self-hosted, Linux, X64, Ubuntu20.04]
|
||||||
@@ -365,6 +379,13 @@ jobs:
|
|||||||
cd ../pulsar
|
cd ../pulsar
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Release e2e tests)"
|
||||||
|
path: build/logs
|
||||||
|
|
||||||
release_durability_stress_tests:
|
release_durability_stress_tests:
|
||||||
name: "Release durability and stress tests"
|
name: "Release durability and stress tests"
|
||||||
runs-on: [self-hosted, Linux, X64, Ubuntu20.04]
|
runs-on: [self-hosted, Linux, X64, Ubuntu20.04]
|
||||||
@@ -412,3 +433,10 @@ jobs:
|
|||||||
cd tests/stress
|
cd tests/stress
|
||||||
source ve3/bin/activate
|
source ve3/bin/activate
|
||||||
python3 durability --num-steps 20
|
python3 durability --num-steps 20
|
||||||
|
|
||||||
|
- name: Save test logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: "Test logs (Release durability and stress)"
|
||||||
|
path: build/logs
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ def execute_test(memgraph_binary, tester_binary):
|
|||||||
"--data-directory",
|
"--data-directory",
|
||||||
storage_directory.name,
|
storage_directory.name,
|
||||||
"--audit-enabled",
|
"--audit-enabled",
|
||||||
"--log-file=memgraph.log",
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
"--log-level=TRACE",
|
"--log-level=TRACE",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -131,7 +131,12 @@ def check_permissions(query_perms, user_perms):
|
|||||||
|
|
||||||
def execute_test(memgraph_binary, tester_binary, checker_binary):
|
def execute_test(memgraph_binary, tester_binary, checker_binary):
|
||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
memgraph_args = [memgraph_binary, "--data-directory", storage_directory.name]
|
memgraph_args = [
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
|
||||||
def execute_admin_queries(queries):
|
def execute_admin_queries(queries):
|
||||||
return execute_tester(
|
return execute_tester(
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ def execute_test(memgraph_binary, dump_binary, test_directory, test_type, write_
|
|||||||
"--storage-properties-on-edges",
|
"--storage-properties-on-edges",
|
||||||
"--data-directory",
|
"--data-directory",
|
||||||
working_data_directory.name,
|
working_data_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Start the memgraph binary
|
# Start the memgraph binary
|
||||||
|
|||||||
@@ -112,7 +112,12 @@ def test_with_passfile_env_variable(storage_directory: tempfile.TemporaryDirecto
|
|||||||
|
|
||||||
def execute_test(memgraph_binary: str, tester_binary: str) -> None:
|
def execute_test(memgraph_binary: str, tester_binary: str) -> None:
|
||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
memgraph_args = [memgraph_binary, "--data-directory", storage_directory.name]
|
memgraph_args = [
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
|
||||||
return_to_prev_state = {}
|
return_to_prev_state = {}
|
||||||
if "MEMGRAPH_USER" in os.environ:
|
if "MEMGRAPH_USER" in os.environ:
|
||||||
|
|||||||
@@ -61,7 +61,12 @@ def execute_filtering(
|
|||||||
|
|
||||||
def execute_test(memgraph_binary: str, tester_binary: str, filtering_binary: str) -> None:
|
def execute_test(memgraph_binary: str, tester_binary: str, filtering_binary: str) -> None:
|
||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
memgraph_args = [memgraph_binary, "--data-directory", storage_directory.name]
|
memgraph_args = [
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
|
||||||
def execute_admin_queries(queries):
|
def execute_admin_queries(queries):
|
||||||
return execute_tester(
|
return execute_tester(
|
||||||
|
|||||||
@@ -124,7 +124,12 @@ def test_init_and_init_data_file(flag_checker_binary: str, tester_binary: str, m
|
|||||||
|
|
||||||
def execute_test(memgraph_binary: str, tester_binary: str, flag_checker_binary: str) -> None:
|
def execute_test(memgraph_binary: str, tester_binary: str, flag_checker_binary: str) -> None:
|
||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
memgraph_args = [memgraph_binary, "--data-directory", storage_directory.name]
|
memgraph_args = [
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
|
||||||
# Start the memgraph binary
|
# Start the memgraph binary
|
||||||
with open(os.path.join(os.getcwd(), "dummy_init_file.cypherl"), "w") as temp_file:
|
with open(os.path.join(os.getcwd(), "dummy_init_file.cypherl"), "w") as temp_file:
|
||||||
|
|||||||
@@ -39,10 +39,28 @@ def terminate_memgraph(memgraph):
|
|||||||
def execute_test_restart_memgraph_with_init_file(memgraph_binary: str, tester_binary: str) -> None:
|
def execute_test_restart_memgraph_with_init_file(memgraph_binary: str, tester_binary: str) -> None:
|
||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
tester_args = [tester_binary, "--username", "memgraph1", "--password", "1234"]
|
tester_args = [tester_binary, "--username", "memgraph1", "--password", "1234"]
|
||||||
memgraph = prepare_memgraph([memgraph_binary, "--data-directory", storage_directory.name, "--init-file", INIT_FILE])
|
memgraph = prepare_memgraph(
|
||||||
|
[
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--init-file",
|
||||||
|
INIT_FILE,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
)
|
||||||
subprocess.run(tester_args, stdout=subprocess.PIPE, check=True).check_returncode()
|
subprocess.run(tester_args, stdout=subprocess.PIPE, check=True).check_returncode()
|
||||||
terminate_memgraph(memgraph)
|
terminate_memgraph(memgraph)
|
||||||
memgraph = prepare_memgraph([memgraph_binary, "--data-directory", storage_directory.name, "--init-file", INIT_FILE])
|
memgraph = prepare_memgraph(
|
||||||
|
[
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--init-file",
|
||||||
|
INIT_FILE,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
)
|
||||||
subprocess.run(tester_args, stdout=subprocess.PIPE, check=True).check_returncode()
|
subprocess.run(tester_args, stdout=subprocess.PIPE, check=True).check_returncode()
|
||||||
terminate_memgraph(memgraph)
|
terminate_memgraph(memgraph)
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ class Memgraph:
|
|||||||
self._storage_directory.name,
|
self._storage_directory.name,
|
||||||
"--auth-module-executable",
|
"--auth-module-executable",
|
||||||
kwargs.pop("module_executable", self._auth_module),
|
kwargs.pop("module_executable", self._auth_module),
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
]
|
]
|
||||||
for key, value in kwargs.items():
|
for key, value in kwargs.items():
|
||||||
ldap_key = "--auth-module-" + key.replace("_", "-")
|
ldap_key = "--auth-module-" + key.replace("_", "-")
|
||||||
|
|||||||
@@ -51,7 +51,12 @@ def verify_lifetime(memgraph_binary, mg_import_csv_binary):
|
|||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
|
|
||||||
# Generate common args
|
# Generate common args
|
||||||
common_args = ["--data-directory", storage_directory.name, "--storage-properties-on-edges=false"]
|
common_args = [
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--storage-properties-on-edges=false",
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
|
||||||
# Start the memgraph binary
|
# Start the memgraph binary
|
||||||
memgraph_args = [memgraph_binary, "--storage-recover-on-startup"] + common_args
|
memgraph_args = [memgraph_binary, "--storage-recover-on-startup"] + common_args
|
||||||
@@ -109,6 +114,7 @@ def execute_test(name, test_path, test_config, memgraph_binary, mg_import_csv_bi
|
|||||||
"--data-directory",
|
"--data-directory",
|
||||||
storage_directory.name,
|
storage_directory.name,
|
||||||
"--storage-properties-on-edges=" + str(properties_on_edges).lower(),
|
"--storage-properties-on-edges=" + str(properties_on_edges).lower(),
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Generate mg_import_csv args using flags specified in the test
|
# Generate mg_import_csv args using flags specified in the test
|
||||||
|
|||||||
@@ -183,7 +183,12 @@ def execute_test(
|
|||||||
memgraph_binary: str, tester_binary: str, flag_tester_binary: str, executor_binary: str, test_config_binary: str
|
memgraph_binary: str, tester_binary: str, flag_tester_binary: str, executor_binary: str, test_config_binary: str
|
||||||
) -> None:
|
) -> None:
|
||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
memgraph_args = [memgraph_binary, "--data-directory", storage_directory.name]
|
memgraph_args = [
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
|
||||||
print("\033[1;36m~~ Starting run-time settings check test ~~\033[0m")
|
print("\033[1;36m~~ Starting run-time settings check test ~~\033[0m")
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,14 @@ def execute_test_analytical_mode(memgraph_binary: str, tester_binary: str) -> No
|
|||||||
return execute_tester(tester_binary, queries, should_fail=False, check_failure=True, username="", password="")
|
return execute_tester(tester_binary, queries, should_fail=False, check_failure=True, username="", password="")
|
||||||
|
|
||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
memgraph = prepare_memgraph([memgraph_binary, "--data-directory", storage_directory.name])
|
memgraph = prepare_memgraph(
|
||||||
|
[
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
print("\033[1;36m~~ Starting creating & loading snapshot test ~~\033[0m")
|
print("\033[1;36m~~ Starting creating & loading snapshot test ~~\033[0m")
|
||||||
|
|
||||||
@@ -90,7 +97,13 @@ def execute_test_analytical_mode(memgraph_binary: str, tester_binary: str) -> No
|
|||||||
|
|
||||||
# Start the memgraph binary
|
# Start the memgraph binary
|
||||||
memgraph = prepare_memgraph(
|
memgraph = prepare_memgraph(
|
||||||
[memgraph_binary, "--data-directory", storage_directory.name, "--storage-recover-on-startup=true"]
|
[
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--storage-recover-on-startup=true",
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
execute_queries(assertion_queries)
|
execute_queries(assertion_queries)
|
||||||
@@ -110,7 +123,14 @@ def execute_test_switch_analytical_transactional(memgraph_binary: str, tester_bi
|
|||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
|
|
||||||
# Start the memgraph binary
|
# Start the memgraph binary
|
||||||
memgraph = prepare_memgraph([memgraph_binary, "--data-directory", storage_directory.name])
|
memgraph = prepare_memgraph(
|
||||||
|
[
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
print("\033[1;36m~~ Starting switch storage modes test ~~\033[0m")
|
print("\033[1;36m~~ Starting switch storage modes test ~~\033[0m")
|
||||||
|
|
||||||
@@ -138,7 +158,13 @@ def execute_test_switch_analytical_transactional(memgraph_binary: str, tester_bi
|
|||||||
print("\033[1;36m~~ Starting memgraph with snapshot recovery ~~\033[0m\n")
|
print("\033[1;36m~~ Starting memgraph with snapshot recovery ~~\033[0m\n")
|
||||||
|
|
||||||
memgraph = prepare_memgraph(
|
memgraph = prepare_memgraph(
|
||||||
[memgraph_binary, "--data-directory", storage_directory.name, "--storage-recover-on-startup=true"]
|
[
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--storage-recover-on-startup=true",
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
execute_queries(assertion_queries)
|
execute_queries(assertion_queries)
|
||||||
@@ -159,7 +185,14 @@ def execute_test_switch_transactional_analytical(memgraph_binary: str, tester_bi
|
|||||||
storage_directory = tempfile.TemporaryDirectory()
|
storage_directory = tempfile.TemporaryDirectory()
|
||||||
|
|
||||||
# Start the memgraph binary
|
# Start the memgraph binary
|
||||||
memgraph = prepare_memgraph([memgraph_binary, "--data-directory", storage_directory.name])
|
memgraph = prepare_memgraph(
|
||||||
|
[
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
print("\033[1;36m~~ Starting switch storage modes test ~~\033[0m")
|
print("\033[1;36m~~ Starting switch storage modes test ~~\033[0m")
|
||||||
|
|
||||||
@@ -184,7 +217,13 @@ def execute_test_switch_transactional_analytical(memgraph_binary: str, tester_bi
|
|||||||
print("\033[1;36m~~ Starting memgraph with snapshot recovery ~~\033[0m\n")
|
print("\033[1;36m~~ Starting memgraph with snapshot recovery ~~\033[0m\n")
|
||||||
|
|
||||||
memgraph = prepare_memgraph(
|
memgraph = prepare_memgraph(
|
||||||
[memgraph_binary, "--data-directory", storage_directory.name, "--storage-recover-on-startup=true"]
|
[
|
||||||
|
memgraph_binary,
|
||||||
|
"--data-directory",
|
||||||
|
storage_directory.name,
|
||||||
|
"--storage-recover-on-startup=true",
|
||||||
|
"--log-file=/tmp/memgraph_integration/logs/memgraph.log",
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
execute_queries(assertion_queries)
|
execute_queries(assertion_queries)
|
||||||
|
|||||||
Reference in New Issue
Block a user