A cancelled duplicate CI run ejects a stack as "required checks failed"

Open
#362 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github, github-actions, rust
Domain
ci-cd, devtools

Research direction

The payload names no source file. Start by finding where the required-checks failure decision reads check runs for a PR head and produces the "Ejected: required checks failed" reason. Write a test with two check runs of the same name and sha, one cancelled and one success, and confirm the cancelled one should not count. Done when the superseded run no longer triggers a fix attempt or ejection. Note that rerun-failed needs the GitHub App's actions: write permission, which the owner must accept.

Written by the indexing model from the issue text.

Description

Observed (verified): stack https://github.com/agent-labs-dev/nebula/stack/14010 was ejected on 2026-11-25 14:06Z with "Ejected: required checks failed: No secret in the commits this change adds". The check-run list for the PR head at the time shows that check as cancelled on one run and success on the duplicate run for the same sha (https://github.com/agent-labs-dev/nebula/actions/runs/45630228006/job/139261104444 cancelled, https://github.com/agent-labs-dev/nebula/actions/runs/45630232932/job/139261132899 success). The cancelled run came from MergeLoop rebasing and republishing the branch while CI for the previous head was still running. The fix agent then ran, died on "Credit balance is too low", and the PR was ejected. Requeueing with no change merged it (https://github.com/agent-labs-dev/nebula/pull/13998).

Expected: a cancelled check run superseded by a successful run for the same check name and sha is not a failure, and does not start a fix attempt or eject.

Suspected cause (not verified): the failure decision reads every check run for the head and counts cancelled as failed without preferring the latest run per check name.

Also seen: rerun-failed was refused because the GitHub App lacks actions: write (needs owner acceptance).

Duplicates checked: https://github.com/agent-labs-dev/mergeloop/issues/243 is about a different status symptom.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P9EQuGCLG33bVuVPpy9bqP

Dominant language
Rust
Stars
6
Forks
0
Avg merge
4h 17m
Merged PRs (30d)
132

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from agent-labs-dev/mergeloop

All issues in agent-labs-dev/mergeloop

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.