Evergreen: trigger CI on autoloop PRs that have no checks#271
Merged
Conversation
Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/a5d91015-9684-4d90-91f1-9be1dd965487 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add CI triggering on autoloop PRs with no checks
Evergreen: trigger CI on autoloop PRs that have no checks
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Autoloop PRs frequently sit with zero check runs because pushes via
GITHUB_TOKENdon't fire workflows, leaving them invisible to Evergreen's "no checks = healthy" selector. Evergreen now detects this and dispatches CI directly — but only forautoloop/*branches, never for outside-contributor PRs.Changes
.github/workflows/ci.yml— addworkflow_dispatch:so the workflow can be dispatched via API..github/workflows/evergreen.md(pre-flight Python script):is_autoloop_pr,get_commit_date,trigger_ci_workflow,post_pr_commenthelpers.pr_needs_attentionflagsmissing_checksfor autoloop PRs when HEAD has no check runs, or only queued/in-progress runs and is >15 min old.missing_checks-only autoloop PRs, the pre-flight handles them inline: POSTs to/actions/workflows/ci.yml/dispatcheswithGH_AW_CI_TRIGGER_TOKEN, comments on the PR, persists a per-SHA attempt counter (capped at 5), and skips agent invocation entirely.missing_checksis pre-flight–only..github/workflows/evergreen.lock.yml— surgical patch (env var + embedded script) to avoid action/container version drift from a partial-version localgh aw.Security
The
autoloop/*branch-prefix gate is enforced in the detector itself, so the dispatch path is unreachable for external PRs. The privilegedGH_AW_CI_TRIGGER_TOKENis scoped to the pre-flight step and never exposed to the agent container.Behavior
If
missing_checksco-occurs with another fixable issue (merge_conflict,failing_checks, …), the PR is still routed to the agent for that other issue; the next scheduled run will re-trigger CI if checks are still missing.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/actions/github-script/git/ref/tags/v9/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv(http block)https://api.github.com/repos/githubnext/gh-aw/releases/latest/usr/bin/gh gh extension install githubnext/gh-aw --pin v0.71.4(http block)/usr/bin/gh gh extension install githubnext/gh-aw(http block)If you need me to access, download, or install something from one of these locations, you can either: