Skip to content

MAUI Autopilot: hand over /review run-tests when a model finishes without a proposal - #40919

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-autopilot-mai-empty-fallback
Dec 1, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-autopilot-mai-empty-fallback

Conversation

@kubaflo

@kubaflo kubaflo commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 11c30c44a06a0739ce0715e1b6f5aecbd44f3fc9

Dimension Assessment Rationale
Change confidence 9/10 ↑ Replayed the job condition on real run results: MAI run 46558270750 (agent success, no proposal) now hands over; normal runs and agent-failure-after-proposal unchanged.
↑ review-run-tests-dispatch.yml already handles one or both proposals missing and posts a result.
↑ Both workflows compile.
↓ Live check pending merge.
Diagnosis confidence 9.5/10 ↑ MAI agent log: "Unable to complete because I did not call the required test-selection output tool"; agent_output.json has 0 items; run_selected_ui_tests and run-tests-fallback both skipped; no dispatch run for #37337.
Evidence fit 9.5/10 ↑ #37337 has sat in s/autopilot-testing since 01:59 with no test comment for its head.

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

/review run-tests selects tests with two models in sequence, then review-run-tests-dispatch.yml combines their proposals and posts the result. The fallback that hands over without a proposal ran only when the agent job failed.

For #37337 the MAI Code 2 agent succeeded but never called the selection tool, so run_selected_ui_tests and run-tests-fallback were both skipped. Nothing was dispatched, no result comment was posted, and MAUI Autopilot waits in testing forever.

The fallback in both copilot-review-run-tests and copilot-review-run-tests-mai now also runs when the agent succeeded but nothing was dispatched.

Validation: replayed the job condition against real run results; gh aw compile succeeds for both workflows.

The MAI Code 2 selection for #37337 ended without calling the selection
tool (agent succeeded, no output), so run_selected_ui_tests and the
fallback were both skipped: no dispatch, no result comment, and MAUI
Autopilot waited in 'testing' forever. The fallback now also runs when
the agent succeeded but nothing was dispatched, in both selection
workflows.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo

kubaflo commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

Copilot AI balanced review requested due to automatic review settings December 1, 2026 03:18
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool December 1, 2026 03:18 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

Copilot AI 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.

🟢 Approval recommended

No active review issues remain for the workflow fallback updates intended to prevent stalled test handoffs.

No open issues 🎉

What changed in this PR

Prevents MAUI Autopilot from remaining stuck in testing when a /review run-tests model succeeds without producing a test proposal, addressing the stalled handoff reported for #37337.

Changes:

  • Extends both model workflows’ fallback conditions to handle successful agent completion when the dispatch job did not succeed.
  • Preserves cancellation and context-readiness checks.
  • Updates the primary workflow’s explanatory comment and regenerates both workflow lock files.
File Description
.github/​workflows/​copilot-review-run-tests.md Broadens the primary model’s fallback condition and clarifies its comment.
.github/​workflows/​copilot-review-run-tests.lock.yml Synchronizes the generated primary workflow and metadata.
.github/​workflows/​copilot-review-run-tests-mai.md Broadens the MAI model’s fallback condition.
.github/​workflows/​copilot-review-run-tests-mai.lock.yml Synchronizes the generated MAI workflow and metadata.

Review effort: Balanced

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool December 1, 2026 03:22 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool December 1, 2026 03:23 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool December 1, 2026 03:24 — with GitHub Actions Inactive

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit c008cbf into main Dec 1, 2026
15 of 17 checks passed
@kubaflo
kubaflo deleted the kubaflo-autopilot-mai-empty-fallback branch December 1, 2026 03:28

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 11c30c44 Deployed Dec 1, 2026 by kubaflo via conclusion #3558
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.

3 participants