Skip to content

[eas-cli] Add Appium simulator session support - #4190

Open
sjchmiela wants to merge 2 commits into
mainfrom
stanley/appium-simulator-cli
Open

[eas-cli] Add Appium simulator session support#4190
sjchmiela wants to merge 2 commits into
mainfrom
stanley/appium-simulator-cli

Conversation

@sjchmiela

@sjchmiela sjchmiela commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Why

Now that we support Appium sessions, eas-cli needs to support it too.

How

Added spread on GraphQL fetch, special instructions for printing and env file.

Test Plan

CI should pass. Also ran a local e2e test.

@sjchmiela
sjchmiela force-pushed the stanley/appium-simulator-cli branch from 2ff5db9 to 0196214 Compare August 13, 2026 21:18
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.54%. Comparing base (8439f4f) to head (af1c77c).

Files with missing lines Patch % Lines
packages/eas-cli/src/simulator/utils.ts 81.82% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4190      +/-   ##
==========================================
+ Coverage   63.54%   63.54%   +0.01%     
==========================================
  Files        1030     1030              
  Lines       47262    47277      +15     
  Branches     9921     9926       +5     
==========================================
+ Hits        30026    30039      +13     
- Misses      17135    17137       +2     
  Partials      101      101              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sjchmiela
sjchmiela force-pushed the stanley/appium-simulator-cli branch from 0196214 to 96acf46 Compare August 13, 2026 21:54
@sjchmiela
sjchmiela force-pushed the stanley/appium-simulator-cli branch from 96acf46 to 566140e Compare August 14, 2026 08:05
@sjchmiela
sjchmiela force-pushed the stanley/appium-simulator-cli branch from 566140e to e8be5d1 Compare August 14, 2026 10:59
@sjchmiela
sjchmiela force-pushed the stanley/appium-simulator-cli branch 5 times, most recently from 99199e9 to 803e419 Compare August 14, 2026 14:49
@sjchmiela
sjchmiela changed the base branch from stanley/appium-remote-session-action to stanley/simulator-env-reset August 14, 2026 14:49
@sjchmiela sjchmiela added the no changelog PR that doesn't require a changelog entry label Aug 14, 2026
Base automatically changed from stanley/simulator-env-reset to main August 19, 2026 11:09
@sjchmiela
sjchmiela force-pushed the stanley/appium-simulator-cli branch from 803e419 to af1c77c Compare August 19, 2026 11:21
@github-actions

Copy link
Copy Markdown

⏩ The changelog entry check has been skipped since the "no changelog" label is present.

@sjchmiela
sjchmiela marked this pull request as ready for review August 19, 2026 11:36
@sjchmiela
sjchmiela requested a review from szdziedzic August 19, 2026 11:36
@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

SIMULATOR_DOTENV_FILE_HEADER +
Object.entries(environmentVariables)
.map(([key, value]) => `${key}=${JSON.stringify(value)}`)
.map(([key, value]) => `${key}='${value}'`)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not sure if we should be concerned but:

Raw single-quote wrapping does not round-trip every valid capability value. For example, capabilities containing It's #1 are truncated at # by dotenv 16.3.1 because the inner apostrophe defeats quoted parsing. The new shell-export instructions similarly fail on apostrophes. Could we use format-specific escaping and add an apostrophe-plus-hash regression test?

Comment on lines +56 to +57
APPIUM_URL: remoteConfig.appiumUrl,
APPIUM_CAPS: JSON.stringify(remoteConfig.capabilities),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

follow-up request: can we protect it via token as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Probably!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PR that doesn't require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants