Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions smoke-release-testing/data/nodes.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id
1
Binary file added smoke-release-testing/data/nodes.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions smoke-release-testing/experiment.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ source "$SCRIPT_DIR/utils.bash"
# NOTE: Use the below line if you just want to spin up the containers and leave them running.
# run_memgraph_docker_containers RC RC
# NOTE: Use the below line if you want to cleanup the containers after run of this script.
spinup_and_cleanup_memgraph_dockers none none
spinup_and_cleanup_memgraph_dockers none RC
echo "Waiting for memgraph to initialize..."
wait_for_memgraph $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_NEXT_DATA_BOLT_PORT
echo "Memgraph is up and running!"

source ./mgconsole/user_profiles.bash
test_user_profiles $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_NEXT_DATA_BOLT_PORT
source ./mgconsole/load_xyz.bash
test_load_parquet $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_NEXT_DATA_BOLT_PORT

# NOTE: Test what's the exit status of the script by using `echo $?`:
# * if it's == 0 -> all good
Expand Down
11 changes: 11 additions & 0 deletions smoke-release-testing/mgconsole/load_xyz.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_load_parquet() {

Check warning on line 5 in smoke-release-testing/mgconsole/load_xyz.bash

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Add an explicit return statement at the end of the function.

See more on https://sonarcloud.io/project/issues?id=memgraph_mage&issues=AZpms6g_f5o6FJrLfhIm&open=AZpms6g_f5o6FJrLfhIm&pullRequest=680
# Added in v3.7.
echo "FEATURE: LOAD PARQUET"
run_next "MATCH (n) DETACH DELETE n;"
run_next "LOAD PARQUET FROM '/data/nodes.parquet' AS row CREATE (n:Node {id: row.id});"
run_next_csv "MATCH (n) RETURN n;" | python3 $SCRIPT_DIR/validator.py validate_number_of_results -e 1
}
1 change: 1 addition & 0 deletions smoke-release-testing/test_single_mage.bash
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ test_or_expression_for_labels
test_shortest_paths
test_text_search
test_durability
test_load_parquet

# NOTE: If the testing container is NOT restarted (each test having their own
# container), all the auth test have to come after all tests that assume there
Expand Down
3 changes: 3 additions & 0 deletions smoke-release-testing/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ check_dockerhub_images
MEMGRAPH_GENERAL_FLAGS="--telemetry-enabled=false --log-level=TRACE --also-log-to-stderr"
MEMGRAPH_ENTERPRISE_DOCKER_ENVS="-e MEMGRAPH_ENTERPRISE_LICENSE=$MEMGRAPH_ENTERPRISE_LICENSE -e MEMGRAPH_ORGANIZATION_NAME=$MEMGRAPH_ORGANIZATION_NAME"
MEMGRAPH_DOCKER_MOUNT_VOLUME_FLAGS="-v mg_lib:/var/lib/memgraph"
MEMGRAPH_DOCKER_LOCAL_DATA_MOUNT_VOLUME_FLAGS="-v $SCRIPT_DIR/data:/data"
MEMGRAPH_FULL_PROPERTIES_SET="{id:0, name:\"tester\", age:37, height:175.0, merried:true}"
MEMGRAPH_PROPERTY_COMPRESSION_FLAGS="--storage-property-store-compression-enabled=true --storage-property-store-compression-level=mid"
MEMGRAPH_HA_COORDINATOR_FLAGS="--coordinator-port=10001 --bolt-port=7687 --coordinator-id=1 --experimental-enabled=high-availability --coordinator-hostname=localhost --management-port=11001"
Expand Down Expand Up @@ -219,6 +220,7 @@ pull_docker_images() {
run_memgraph_last_dockerhub_container() {
if [ ! "$(docker ps -q -f name=memgraph_last_data)" ]; then
docker run -d --rm -p $MEMGRAPH_LAST_DATA_BOLT_PORT:7687 -p $MEMGRAPH_LAST_MONITORING_PORT:9091 \
$MEMGRAPH_DOCKER_LOCAL_DATA_MOUNT_VOLUME_FLAGS \
--name memgraph_last_data \
$MEMGRAPH_LAST_DOCKERHUB_IMAGE $MEMGRAPH_GENERAL_FLAGS
fi
Expand All @@ -227,6 +229,7 @@ run_memgraph_last_dockerhub_container() {
run_memgraph_next_dockerhub_container() {
if [ ! "$(docker ps -q -f name=memgraph_next_data)" ]; then
docker run -d --rm -p $MEMGRAPH_NEXT_DATA_BOLT_PORT:7687 -p $MEMGRAPH_NEXT_MONITORING_PORT:9091 \
$MEMGRAPH_DOCKER_LOCAL_DATA_MOUNT_VOLUME_FLAGS \
--name memgraph_next_data \
$MEMGRAPH_ENTERPRISE_DOCKER_ENVS $MEMGRAPH_NEXT_DOCKERHUB_IMAGE $MEMGRAPH_GENERAL_FLAGS \
$MEMGRAPH_PROPERTY_COMPRESSION_FLAGS $MEMGRAPH_SHOW_SCHEMA_INFO_FLAG
Expand Down
Loading