b0cdcd3483
* Update deployment files for mgbuilders because of toolchain upgrade * Fix args parameter in builder yaml files * Add fedora 38, 39 and rockylinux 9.3 mgbuilder Dockerfiles * Change format of ARG TOOLCHAIN_VERSION from toolchain-vX to vX * Add function to check supported arch, build type, os and toolchain * Add options to init subcommand * Add image names to mgbuilders * Add v2 of the run.sh script * Add testing to run2.sh * Add option for threads --thread * Add options for enterprise license and organization name * Make stop mgbuild container step run always * Add --ci flag to init script * Move init conditionals under build-memgraph flags * Add --community flag to build-memgraph * Change target dir inside mgbuild container * Add node fix to debian 11, ubuntu 20.04 and ubuntu 22.04 * rm memgraph repo after installing deps * Add mg user in Dockerfile * Add step to install rust on all OSs * Chown files copied into mgbuild container * Add e2e tests * Add jepsen test * Bugfix: Using reference in a callback * Bugfix: Broad target for e2e tests * Up db info test limit * Disable e2e streams tests * Fix default THREADS * Prioretize docker compose over docker-compose * Improve selection between docker compose and docker-compose * Install PyYAML as mg user * Fix doxygen install for rocky linux 9.3 * Fix rocky-9.3 environment script to properly install sbcl * Rename all rocky-9 mentions to rocky-9.3 * Add mgdeps-cache and benchgraph-api hostnames to mgbuild images * Add logic to pull mgbuild image if missing * Fix build errors on toolchain-v5 (#1806) * Rename run2 script, remove run script, add small features to mgbuild.sh * Add --no-copy flag to build-memgraph to resolve TODO * Add timeouts to diff jobs * Fix asio flaky clone, try mgdeps-cache first --------- Co-authored-by: Andreja Tonev <andreja.tonev@memgraph.io> Co-authored-by: Ante Pušić <ante.f.pusic@gmail.com> Co-authored-by: antoniofilipovic <filipovicantonio1998@gmail.com>
41 lines
1.4 KiB
Bash
Executable File
41 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd "$SCRIPT_DIR"
|
|
|
|
print_help() {
|
|
echo -e "$0 ["workload name string"]"
|
|
echo -e ""
|
|
echo -e " NOTE: some tests require enterprise licence key,"
|
|
echo -e " to run those define the folowing env vars:"
|
|
echo -e " * MEMGRAPH_ORGANIZATION_NAME"
|
|
echo -e " * MEMGRAPH_ENTERPRISE_LICENSE"
|
|
exit 1
|
|
}
|
|
check_license() {
|
|
if [ ! -v MEMGRAPH_ORGANIZATION_NAME ] || [ ! -v MEMGRAPH_ENTERPRISE_LICENSE ]; then
|
|
echo "NOTE: MEMGRAPH_ORGANIZATION_NAME or MEMGRAPH_ENTERPRISE_LICENSE NOT defined -> dependent tests will NOT work"
|
|
fi
|
|
}
|
|
|
|
source "$SCRIPT_DIR/../util.sh"
|
|
setup_node
|
|
|
|
if [ "$#" -eq 0 ]; then
|
|
check_license
|
|
# NOTE: If you want to run all tests under specific folder/section just
|
|
# replace the dot (root directory below) with the folder name, e.g.
|
|
# `--workloads-root-directory replication`.
|
|
python3 runner.py --workloads-root-directory "$SCRIPT_DIR/../../build/tests/e2e"
|
|
elif [ "$#" -eq 1 ]; then
|
|
if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
|
|
print_help
|
|
fi
|
|
check_license
|
|
# NOTE: --workload-name comes from each individual folder/section
|
|
# workloads.yaml file. E.g. `streams/workloads.yaml` has a list of
|
|
# `workloads:` and each workload has it's `-name`.
|
|
python3 runner.py --workloads-root-directory "$SCRIPT_DIR/../../build/tests/e2e" --workload-name "$1"
|
|
else
|
|
print_help
|
|
fi
|