Skip to content

Add remaining targets to ci.py#10425

Merged
areusch merged 5 commits into
apache:mainfrom
driazati:repro
Mar 15, 2022
Merged

Add remaining targets to ci.py#10425
areusch merged 5 commits into
apache:mainfrom
driazati:repro

Conversation

@driazati

@driazati driazati commented Mar 1, 2022

Copy link
Copy Markdown
Member

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 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
Comment thread tests/scripts/ci.py Outdated
Comment thread tests/scripts/ci.py Outdated
Comment thread python/tvm/_ffi/libinfo.py Outdated

@areusch areusch left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread python/tvm/_ffi/libinfo.py Outdated
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
Copy Markdown
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?

Comment thread tests/scripts/ci.py Outdated
Comment thread tests/scripts/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.
@github-actions github-actions Bot requested a review from areusch March 14, 2022 18:39
@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 <driazati@users.noreply.github.com>
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