Skip to content

[build-tools] early stop android emum when not nested virtualization#3580

Open
gwdp wants to merge 9 commits intomainfrom
gwdp/build-tools-early-emum-stop
Open

[build-tools] early stop android emum when not nested virtualization#3580
gwdp wants to merge 9 commits intomainfrom
gwdp/build-tools-early-emum-stop

Conversation

@gwdp
Copy link
Copy Markdown

@gwdp gwdp commented Apr 7, 2026

Why

Needing nested virtualization detection at function start_android_emulator for improved error message/fast-fail whenever not in nested virtualization enabled vm.

How

By doing an early check on start-android-emulator function for VMX/SVM enabled CPU and displaying user friendly error message, which guides user towards solution.

Test Plan

  • CI checks (with new tests)
  • Running grep -Eq '(vmx|svm)' /proc/cpuinfo; echo $? on VMX enabled CPU to confirm status 0
  • local workflow-orchestration run showing failure on darwin
Screenshot 2026-04-08 at 11 19 36 AM

Ref ENG-17446

… emulator when not on nested virtualization enabled host
@gwdp gwdp self-assigned this Apr 7, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.29%. Comparing base (c6d4fae) to head (550c72f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3580      +/-   ##
==========================================
+ Coverage   54.27%   54.29%   +0.02%     
==========================================
  Files         820      820              
  Lines       35055    35068      +13     
  Branches     7260     7262       +2     
==========================================
+ Hits        19024    19037      +13     
  Misses      15944    15944              
  Partials       87       87              

☔ View full report in Codecov by Sentry.
📢 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.

@linear
Copy link
Copy Markdown

linear bot commented Apr 7, 2026

@gwdp
Copy link
Copy Markdown
Author

gwdp commented Apr 7, 2026

gwdp added 5 commits April 8, 2026 09:56
Align Android emulator nested-virtualization detection with step runtime metadata instead of Node process platform, and expand tests to assert early failure on non-Linux runtime platforms.
Return a typed user-facing error when Android emulator virtualization requirements are not met so this early-stop path avoids noisy unknown-error stack output.
@gwdp gwdp requested a review from sjchmiela April 8, 2026 18:31
@gwdp gwdp marked this pull request as ready for review April 8, 2026 18:31
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

✅ Thank you for adding the changelog entry!

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