Skip to content

Conversation

@driazati
Copy link
Member

@driazati driazati commented Mar 1, 2022

This adds build/test commands for all of the CI environments. Most of the invocations are similar and the scripts come straight from the Jenkinsfile. This improves the current situation by making it much easier to get CI environments locally. In the future we might want to run the Jenkinsfile straight from this script, but for now they're duplicated and we have to keep them in sync manually (not a huge deal).

This isn't completely done yet so some work (such as certain tests that require pytest flags like in tests/scripts/task_python_microtvm.sh) is left for a follow up.

cc @areusch

@driazati driazati force-pushed the repro branch 3 times, most recently from e0b59f5 to a047076 Compare March 2, 2022 22:32
@driazati driazati force-pushed the repro branch 3 times, most recently from db0cb57 to 01bde8f Compare March 7, 2022 18:52
@driazati driazati marked this pull request as ready for review March 7, 2022 18:57
@github-actions github-actions bot removed the request for review from a team March 7, 2022 18:58
Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

overall looks good, couple of questions

use_runtime = os.environ.get("TVM_USE_RUNTIME_LIB", False)
dll_path = get_dll_directories()

manual_dll_path = os.getenv("TVM_DLL_PATH")
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we should say LIB not DLL, since DLL is meaningful only on windows. also, how does this differ from TVM_LIBRARY_PATH?

This adds build/test commands for all of the CI environments except ARM (that one will come in a follow up). Most of the invocations are similar and the scripts come straight from the Jenkinsfile. This improves the current situation by making it much easier to get CI environments locally. This also wraps pytest invocations in CI so that failures are parsed and a repro command is reported at the end of the failing CI run step alongside other logs to increase the visibility into this tool.

This isn't perfect yet so some work (such as ARM support and certain tests that require pytest flags like in `tests/scripts/task_python_microtvm.sh`) is left for a follow up.
@areusch areusch merged commit 0d068f4 into apache:main Mar 15, 2022
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
* Add remaining targets to ci.py

This adds build/test commands for all of the CI environments except ARM (that one will come in a follow up). Most of the invocations are similar and the scripts come straight from the Jenkinsfile. This improves the current situation by making it much easier to get CI environments locally. This also wraps pytest invocations in CI so that failures are parsed and a repro command is reported at the end of the failing CI run step alongside other logs to increase the visibility into this tool.

This isn't perfect yet so some work (such as ARM support and certain tests that require pytest flags like in `tests/scripts/task_python_microtvm.sh`) is left for a follow up.

* remove reporting changes

* Clean up common functionality

* Address comments

* Comments

Co-authored-by: driazati <[email protected]>
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.

2 participants