Knowledge base
Waiting on CI
Why a Picnic job sits on Waiting on CI, how Picnic reads your checks, and what to do when CI is slow, red, skipped or missing.
Before a job merges, Picnic waits for your CI to go green. While it waits, the job sits in Running with the badge Waiting on CI. This page explains what it's waiting for and what to do if it seems stuck.
What Picnic waits for
Picnic reads the pull request's checks with:
gh pr checks --required
| Repository has | Picnic waits for |
|---|---|
| Required checks (branch protection or rulesets) | The required checks |
| Checks, none required | All checks |
| No checks at all | Nothing. CI counts as green, and the job says so |
A skipped or cancelled required check isn't green. Pending checks are looked at every 30 seconds, for as long as CI takes. There's no time limit, so a 40 minute build is fine.
A job waiting on CI has no live agent session, so it doesn't use the agent. A chat message sent then gets merging: wait for it to finish, or message it once it's in Needs you or Done.
It's been waiting a long time
- Open the pull request from the job and look at its checks on GitHub.
- Is a check queued with no runner? Self-hosted runners that are offline, or used up Actions minutes, leave checks pending forever. Fix the runner, or re-run the job on GitHub.
- Is a required check never reported? A required status that no workflow produces (renamed, or limited to certain paths) stays pending. Fix the branch rules or the workflow.
- Is the GitHub CLI still logged in on that machine? See GitHub CLI problems.
When the check finishes, Picnic notices within 30 seconds.
CI is red
Red CI goes back to the agent. Picnic resumes it with the failure so it can fix the cause, push and wait again. It gets 3 tries. After that the job moves to Needs you as Stuck, with what was tried.
From there you can:
- send a hint in the chat ("the snapshot test needs updating, not the component") and it carries on
- choose Try again for another round
- choose Stop here to close it, then look yourself
The agent is told never to make CI pass by weakening it: no deleting or skipping tests, no lint suppressions, no loosened thresholds. If it thinks a test is genuinely wrong, it should say so.
A required check is skipped or cancelled
Picnic doesn't count it as green. Re-run it on GitHub, or change the workflow so it runs on the job's branch.
The merge conflicts
If GitHub refuses the merge because the branch conflicts with the base, Picnic resumes the agent to merge the base in and push, with the same 3 tries, then waits for CI again.
CI is green but it's in Needs you
Your branch rules need something Picnic can't give, usually a review from someone else. Picnic has turned on GitHub auto-merge and checks every 2 minutes. Once the review is in, GitHub merges and the job finishes. Or use Merge now or Merge with admin bypass. See Review and merge.
Workflow files
If the agent needs to change files in .github/workflows/, it asks you first. And the GitHub CLI needs the workflow scope to push them:
gh auth refresh -s repo,workflow
