Skip to content

ci: cap release-please search depth to spare the shared PAT rate limit - #14

Merged
00o-sh merged 1 commit into
mainfrom
claude/combine-source-map-onboard-9bfvyz
Aug 13, 2026
Merged

ci: cap release-please search depth to spare the shared PAT rate limit#14
00o-sh merged 1 commit into
mainfrom
claude/combine-source-map-onboard-9bfvyz

Conversation

@00o-sh

@00o-sh 00o-sh commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What & why

release-please is failing with:

release search depth: 400
Error: release-please failed: ... API rate limit already exceeded for user ID 85048617.

85048617 is the shared org PAT user. The reusable workflow called release-please-action with only token, leaving release-search-depth (400) and commit-search-depth (500) at their defaults. release-please re-runs on every push to master across all 12 forks, all authenticating as that same PAT, so each run pages back through hundreds of releases/commits and a burst of merges (a night of Renovate automerges, or a run of manual merges) exhausts the user's ~5000/hr API budget.

The rate limit itself is transient and resets hourly — release-please recovers on the next push/dispatch, nothing is lost. This change is the durable fix so it stops recurring.

Change

uses: googleapis/release-please-action@…  # v5.0.0
with:
  token: ${{ secrets.PAT }}
+ release-search-depth: 40
+ commit-search-depth: 250

The forks are single-package manifests with single-digit release counts and a monthly release cadence, so 40/250 sit well above real history — this cuts ~10× off the release-search paging while staying far above any realistic commits-since-last-release, so no changelog entries are missed.

Rollout

Reusable-workflow change; forks pick it up when their @<sha> digest pin to this repo bumps (Renovate handles those digest updates). No fork edits needed.

Type of change

  • fix / feat / perf — consumer-facing
  • deps — dependency update
  • chore / ci / build / docs / test / refactor — maintenance (ci)

Checklist

  • Commits follow Conventional Commits (commitlint passes)
  • Workflow YAML validated
  • No behavior change beyond bounding the release/commit search window

Generated by Claude Code

release-please-action was called with its default release-search-depth
(400) and commit-search-depth (500). It re-runs on every push to master
across all forks, all authenticating as the same org PAT, so those deep
searches burn the user's hourly GitHub API budget in bursts — a night of
Renovate automerges or a run of manual merges trips "API rate limit
already exceeded".

The forks are single-package manifests with single-digit release counts
and a monthly release window, so cap the depths well above real history
(release 40, commit 250). This cuts per-run API cost ~10x on the release
search while staying far above any realistic commits-since-last-release,
so no changelog entries are missed.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UcmNgwVhqkNE1eViGYLnJ9
@00o-sh
00o-sh merged commit 6be3bc5 into main Aug 13, 2026
2 checks passed
@00o-sh
00o-sh deleted the claude/combine-source-map-onboard-9bfvyz branch August 13, 2026 05:16
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.

2 participants