Skip to content

Commit

Permalink
[Test] Enable kvstore test (dmlc#3079)
Browse files Browse the repository at this point in the history
* try enable kvstore test

* fix

* fix

* seperate out kvstore test

* add comment
  • Loading branch information
VoVAllen authored Jul 2, 2021
1 parent 35ffceb commit 0b3a621
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def cpp_unit_test_win64() {
def unit_test_linux(backend, dev) {
init_git()
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}"
}
}
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions tests/distributed/test_dist_graph_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def check_dist_emb(g, num_clients, num_nodes, num_edges):
# Test sparse emb
try:
emb = NodeEmbedding(g.number_of_nodes(), 1, 'emb1', emb_init)
nids = F.arange(0, int(g.number_of_nodes()))
lr = 0.001
optimizer = SparseAdagrad([emb], lr=lr)
with F.record_grad():
Expand Down
4 changes: 3 additions & 1 deletion tests/scripts/task_unit_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ python3 -m pytest -v --junitxml=pytest_backend.xml tests/$DGLBACKEND || fail "ba

export OMP_NUM_THREADS=1
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

0 comments on commit 0b3a621

Please sign in to comment.