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

Fix build platform environment variable #13914

Merged

Conversation

Liam-Sturge
Copy link
Contributor

Certain tests that make use of pytest_wrapper.py, such as those triggered by task_python_integration.sh will fail when a "PLATFORM" environment variable is not set within the Docker container.

When using build.sh to both create a container, and run a command to execute one of the tests that requires a "PLATFORM", an error will occur due to the missing environment variable.

This patch is necessary to add support for this environment variable to build.sh and prevent such errors.

CC @ashutosh-arm @leandron @Mousius @driazati @areusch

Certain tests that make use of `pytest_wrapper.py`, such as those
triggered by `task_python_integration.sh` will fail when a "PLATFORM"
environment variable is not set within the Docker container.

When using `build.sh` to both create a container, and run a command to
execute one of the tests that requires a "PLATFORM", an error will occur
due to the missing environment variable.

This patch is necessary to add support for this environment variable to
`build.sh` and prevent such errors.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Feb 3, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to auto-tag found, no teams are specified in PR title See #10317 for details

Generated by tvm-bot

@Liam-Sturge
Copy link
Contributor Author

@tvm-bot rerun

@Liam-Sturge
Copy link
Contributor Author

Seems to be a transient error with the CI locating Ubuntu mirrors. Was able to reproduce locally and now the issue has cleared up for me locally, so I will re-run the CI.

@Liam-Sturge
Copy link
Contributor Author

@tvm-bot rerun

@ashutosh-arm ashutosh-arm merged commit c8b99a9 into apache:main Feb 7, 2023
@Liam-Sturge Liam-Sturge deleted the fix_build_platform_env_variable branch February 7, 2023 09:30
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.

4 participants