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

mobile/ci: Fix iOS build failures #31756

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Conversation

fredyw
Copy link
Member

@fredyw fredyw commented Jan 10, 2024

The error:

ERROR: /Users/runner/work/envoy/envoy/mobile/WORKSPACE:98:18: fetching android_sdk_repository rule //external:androidsdk: Android SDK api level 30 was requested but it is not installed in the Android SDK at /Users/runner/Library/Android/sdk. The api levels found were [34, 33, 32, 31]. Please choose an available api level or install api level 30 from the Android SDK Manager.

This PR is a workaround to install Android SDK 30 even though it's not used for building iOS apps, that's because mobile/WORKSPACE expects the Android SDK 30 to be available and GitHub Runner image no longer includes Android SDK 30. See actions/runner-images#8952. Passing --android in the ./ci/mac_ci_setup.sh will install the Android SDK 30.

Risk Level: low
Testing: CI
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #31756 was opened by fredyw.

see: more, trace.

@fredyw fredyw changed the title mobile/ci: Fix iOS_build failures mobile/ci: Fix iOS build failures Jan 10, 2024
@fredyw
Copy link
Member Author

fredyw commented Jan 10, 2024

/retest

The error:

```
ERROR: /Users/runner/work/envoy/envoy/mobile/WORKSPACE:98:18: fetching android_sdk_repository rule //external:androidsdk: Android SDK api level 30 was requested but it is not installed in the Android SDK at /Users/runner/Library/Android/sdk. The api levels found were [34, 33, 32, 31]. Please choose an available api level or install api level 30 from the Android SDK Manager.
```

This PR is a workaround to install Android SDK 30 even though it's not
used for building iOS apps, that's because mobile/WORKSPACE expects the
Android SDK 30 to be available and GitHub Runner image no longer
includes Android SDK 30. See actions/runner-images#8952.
Passing `--android` in the `./ci/mac_ci_setup.sh` will install the Android SDK 30.

Signed-off-by: Fredy Wijaya <fredyw@google.com>
@fredyw fredyw marked this pull request as ready for review January 11, 2024 00:24
@fredyw
Copy link
Member Author

fredyw commented Jan 11, 2024

/assign @abeyad

@abeyad abeyad merged commit f37ef3f into envoyproxy:main Jan 11, 2024
52 checks passed
@fredyw fredyw deleted the mobile_ios_build_fix branch January 11, 2024 04:06
keith added a commit that referenced this pull request Feb 23, 2024
This reverts commit f37ef3f.

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
phlax pushed a commit that referenced this pull request Feb 23, 2024
* Revert "mobile/ci: Fix iOS build failures (#31756)"

This reverts commit f37ef3f.

and removes unsed code path

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
ohadvano pushed a commit to ohadvano/envoy that referenced this pull request Feb 25, 2024
…roxy#32558)

* Revert "mobile/ci: Fix iOS build failures (envoyproxy#31756)"

This reverts commit f37ef3f.

and removes unsed code path

Signed-off-by: Keith Smiley <keithbsmiley@gmail.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