Skip to content

fix(ci): resolve auto-merge workflow failures#25

Merged
samtuckerdavis merged 2 commits into
mainfrom
fix/desloppify-automerge-workflow
Apr 14, 2026
Merged

fix(ci): resolve auto-merge workflow failures#25
samtuckerdavis merged 2 commits into
mainfrom
fix/desloppify-automerge-workflow

Conversation

@samtuckerdavis
Copy link
Copy Markdown

Root cause

Every auto-merge.yml run since Apr 12 failed instantly — 0 jobs, 0 seconds, referenced_workflows: []. GitHub reported "This run likely failed because of a workflow file issue."

The previous workflow was a thin caller:

uses: Open-Paws/.github/.github/workflows/auto-merge.yml@main
secrets: inherit

Open-Paws/.github is an internal (private-to-org) repository. Open-Paws/desloppify is a fork of peteromallet/desloppify. GitHub cannot resolve reusable workflow references from forked repos to internal repos — the reference resolution fails before any job is queued, producing the empty-jobs failure observed in every run.

Fix

Replace the thin caller with a self-contained workflow that implements the same five gates directly:

  1. wave0-auto / level-0 label present
  2. PR author is a known agent bot
  3. All required CI checks are green (success / skipped / neutral)
  4. desloppify objective score >= 70
  5. NAV scan — zero ERROR-severity violations (skipped if semgrep-no-animal-violence.yaml absent)

This matches the working pattern already in use by gary and open-paws-platform, both of which are self-contained and passing.

What did NOT change

  • Gate logic is identical to the centralized reusable workflow
  • Threshold stays at 70 (desloppify default for non-Gary/platform repos)
  • Label contract unchanged: wave0-auto/level-0, needs-human-review, human-gate
  • GH_PAT_AUTO_MERGE || GITHUB_TOKEN fallback preserved

Test plan

  • Push triggers a new workflow run with jobs (not 0-job failure)
  • PRs without wave0-auto/level-0 label get needs-human-review + comment
  • PRs from non-bot authors are blocked at the author gate
  • Verify referenced_workflows is no longer empty in successful runs

The previous auto-merge.yml was a thin caller that delegated to
Open-Paws/.github/.github/workflows/auto-merge.yml@main. Every run
failed immediately (0 jobs, 0s) with "workflow file issue" because
GitHub cannot resolve reusable workflow references to internal repos
from this repo (a fork of peteromallet/desloppify).

Replace with a self-contained workflow implementing the same five gates:
  1. wave0-auto / level-0 label
  2. Known agent bot author
  3. All CI checks green
  4. desloppify objective score >= 70
  5. NAV scan — zero ERROR violations (skipped if config absent)

Logic is ported from the centralized workflow. This matches the working
pattern used by gary and open-paws-platform, both of which are
self-contained and passing.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 14, 2026

Warning

Rate limit exceeded

@stuckvgn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 33 minutes and 43 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 33 minutes and 43 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2617830d-18eb-467c-b890-8fe806acce73

📥 Commits

Reviewing files that changed from the base of the PR and between 50afbfc and 3d95be9.

📒 Files selected for processing (1)
  • .github/workflows/auto-merge.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/desloppify-automerge-workflow
  • 🛠️ fix NAV violations: Commit on current branch
  • 🛠️ fix NAV violations: Create PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Direct interpolation of needs.gate-check.outputs.failure_summary inside
a JS string literal in the 'Post or update gate failure comment' step
caused a SyntaxError when the value contained single quotes (e.g. a PR
author name like 'stuckvgn'). Move the value to an env: var and read it
via process.env.FAILURE_SUMMARY to safely handle arbitrary string content.
@github-actions
Copy link
Copy Markdown

Auto-Merge Gate Check — Blocked

PR labeled needs-human-review — one or more gates failed.

Failed Gates

  • Classification label missing — PR needs wave0-auto or level-0 label
  • PR author 'stuckvgn' is not a known agent bot
  • CI checks not all green: Incomplete: check, package-smoke, tests-core, ci-contracts, typecheck, tests-full, lint, arch-contracts, Analyze (actions), Analyze (javascript-typescript), Analyze (python).

How to unblock

  • Fix the failing gates and push a new commit — this workflow re-runs automatically.
  • If CI is still running, wait for it to complete.
  • If NAV config is absent, open a task to install the no-animal-violence suite.

Permanent block

  • Add the human-gate label to permanently disable auto-merge for this PR.

Auto-Merge Gate Check — 2026-04-14T14:01:58.109Z

@samtuckerdavis samtuckerdavis enabled auto-merge (squash) April 14, 2026 14:27
@samtuckerdavis samtuckerdavis merged commit 4aa174f into main Apr 14, 2026
15 checks passed
@samtuckerdavis samtuckerdavis deleted the fix/desloppify-automerge-workflow branch April 22, 2026 12:45
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.

1 participant