nikivdev/code · error

Some queued commit reviews failed. Resolve errors and re-run

Error message

Some queued commit reviews failed. Resolve errors and re-run.

What it means

In the CommitQueueAction::Review refresh path (src/commit.rs:9194), after reviewing all queued commits the tool counts failures; if `failed > 0` it bails so the caller knows at least one review errored and must be fixed and re-run.

Source

Thrown at src/commit.rs:9194

                    }
                    Err(err) => {
                        failed += 1;
                        println!(
                            "  ✗ Failed to review {}: {}",
                            short_sha(&entry.commit_sha),
                            err
                        );
                    }
                }
            }

            println!(
                "Review refresh summary: clean={}, issues={}, timed_out={}, failed={}",
                clean, with_issues, timed_out, failed
            );

            if failed > 0 {
                bail!("Some queued commit reviews failed. Resolve errors and re-run.");
            }
        }
        CommitQueueAction::Approve {
            all,
            hash,
            queue_if_missing,
            mark_reviewed,
            force,
            allow_issues,
            allow_unreviewed,
        } => {
            if all {
                if hash.is_some() {
                    bail!(
                        "--all cannot be combined with HASH. Use `f commit-queue approve --all`."
                    );
                }
                if queue_if_missing {

View on GitHub (pinned to a747e741ae)

Solutions

  1. Read the summary line (clean/issues/timed_out/failed counts) and per-entry output to find which entries failed.
  2. Fix the failing cause and re-run the review command.
  3. Check auth/token validity and network access to the review backend.
  4. Remove or fix the broken queue entry, then re-run.
Defensive patterns

Strategy: retry

Validate before calling

// pre-flight: verify review backend reachability/auth before a bulk review
let health = Command::new(review_backend).arg("--check").output()?;
if !health.status.success() {
    bail!("review backend unhealthy; fix before batch review");
}

Try / catch

match review_all() {
    Err(e) if e.to_string().contains("Some queued commit reviews failed") => {
        eprintln!("{e}; inspect per-entry output, fix, then re-run the review");
        // safe to retry: reviews are per-entry and idempotent
    }
    other => other?,
}

Prevention

When it happens

Trigger: Running `f commit-queue review` where one or more per-entry review runs returned errors — the review backend crashed, network/auth failure to the review service, or an invalid queue entry state.

Common situations: Network outage or API rate limit while reviewing many entries; expired token mid-batch; one malformed queue entry failing in a bulk review; review tooling missing in CI.

Related errors


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/cad861b3bd445051. Report an issue: GitHub.