Skip to content

MAUI Autopilot: re-run tests that could not complete before /review autopilot - #40887

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-autopilot-retest-stale-errors
Nov 30, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-autopilot-retest-stale-errors

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 5fd5f3bbf9a20287c0fffbd88d4c3f1d8d741d5f

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Decision replayed on #40879's real NOT QUEUED comment: stale → tests, fresh → stop.
↑ Workflow compiles.
↓ Live retest after merge still pending (AzDO currently not queueing builds).
Diagnosis confidence 9.5/10 ↑ #40879: test comment 15:29Z, /review autopilot 15:50Z, Stopped 23s later without requesting tests.
Evidence fit 9/10 ↑ Explains why restarting Autopilot after the AzDO outage cannot recover #40709/#40710/#40836/#40879.

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

When the latest /review run-tests result for the PR head is an error, NOT QUEUED or CANCELED, Autopilot stopped immediately — even if that result predates the current /review autopilot. So after an infra outage (dnceng-public AzDO not queueing builds), re-commenting /review autopilot could never retry the tests.

Now a stale incomplete run (last updated before the loop started) requests /review run-tests again; an incomplete run produced during the current loop still stops, so there is no retry loop.

Validation: replayed the stage decision against #40879's real test comment; gh aw compile maui-expert-autopilot succeeds.

…utopilot

A test run that errored or was NOT QUEUED/CANCELED before the current
/review autopilot started stopped the loop immediately, so restarting
Autopilot after an infra outage could never retry. Request the tests again
in that case; an incomplete run after the loop started still stops.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 16:06
@kubaflo

kubaflo commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 30, 2026 16:06 — 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 were identified for the change allowing new Autopilot loops to retry stale infrastructure failures.

No open issues 🎉

What changed in this PR

This PR lets MAUI Autopilot recover from earlier infrastructure failures when a maintainer starts a new /review autopilot loop, rather than immediately stopping on an old incomplete test result.

Changes:

  • Requests /review run-tests again when an error, NOT QUEUED, or CANCELED result was last updated before the current loop started.
  • Preserves the stop behavior for incomplete results produced during the current loop, preventing repeated retries.
  • Synchronizes the generated workflow and its metadata with the source change.
File Description
.github/​workflows/​maui-expert-autopilot.md Adds the timestamp check that routes stale incomplete results back to testing.
.github/​workflows/​maui-expert-autopilot.lock.yml Updates the generated workflow and metadata to match the source.

Review effort: Balanced

@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 e33be75 into main Nov 30, 2026
15 of 17 checks passed
@kubaflo
kubaflo deleted the kubaflo-autopilot-retest-stale-errors branch November 30, 2026 16:20

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 5fd5f3bb Deployed Nov 30, 2026 by kubaflo via conclusion #3535
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