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

feat: improve sdkmanager install for build tools and platforms #7

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

maiconcarraro
Copy link

Context

A new container based on this image is going to have no platforms and outdated version of build-tools, example:

old

Above red line is the initial files/folders before any request, and below red line is once you request to build a new app, its going to download and install the required versions for the latest bubblewrap. See it has 2 different build tools, the v33 that is installed because of this Dockerfile, and the v34 required for the bubblewrap + platforms during execution time.

Intermittent bug

In PWABuilder there is one intermittent issue causing the request to fail because of Failed to find target with hash string 'android-35' (see)

I don't have context if it's related to an old container running, or if it can be related to a new container failing to download and install, so this PR also includes a possible fix for this.

New result

Again above red line is a new container without request and below is after request.

new

It should speed up the success rate and performance since it doesn't need to install at execution time for a new container.

@maiconcarraro
Copy link
Author

I was trying to reproduce the intermittent issue using the existing version (build tools v33) and my approach was trying concurrent requests before it has installed the correct build-tools/platforms, and it corrupted the environment
image

The chances to happen are low because it needs to be a new container, but this PR will prevent this anyway. Still investigating.

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.

1 participant