-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Use argparse in taichi/main.py to implement #600 #601
Conversation
Note that no more |
plan A, lower into TI_ARCH: plan B, hack in all_archs: AFK take eye rest. |
Guess what? Appveyor:
Confusing crash again.. We may want to have an issue for this. Also notable test time 16m25s.. We used to have this time to build&test all done.. |
|
Yeah for some reason on Windows sometimes it fails randomly. Haven't figured out why. Also it's true that test time needs improvement. |
Plan B sounds better :-) |
Already used plan B now :) |
Is this one ready for review? |
Yes! |
I've thought about a good idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great basically. The only thing to change: make test
cover both the old test_python
and test_cpp
?
.travis.yml
Outdated
@@ -56,7 +56,7 @@ script: | |||
- export TAICHI_REPO_DIR=$TRAVIS_BUILD_DIR | |||
- export PYTHONPATH=$TAICHI_REPO_DIR/python | |||
- export PATH=$TAICHI_REPO_DIR/bin:$PATH | |||
- ti test_verbose && cd python && $PYTHON build.py try_upload | |||
- ti test -v && ti test_cpp -v && cd python && $PYTHON build.py try_upload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest that we merge test_cpp
into test: #601 (comment)
I think this is a great idea! We should do it in the future - please feel free to open up an issue to track it. I'm working on the code formatting issues right now. |
Btw, isn't it better use |
Good point! |
python/taichi/main.py
Outdated
ret = test_python(test_files=args.files, verbose=args.verbose) | ||
if ret: exit(-1) | ||
ret = test_cpp(test_files=args.files) | ||
return ret |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here comes the problem: How can we distinct cpp test_files and python test_files? Still need test_cpp cmd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... Maybe use test -py [files]
and test -cpp [files...]
to specify the files? It will be much cleaner if a single root command test
can be used.
Something even better is to use |
Sounds like a good plan for a future PR. I would merge this in as soon as possible to prevent the changesets of this PR becoming too big... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great now!! Thank you so much.
Related issue id = #600