[CI] add python environment setup as part of cpp unittest runner script #6639
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #6334,
task_cpp_unittest.sh
script started also runningapps/bundle_deploy
'stest_dynamic
andtest_static
. If now we try to runtask_cpp_unittest.sh
as a standalone script, we'll see an error complaining it can't findtvm
python module.The error message is:
This PR adds the python environment setup script to have TVM's python environment setup available, to make
task_cpp_unittest.sh
runs as a standalone script.We don't see this error in the current upstream CI, because we always run the build script before cpp tests, and in this case we'll be in the right directory when this test runs.
cc @areusch @tqchen