Skip to content

fix: stabilize android perf harness setup#657

Merged
thymikee merged 1 commit into
mainfrom
codex/perf-android-harness-setup
Jun 2, 2026
Merged

fix: stabilize android perf harness setup#657
thymikee merged 1 commit into
mainfrom
codex/perf-android-harness-setup

Conversation

@thymikee
Copy link
Copy Markdown
Member

@thymikee thymikee commented Jun 2, 2026

Summary

Android perf runs now default to an AVD name that boot can launch instead of a hardcoded emulator serial, while still honoring explicit --serial selectors when provided.

The perf harness also stops after failed setup measurements, so boot/open failures no longer cascade into misleading timed tour failures.

Validation

Verified with pnpm check:quick and git diff --check.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Size Report

Metric Base Current Diff
JS raw 1.1 MB 1.1 MB -15 B
JS gzip 360.7 kB 360.7 kB -6 B
npm tarball 462.0 kB 462.0 kB -48 B
npm unpacked 1.5 MB 1.5 MB -178 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 24.0 ms 24.3 ms +0.3 ms
CLI --help 38.1 ms 38.5 ms +0.4 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/apps.js -15 B -6 B

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d0ad552d92

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

serial: cfg.serial,
platformFlags: ['--platform', 'android'],
selectorFlags: ['--serial', serial, '--android-device-allowlist', serial],
selectorFlags: ['--device', avdName, ...serialFlags],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Don't add the default AVD when a serial was requested

When the perf run is invoked with only --serial and that Android device is not currently visible, this now also passes the implicit default --device Pixel_9_Pro_XL_API_37 into boot. The boot handler treats any --device as an AVD fallback and calls ensureAndroidEmulatorBooted; that helper uses serial only as a discovery filter, not as an emulator launch port, so it can start the default AVD and then wait up to the emulator boot timeout for the requested serial to appear. This makes serial-targeted CI/ad-hoc runs hang or fail against an unrelated default AVD instead of failing fast for the requested serial. Only include --device when the user supplied one, or when no --serial override is present.

Useful? React with 👍 / 👎.

@thymikee thymikee merged commit e96de31 into main Jun 2, 2026
18 checks passed
@thymikee thymikee deleted the codex/perf-android-harness-setup branch June 2, 2026 01:10
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-02 01:10 UTC

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