{"record":{"id":"cad861b3bd445051","repo":"nikivdev/code","slug":"some-queued-commit-reviews-failed-resolve-errors","errorCode":null,"errorMessage":"Some queued commit reviews failed. Resolve errors and re-run.","messagePattern":"Some queued commit reviews failed\\. Resolve errors and re-run\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/commit.rs","lineNumber":9194,"sourceCode":"                    }\n                    Err(err) => {\n                        failed += 1;\n                        println!(\n                            \"  ✗ Failed to review {}: {}\",\n                            short_sha(&entry.commit_sha),\n                            err\n                        );\n                    }\n                }\n            }\n\n            println!(\n                \"Review refresh summary: clean={}, issues={}, timed_out={}, failed={}\",\n                clean, with_issues, timed_out, failed\n            );\n\n            if failed > 0 {\n                bail!(\"Some queued commit reviews failed. Resolve errors and re-run.\");\n            }\n        }\n        CommitQueueAction::Approve {\n            all,\n            hash,\n            queue_if_missing,\n            mark_reviewed,\n            force,\n            allow_issues,\n            allow_unreviewed,\n        } => {\n            if all {\n                if hash.is_some() {\n                    bail!(\n                        \"--all cannot be combined with HASH. Use `f commit-queue approve --all`.\"\n                    );\n                }\n                if queue_if_missing {","sourceCodeStart":9176,"sourceCodeEnd":9212,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/commit.rs#L9176-L9212","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Read the summary line (clean/issues/timed_out/failed counts) and per-entry output to find which entries failed.","Fix the failing cause and re-run the review command.","Check auth/token validity and network access to the review backend.","Remove or fix the broken queue entry, then re-run."],"exampleFix":null,"handlingStrategy":"retry","validationCode":"// pre-flight: verify review backend reachability/auth before a bulk review\nlet health = Command::new(review_backend).arg(\"--check\").output()?;\nif !health.status.success() {\n    bail!(\"review backend unhealthy; fix before batch review\");\n}","typeGuard":null,"tryCatchPattern":"match review_all() {\n    Err(e) if e.to_string().contains(\"Some queued commit reviews failed\") => {\n        eprintln!(\"{e}; inspect per-entry output, fix, then re-run the review\");\n        // safe to retry: reviews are per-entry and idempotent\n    }\n    other => other?,\n}","preventionTips":["Validate auth/network to the review backend before large batches.","Review entries individually first to isolate a broken entry.","Refresh tokens before long-running batch operations.","Re-run review after any transient failure before approving."],"tags":["commit-queue","review","batch-processing"],"backgroundTag":"batch-review-failed","analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}