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

Job times out due to package id being in inconsistent location #168

Closed
XiangRongLin opened this issue Jul 16, 2021 · 9 comments · Fixed by TeamNewPipe/NewPipe#6678 or #172
Closed

Comments

@XiangRongLin
Copy link

XiangRongLin commented Jul 16, 2021

My CI job was cancelled after 6h because the android emulator runner action got stuck

Logs
https://github.com/TeamNewPipe/NewPipe/pull/6673/checks?check_run_id=3080440435

logs.zip

 /usr/bin/unzip -o -q emulator.zip -d /Users/runner/Library/Android/sdk
Installing system images.
/bin/sh -c \sdkmanager --install 'system-images;android-29;default;x86' > /dev/null
Warning: Observed package id 'ndk;21.4.7075529' in inconsistent location '/Users/runner/Library/Android/sdk/ndk-bundle' (Expected '/Users/runner/Library/Android/sdk/ndk/21.4.7075529')
Warning: Observed package id 'ndk;21.4.7075529' in inconsistent location '/Users/runner/Library/Android/sdk/ndk-bundle' (Expected '/Users/runner/Library/Android/sdk/ndk/21.4.7075529')
Error: The operation was canceled.

I'm running the action on API level 21 and 29, the 21 one succeeds, the 29 one fails. workflow.

Because of this i don't know what the problem is

@bsalesc
Copy link

bsalesc commented Jul 16, 2021

I have the same issue with 28 API level and was working in the last build 21 hours ago, but the warnings above isn't the problem because the build which passed had the same, so the problem happens between installing the system images and creating AVD.

@JohnBellSageCom
Copy link

JohnBellSageCom commented Jul 16, 2021

Saw the same issue a couple of days ago, then changed the config which resolved the issue for 24 hours. The issue is now back again. I can also confirm that the warnings were present on the successful builds as mentioned by @bsalesc.

@bsalesc
Copy link

bsalesc commented Jul 16, 2021

Changing from the API level from 28 to 27 worked.

@marcuspridham
Copy link
Contributor

marcuspridham commented Jul 16, 2021

Ran into this also. First tried changing emulator-build but that didn't help.

Changing the target to google_apis worked though.

        with:
          api-level: 28
          target: google_apis

You don't need to change the api level then.

takameyer added a commit to realm/realm-js that referenced this issue Jul 17, 2021
There seems to be a problem with the android-emulator-runner action.  Using the workaround posted in this issue:
ReactiveCircus/android-emulator-runner#168
takameyer added a commit to realm/realm-js that referenced this issue Jul 17, 2021
There seems to be a problem with the android-emulator-runner action.  Using the workaround posted in this issue:
ReactiveCircus/android-emulator-runner#168

The linting pipeline is running ubuntu-latest, which does not have cocoa pods.  One of the lerna dependencies (realm-react-native-tests) was invoking `pod install`.  Changed this to use the npm package `pod-install` which will not crash on non-mac systems.
takameyer added a commit to realm/realm-js that referenced this issue Jul 17, 2021
There seems to be a problem with the android-emulator-runner action.  Using the workaround posted in this issue:
ReactiveCircus/android-emulator-runner#168

The linting pipeline is running ubuntu-latest, which does not have cocoa pods.  One of the lerna dependencies (realm-react-native-tests) was invoking `pod install`.  Changed this to use the npm package `pod-install` which will not crash on non-mac systems.
@mrsarm
Copy link

mrsarm commented Jul 19, 2021

I think the problem is that the sdkmanager is hanging the script because waits the user to accept the SDK license terms.

How I get to that conclusion? I just tried to execute the last command before the job get frozen in my local computer, and the command does nothing other than wait for nothing like in my Github Action job:

$ sdkmanager --install 'system-images;android-29;default;x86' > /dev/null

But if you remove the > /dev/null suffix, it clears what happens:

$ sdkmanager --install 'system-images;android-29;default;x86'
License android-sdk-preview-license:    ] 10% Computing updates...              
---------------------------------------
To get started with the Android SDK Preview, you must agree to the following terms and conditions. As described below, please note that this is a preview version of the Android SDK, subject to change, that you use at your own risk. The Android SDK Preview is not a stable release, and may contain errors and defects that can result in serious damage to your computer systems, devices and data.

This is the Android SDK Preview License Agreement (the "License Agreement").

1. Introduction

1.1 The Android SDK Previ ...
...
..................... LONG LICENSE TERMS .....................
...

June 2014.
---------------------------------------
Accept? (y/N):

Unfortunately there is no option to auto-accept terms of conditions, what I saw in other posts with similar issues trying to run the sdkmanager in CI enviroments is to execute it piped with the yes command:

$ yes | sdkmanager --install 'system-images;android-29;default;x86' > /dev/null

@mrsarm
Copy link

mrsarm commented Jul 19, 2021

Confirmed that what I mention is the problem, because using the workaround mentioned by @marcuspridham of setting target: google_apis works, and looking at the CLI, what is executed is:

sdkmanager --install 'system-images;android-30;google_apis;x86' > /dev/null

And executing the same in my local computer, sdkmager does not ask me to confirm any license agreement.

I have created the PR #170 with the patch.

marcuspridham added a commit to marcuspridham/android-emulator-runner that referenced this issue Jul 19, 2021
marcuspridham added a commit to marcuspridham/android-emulator-runner that referenced this issue Jul 19, 2021
ashutoshgngwr referenced this issue in trynoice/android-app Jul 19, 2021
ychescale9 pushed a commit that referenced this issue Jul 20, 2021
@ashutoshgngwr
Copy link

Thanks, @marcuspridham and @ychescale9 for resolving it in a timely manner. When can we expect it to be released?

@ychescale9
Copy link
Member

Will try to do a release in a few hours

@ychescale9
Copy link
Member

This has been released. Thanks again @marcuspridham for the fix!

chrisbanes added a commit to google/accompanist that referenced this issue Jul 20, 2021
reyesruiz added a commit to reyesruiz/PizzaDriver that referenced this issue Jul 21, 2021
reyesruiz added a commit to reyesruiz/PizzaDriver that referenced this issue Jul 21, 2021
#31)

* Adding back api levels 28, 29, and 30, looks to be from ReactiveCircus/android-emulator-runner
ReactiveCircus/android-emulator-runner#168

* Updating android_tests.yml to use only api levels 26,27, and 28, since 29 is timing out.
Now trying google apis system image

* API Levels 26,27,28,29.
30 not working
jossiwolf pushed a commit to jossiwolf/accompanist that referenced this issue Aug 1, 2021
tabatsky pushed a commit to tabatsky/android-emulator-runner that referenced this issue Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants