Skip to content

Fix Evergreen workflow: exit 0 when no PRs need attention - #122

Merged
mrjf merged 2 commits into
mainfrom
copilot/debug-pr-health-keeper-failure
Apr 12, 2026
Merged

Fix Evergreen workflow: exit 0 when no PRs need attention#122
mrjf merged 2 commits into
mainfrom
copilot/debug-pr-health-keeper-failure

Conversation

Copilot AI commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

The Evergreen pre-flight step used sys.exit(1) for "no PRs need attention" — a normal state on a 5-minute schedule. The framework treated this as a job failure and created spurious issues every run.

  • Pre-flight script: sys.exit(1)sys.exit(0) for the two "nothing to do" paths (no open PRs, all PRs healthy). Kept sys.exit(1) for actual errors (forced PR not found).
  • Agent prompt: Added noop instruction so the agent handles null selection gracefully when no PR was selected.
  • Lock file: Recompiled via gh aw compile.

Copilot AI linked an issue Apr 12, 2026 that may be closed by this pull request
The pre-flight step was using sys.exit(1) for "no work to do" cases,
which marked the workflow as failed and triggered spurious failure
issues. Changed to sys.exit(0) for the normal "no open PRs" and
"no PRs need attention" paths. Added noop instruction to the agent
prompt so it handles the null selection gracefully.

Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/4c6e25d0-358d-4732-b45a-4ed8a1e3ecb8

Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
@mrjf
mrjf marked this pull request as ready for review April 12, 2026 12:04
Copilot AI changed the title [WIP] Debug workflow failure for Evergreen PR Health Keeper Fix Evergreen workflow: exit 0 when no PRs need attention Apr 12, 2026
Copilot AI requested a review from mrjf April 12, 2026 12:05
Copilot finished work on behalf of mrjf April 12, 2026 12:05
@mrjf
mrjf merged commit 0696674 into main Apr 12, 2026
17 checks passed
@mrjf
mrjf deleted the copilot/debug-pr-health-keeper-failure branch April 12, 2026 12:12
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.

[aw] Evergreen — PR Health Keeper failed

2 participants