diff --git a/tests/stress/continuous_integration b/tests/stress/continuous_integration index 13ac405a9..2ce170c19 100755 --- a/tests/stress/continuous_integration +++ b/tests/stress/continuous_integration @@ -115,6 +115,10 @@ parser.add_argument("--verbose", action = "store_const", const = True, default = False) args = parser.parse_args() +# find memgraph binary +if not os.path.exists(args.memgraph): + args.memgraph = os.path.join(BASE_DIR, "build_release", "memgraph") + # start memgraph cwd = os.path.dirname(args.memgraph) cmd = [args.memgraph, "--num-workers=" + str(THREADS)] diff --git a/tools/apollo/generate b/tools/apollo/generate index 74072b871..b633e0c8c 100755 --- a/tools/apollo/generate +++ b/tools/apollo/generate @@ -55,12 +55,12 @@ def find_memgraph_binary(loc): def generate_run(name, typ = "run", supervisor = "", commands = "", arguments = "", enable_network = False, - outfile_paths = "", infile = ""): + outfile_paths = "", infile = "", slave_group = "local"): if not commands.endswith("\n"): commands += "\n" return dict(name = name, type = typ, supervisor = supervisor, commands = commands, arguments = arguments, enable_network = enable_network, outfile_paths = outfile_paths, - infile = infile) + infile = infile, slave_group = slave_group) def generate_archive(name, short_name, archive): return dict(name = name, short_name = short_name, archive = archive) @@ -249,9 +249,14 @@ stress_path = os.path.join(BASE_DIR, "tests", "stress") infile = create_archive("stress", [binary_release_path, binary_release_link_path, stress_path, config_path], cwd = WORKSPACE_DIR) -cmd = "cd {}/tests/stress\nTIMEOUT=600 ./continuous_integration " \ - "--memgraph {}".format(BASE_DIR_NAME, binary_release_link_path) +cmd = "cd memgraph/tests/stress\nTIMEOUT=600 ./continuous_integration" RUNS.append(generate_run("stress", commands = cmd, infile = infile)) +# stress tests for daily release (large dataset) +if mode == "release": + cmd = "cd memgraph/tests/stress\nTIMEOUT=43200 ./continuous_integration" \ + " --large-dataset" + RUNS.append(generate_run("stress_large", commands = cmd, infile = infile, + slave_group = "remote_16c56g")) # store ARCHIVES and RUNS store_metadata(OUTPUT_DIR, "archives", ARCHIVES)