"docs/vscode:/vscode.git/clone" did not exist on "4d61aeb8ecc6626f5ea78b22c8b26db72f4512a8"
Unverified Commit 0b3a6216 authored by Jinjing Zhou's avatar Jinjing Zhou Committed by GitHub
Browse files

[Test] Enable kvstore test (#3079)

* try enable kvstore test

* fix

* fix

* seperate out kvstore test

* add comment
parent 35ffceb4
...@@ -57,7 +57,7 @@ def cpp_unit_test_win64() { ...@@ -57,7 +57,7 @@ def cpp_unit_test_win64() {
def unit_test_linux(backend, dev) { def unit_test_linux(backend, dev) {
init_git() init_git()
unpack_lib("dgl-${dev}-linux", dgl_linux_libs) unpack_lib("dgl-${dev}-linux", dgl_linux_libs)
timeout(time: 20, unit: 'MINUTES') { timeout(time: 30, unit: 'MINUTES') {
sh "bash tests/scripts/task_unit_test.sh ${backend} ${dev}" sh "bash tests/scripts/task_unit_test.sh ${backend} ${dev}"
} }
} }
......
...@@ -176,6 +176,7 @@ def check_dist_emb(g, num_clients, num_nodes, num_edges): ...@@ -176,6 +176,7 @@ def check_dist_emb(g, num_clients, num_nodes, num_edges):
# Test sparse emb # Test sparse emb
try: try:
emb = NodeEmbedding(g.number_of_nodes(), 1, 'emb1', emb_init) emb = NodeEmbedding(g.number_of_nodes(), 1, 'emb1', emb_init)
nids = F.arange(0, int(g.number_of_nodes()))
lr = 0.001 lr = 0.001
optimizer = SparseAdagrad([emb], lr=lr) optimizer = SparseAdagrad([emb], lr=lr)
with F.record_grad(): with F.record_grad():
......
...@@ -37,5 +37,7 @@ python3 -m pytest -v --junitxml=pytest_backend.xml tests/$DGLBACKEND || fail "ba ...@@ -37,5 +37,7 @@ python3 -m pytest -v --junitxml=pytest_backend.xml tests/$DGLBACKEND || fail "ba
export OMP_NUM_THREADS=1 export OMP_NUM_THREADS=1
if [ $2 != "gpu" ]; then if [ $2 != "gpu" ]; then
python3 -m pytest -v --capture=tee-sys --junitxml=pytest_distributed.xml tests/distributed || fail "distributed" python3 -m pytest -v --capture=tee-sys --junitxml=pytest_distributed.xml tests/distributed/*.py || fail "distributed"
# Seperate kvstore test to another process, to avoid hangs
python3 -m pytest -v --capture=tee-sys --junitxml=pytest_distributed.xml tests/distributed/kv_store/*.py || fail "distributed kvstore"
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment