-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR add a test suite for GAIA on vineyard, and includes some bugfixes. Co-authored-by: BingqingLyu <lv_bingqing@163.com> Co-authored-by: siyuan0322 <siyuan0322@gmail.com>
- Loading branch information
1 parent
e092774
commit 9405412
Showing
13 changed files
with
168 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
interactive_engine/src/gaia-adaptor/gaia_on_vineyard_test.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
base_dir=$(cd `dirname $0`; pwd) | ||
_port=8277 | ||
rm -rf /tmp/test_modern.log | ||
cd ${base_dir}/../../deploy/testing && python3 maxgraph_test_server.py ${_port} & | ||
sleep 5s | ||
# load data and start instance | ||
curl -XPOST http://localhost:${_port} -d 'import graphscope' | ||
curl -XPOST http://localhost:${_port} -d 'graphscope.set_option(show_log=True)' | ||
curl -XPOST http://localhost:${_port} -d 'from graphscope.framework.loader import Loader' | ||
curl -XPOST http://localhost:${_port} -d 'from graphscope.dataset.modern_graph import load_modern_graph' | ||
curl -XPOST http://localhost:${_port} -d 'session=graphscope.session(cluster_type="hosts", num_workers=2, enable_gaia=True)' | ||
curl_sess="curl -XPOST http://localhost:${_port} -d 'graph = load_modern_graph(session, \"${GITHUB_WORKSPACE}/interactive_engine/tests/src/main/resources/modern_graph\")'" | ||
sh -c "$curl_sess" | ||
curl -XPOST http://localhost:${_port} -d 'interactive = session.gremlin(graph)' --output /tmp/test_modern.log | ||
curl -XPOST http://localhost:${_port} -d 'interactive._graph_url[1]' --output /tmp/test_modern.log | ||
GAIA_PORT=`cat /tmp/test_modern.log | awk -F'\/|:' '{print $5}'` | ||
echo "localhost:$GAIA_PORT" > ${base_dir}/src/test/resources/graph.endpoint | ||
cd ${base_dir}/../.. && mvn clean install -DskipTests -Pjava-release | ||
cd ${base_dir} && mvn test | ||
exit_code=$? | ||
curl -XPOST http://localhost:${_port} -d 'session.close()' | ||
ps -ef | grep "python3 maxgraph_test_server.py ${_port}" | grep -v grep | awk '{print $2}' | xargs kill -9 | ||
if [ $exit_code -ne 0 ]; then | ||
echo "gaia_on_vineyard_store gremlin test fail" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
interactive_engine/src/gaia-adaptor/src/test/resources/graph.endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
localhost:12312 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...gremlin/compiler/gremlin-server-plugin/src/main/resources/vineyard.modern.properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"vertex_properties": { | ||
"-9223372036854775808": { | ||
"name": "marko", | ||
"age": 29 | ||
}, | ||
"1": { | ||
"name": "vadas", | ||
"age": 27 | ||
}, | ||
"-9151314442816847872": { | ||
"name": "lop", | ||
"lang": "java" | ||
}, | ||
"0": { | ||
"name": "josh", | ||
"age": 32 | ||
}, | ||
"-9151314442816847871": { | ||
"name": "ripple", | ||
"lang": "java" | ||
}, | ||
"2": { | ||
"name": "peter", | ||
"age": 35 | ||
} | ||
}, | ||
"edge_properties": { | ||
"171470411456254147604591110776164450304": { | ||
"weight": 0.4 | ||
}, | ||
"171470411456254147623037854849874001920": { | ||
"weight": 1.0 | ||
}, | ||
"171470411456254147604591110776164450306": { | ||
"weight": 0.2 | ||
}, | ||
"9223372036854775808": { | ||
"weight": 1.0 | ||
}, | ||
"27670116110564327424": { | ||
"weight": 0.5 | ||
}, | ||
"171470411456254147613814482813019226112": { | ||
"weight": 0.4 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters