Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add travis test for graph edges #49

Merged
merged 31 commits into from
Jan 3, 2018
Merged

Conversation

daming-lu
Copy link
Collaborator

No description provided.

@@ -29,6 +29,8 @@ def reorganize_inout(json_obj, key):


def add_edges(json_obj):
# TODO(daming-lu): should try to de-duplicate node's out-edge
# Currently it is counted twice: 1 as out-edge, 1 as in-edge
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个会根据前端的需要进行改进,先看看前端是怎么渲染的吧。

jacquesqiao
jacquesqiao previously approved these changes Jan 2, 2018
Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

tests.sh Outdated
sudo pip install google
sudo pip install protobuf
sudo apt-get install protobuf-compiler libprotoc-dev
sudo pip install onnx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要安装onnx,但是需要安装protobuf,而且最好指定一下版本,我用的3.1.0

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,谢谢,我试试

server/build.sh Outdated
ls $pb_file
echo '$$CORE_PATH'
else
echo 'no!!'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方可以

exit 1

让travis报错

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

搞定,因为我们把protoc搞定了,所以不用这一步了。

json_obj = json.loads(json_str)
# 286 edges + 143 nodes (out-edge of each node is counted twice)
self.assertEqual(len(json_obj['edges']), 286 + 143)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check several nodes whether they are marked as the right type.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@daming-lu daming-lu merged commit 8d25355 into develop Jan 3, 2018
@daming-lu daming-lu deleted the add_travis_test_for_graph_edges branch January 3, 2018 06:59
jacquesqiao pushed a commit to jacquesqiao/VisualDL that referenced this pull request Jan 12, 2018
* Add test for graph edges

* add new line

* add google protobuf

* add onnx to travis

* install protoc and move installs to tests.sh

* tune protoc

* try to install onnx

* onnx always fails on travis, try script from onnx github

* install protobuf 3.1.0 but not onnx

* in the right dir

* tune path

* should work

* put onnx_pb2 there and it should work

* what if remove onnx_pb2.py

* cp compiled onnx_pb2 to the right place

* debug

* protoc

* install protoc

* chown

* test

* added protc, should work

* typo

* does it exist?

* hmmmm

* try dropbox

* test 1

* now it should work

* done

* make tests more thorough
jacquesqiao pushed a commit to jacquesqiao/VisualDL that referenced this pull request Jan 13, 2018
jacquesqiao pushed a commit to jacquesqiao/VisualDL that referenced this pull request Jan 13, 2018
* Add test for graph edges

* add new line

* add google protobuf

* add onnx to travis

* install protoc and move installs to tests.sh

* tune protoc

* try to install onnx

* onnx always fails on travis, try script from onnx github

* install protobuf 3.1.0 but not onnx

* in the right dir

* tune path

* should work

* put onnx_pb2 there and it should work

* what if remove onnx_pb2.py

* cp compiled onnx_pb2 to the right place

* debug

* protoc

* install protoc

* chown

* test

* added protc, should work

* typo

* does it exist?

* hmmmm

* try dropbox

* test 1

* now it should work

* done

* make tests more thorough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants