Skip to content

Silent API error swallowing can misclassify a repo as MISSING on transient failures #72

Description

@twistedmelonman

Non-Blocking Review Concern: Silent API error swallowing can misclassify a repo as MISSING on transient failures

Source: pre-push whole-codebase review
Location: bulk-install-claude-review.sh:157-158, 280-281
Date: 2026-04-30

What was flagged

find_caller_file calls gh api ... 2>/dev/null || echo "". A transient 5xx, network blip, or auth scope issue produces an empty file list — indistinguishable from "no workflow files". The repo is then classified MISSING and (in --apply) a PR is opened to install .github/workflows/claude-code-review.yml, which would conflict with whatever already exists. Distinguish "directory empty/absent" (HTTP 404) from "API error" (other status); on error, classify as REPOS_ERROR and skip rather than treating as MISSING.

Context

This issue was automatically created from a non-blocking concern identified
during pre-push whole-codebase review. It was flagged for tracking.


Created by lib-review-issues.sh

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtTechnical debt to address

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions