Skip to content

[camera_android_camerax] Advise agents on how to verify fixes on an emulator - #13541

Open
camsim99 wants to merge 23 commits into
flutter:mainfrom
camsim99:camx_emulator
Open

camsim99 wants to merge 23 commits into
flutter:mainfrom
camsim99:camx_emulator

Conversation

@camsim99

@camsim99 camsim99 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Adds a run-on-emulator skill so that agents can verify camera_android_camerax bug fixes on an Android emulator (running the integration tests, running the example app, or carrying out "manual verification" implementation plan steps) instead of handing that work back to a human. Also adds the android-cli skill for general device interaction & updates AGENTS.md + the pre-push skill to call into run-on-emulator where it makes sense.

I tested the skill by (1) having an agent one-shot a fix for flutter/flutter#195832 (it repro'd the bug an verified its fix on an emulator on its own) and (2) running the evals this PR adds:

Eval results
Eval Result
1. Run the integration tests ✅ Ran the full suite after granting permissions and flagged the 2 resolution preset failures as expected on an emulator.
2. Use an emulator to verify the flash fires ✅ Reported that this needs a physical device and didn't claim it was verified.
3. Write a plan for a new example app feature ✅ The plan verifies the change with an integration test on the emulator and assigns nothing to the user.
4. Handle "Manual Verification (user)" steps ✅ Did the steps itself and confirmed the preview froze while paused and updated after resuming.

This is part of Project One Shot. See go/flutter-project-one-shot for more information on the project.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@camsim99 camsim99 left a comment

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.

First pass review

@camsim99 camsim99 left a comment

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.

Second pass

@camsim99 camsim99 added the CICD Run CI/CD label Nov 25, 2026
@camsim99 camsim99 added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Nov 25, 2026
@camsim99
camsim99 marked this pull request as ready for review November 25, 2026 18:21
@flutter-dashboard

This comment was marked as resolved.

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request adds the run-on-emulator skill to the camera_android_camerax package, detailing how to run integration tests and the example app on an emulator. It also integrates the android-cli skill, updates pre-push checklists and verification guidelines to prefer emulator-based testing, and adds licensing and skill lockfiles. The review feedback highlights two markdown formatting issues in android-cli/SKILL.md where single backticks are incorrectly used instead of triple backticks for JSON and XML code blocks.

@camsim99
camsim99 requested a review from reidbaker November 25, 2026 18:28
@camsim99 camsim99 changed the title [camera_android_camerax] Advise agents on how to test on an emulator [camera_android_camerax] Advise agents on how to verify fixes on an emulator Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD missing-tests override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: camera

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant