Skip to content

[camera_android_camerax] Add the ability to unit test skills. - #12285

Open
reidbaker-agent wants to merge 12 commits into
mainfrom
update-agent-evals
Open

[camera_android_camerax] Add the ability to unit test skills. #12285
reidbaker-agent wants to merge 12 commits into
mainfrom
update-agent-evals

Conversation

@reidbaker-agent

@reidbaker-agent reidbaker-agent commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Add the concept of evals for skills to camera_android_camerax this is part of project-oneshot.
This is basically the equivalent of llm unit tests.
The idea and harness comes from dart_skills_lint see flutter/agent-plugins#189
The infra for running evals can and should be replaced by a tool that is designed for this use case when it is available.
In the meantime, the valuable parts are the evals.jsons files. They document the expectations for the skills under test in this repo. - @reidbaker


Agent authored description
Updates agent evals for check-readiness and run-evals, including fixing missing license blocks and enforcing relative paths.

Evaluation Results: cross_skill_rubric

Eval ID 1: Failure Scenario

  • Status: PASS 🟢
  • Scenario: Execute 'bash evals/test_data/simulate_failure.sh'.
  • Grading: Correctly detected and explicitly flagged all expected failures (Scope Limitation, Pigeon Generation, and Lint Cheating).

Eval ID 2: Success Scenario

  • Status: PASS 🟢
  • Scenario: Execute 'bash evals/test_data/simulate_success.sh'.
  • Grading: Correctly identified that all code quality criteria passed successfully without any false positive failures.

@reidbaker
reidbaker requested review from camsim99 and reidbaker and removed request for reidbaker July 24, 2026 20:30
@reidbaker reidbaker added the CICD Run CI/CD label Jul 24, 2026
Comment thread packages/camera/camera_android/README.md

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.

I think this is no longer used. remove

DisplayOrientedMeteringPointFactory(CameraInfo cameraInfo, double width, double height);
}

// dummy eval modification

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.

This file should not be checked in. This is leaked state from an eval.

@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Jul 24, 2026
@reidbaker
reidbaker force-pushed the update-agent-evals branch from 0d0aa4d to 68f87b7 Compare July 24, 2026 21:10
@reidbaker
reidbaker marked this pull request as ready for review July 24, 2026 21:19

@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-evals skill, including its evaluation configurations, templates, and scripts, and introduces a test suite in packages/camera/camera_android_camerax to verify the structural consistency of evaluation files. Feedback on these changes highlights issues with hardcoded repository paths in the skill documentation, a missing reference to code_quality_rubric.json in the evaluation configuration, and the use of Directory.current.path in tests, which may cause failures when executed from the repository root.

Comment thread packages/camera/camera_android_camerax/test/skills_evals_test.dart
Comment thread packages/camera/camera_android_camerax/test/skills_evals_test.dart
Comment thread third_party/skill-repos/agent-plugins/.agents/skills/run-evals/SKILL.md Outdated
Comment thread third_party/skill-repos/agent-plugins/.agents/skills/run-evals/evals/evals.json Outdated
@reidbaker
reidbaker force-pushed the update-agent-evals branch from 68f87b7 to c8f0176 Compare July 27, 2026 16:04
@reidbaker reidbaker added the CICD Run CI/CD label Jul 27, 2026

@camsim99 camsim99 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.

LGTM! Just a question about dart_skills_lint references in the run-evals skill


# Run Skill Evals

1. **Read Framework**: Read `tool/dart_skills_lint/evals/README.md` for understanding the difference between per-skill evals and cross-skill evals.

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.

What if tools/dart_skills_lint is not in the context? Should the references to it be links instead?

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.

flutter/agent-plugins#196. Will update this pr when 196 lands.

@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Jul 27, 2026
@reidbaker reidbaker added the CICD Run CI/CD label Jul 27, 2026
@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Jul 27, 2026
@reidbaker reidbaker added the CICD Run CI/CD label Jul 27, 2026
@reidbaker reidbaker changed the title [camera_android_camerax] Update agent evals [camera_android_camerax] Add the ability to unit test skills. Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants