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

Add installApp command #1854

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

boranfrkn
Copy link
Contributor

Proposed changes

Added “installApp” command.

Testing

  • Put an apk file in the desired directory.
  • Add the command - installApp: “yourPath” to your test.

Issues fixed

Resolve #1665

@bartekpacia
Copy link
Member

We want this feature to also work on Maestro Cloud - so we must enforce the app binary to be inside Maestro workspace folder.

@boranfrkn
Copy link
Contributor Author

We want this feature to also work on Maestro Cloud - so we must enforce the app binary to be inside Maestro workspace folder.

If I understand correctly, we already make it enforced. @bartekpacia

if (appFile != null && !appFile.exists()) throw CliError("App file does not exist: ${appFile.absolutePathString()}")

@boranfrkn
Copy link
Contributor Author

The pipeline got an error, there seems to be no authentication key, but idk why

@bartekpacia
Copy link
Member

Don't worry about the pipeline, it's expected. It only fails for external contributors, and it's okay, because we don't want to expose our backend secret key to external people.

@boranfrkn
Copy link
Contributor Author

boranfrkn commented Aug 8, 2024

I see, shall we merge it as it is?

@bartekpacia
Copy link
Member

bartekpacia commented Aug 8, 2024

Let's also add docs for this new command in mobile-dev-inc/maestro-docs

@bartekpacia
Copy link
Member

re: this

It's only checking if the app file exists, right? But it has to be inside Maestro workspace folder (together with all your flows, etc), so that when it's uploaded to Maestro Cloud (MC), it can work there as well.

If the app file is outside the Maestro workspace folder, it won't get uploaded and the flow will fail on MC.

@boranfrkn
Copy link
Contributor Author

All done 🥳 @bartekpacia
mobile-dev-inc/maestro-docs#68

Copy link
Member

@bartekpacia bartekpacia left a comment

Choose a reason for hiding this comment

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

Overall this LGTM, but I'm holding off because there are some concerns internally.

@bartekpacia bartekpacia changed the title Add installApp command (#1665) Add installApp command Aug 20, 2024
@bartekpacia
Copy link
Member

Het @boranfrkn, we like this feature and will merge the PR soon, but first we need to make some changes to our backend platform.

Tentative plan is to release this in Maestro v1.39. Thanks for understanding and sorry about the delay!

boranfrkn and others added 4 commits September 2, 2024 11:42
…ndroidApp

# Conflicts:
#	maestro-orchestra/src/main/java/maestro/orchestra/yaml/YamlFluentCommand.kt
#	maestro-test/src/test/kotlin/maestro/test/IntegrationTest.kt
@bartekpacia
Copy link
Member

bartekpacia commented Sep 2, 2024

The test failure is a flake.

It already occured previously here.

Screenshot

screenshot-❌-1725268971709-(Fill out form)

Rerunning.

EDIT This flake is now tracked as #2005

@boranfrkn
Copy link
Contributor Author

I see, thanks a lot Bartek. its passed 👍

@tokou
Copy link
Contributor

tokou commented Sep 7, 2024

FYI @bartekpacia boranfrkn#1

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.

Command to install APK or APP files from a URL
3 participants