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 remaining targets to ci.py #10425

Merged
merged 5 commits into from Mar 15, 2022
Merged

Add remaining targets to ci.py #10425

merged 5 commits into from Mar 15, 2022

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
tests/scripts/ci.py Outdated Show resolved Hide resolved
tests/scripts/ci.py Outdated Show resolved Hide resolved
python/tvm/_ffi/libinfo.py Outdated Show resolved Hide resolved
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

@@ -98,6 +98,10 @@ def find_lib_path(name=None, search_path=None, optional=False):
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?

tests/scripts/ci.py Outdated Show resolved Hide resolved
tests/scripts/ci.py Show resolved Hide resolved
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 <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.

None yet

2 participants