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

[CI] Fix build android rpc failure in CI #12216

Merged
merged 2 commits into from
Jul 29, 2022
Merged

Conversation

valmat07
Copy link
Contributor

@valmat07 valmat07 commented Jul 28, 2022

android_rpc build problem: #12191

The problem with the build appeared due to the fact that the ANDROID_NDK_HOME environment variable was removed in the current version of github actions.
https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md

But this variable is used here:

- name: Build android_rpc
working-directory: apps/android_rpc
continue-on-error: true
run: |
export PATH="${ANDROID_NDK_HOME}:$PATH"
gradle clean build

Now only ANDROID_NDK_LATEST_HOME is available for ndk.

cc @Mousius @areusch @driazati

Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@@ -122,7 +122,7 @@ jobs:
- name: Build android_rpc
working-directory: apps/android_rpc
run: |
export PATH="${ANDROID_NDK_HOME}:$PATH"
export PATH="${ANDROID_NDK_LATEST_HOME}:$PATH"
Copy link
Member

Choose a reason for hiding this comment

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

Can you also add set -eux to all the inline scripts so we get errors about unbound variables if something changes in the future?

@github-actions github-actions bot requested review from Mousius and areusch July 29, 2022 09:11
Copy link
Member

@driazati driazati left a comment

Choose a reason for hiding this comment

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

thanks!

@driazati driazati merged commit e7e29b4 into apache:main Jul 29, 2022
valmat07 added a commit to Deelvin/tvm that referenced this pull request Jul 29, 2022
valmat07 added a commit to Deelvin/tvm that referenced this pull request Aug 2, 2022
driazati pushed a commit that referenced this pull request Aug 2, 2022
Reverts #12216

Addition to my previous changes.
After the previous changes, the android camera build failed because by default `PYTHONPATH` is empty, and after `set -eux` it is fails:
https://github.com/apache/tvm/blob/759a648cd5237885a8205b1ee4508dabcc3af2d5/.github/workflows/main.yml#L152-L156

This error was not noticed because the flag `continue-on-error` is true.
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
android_rpc build problem: apache#12191

The problem with the build appeared due to the fact that the `ANDROID_NDK_HOME` environment variable was removed in the current version of github actions. 
https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md

But this variable is used here:

https://github.com/apache/tvm/blob/ee319d9d23c80091da9c4fb764b1e6d49d462714/.github/workflows/main.yml#L122-L127

Now only `ANDROID_NDK_LATEST_HOME` is available for ndk.
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
Reverts apache#12216

Addition to my previous changes.
After the previous changes, the android camera build failed because by default `PYTHONPATH` is empty, and after `set -eux` it is fails:
https://github.com/apache/tvm/blob/759a648cd5237885a8205b1ee4508dabcc3af2d5/.github/workflows/main.yml#L152-L156

This error was not noticed because the flag `continue-on-error` is true.
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.

3 participants