Sync retry/backoff npm install logic to setup-api-client template#1657
Closed
Sync retry/backoff npm install logic to setup-api-client template#1657
Conversation
…query ERROR_CATEGORIES.RESOURCE was undefined because the error_classifier exports lowercase keys. This caused the isNotFound check to always fail, so 404/resource errors from missing workflows were reported as "api_error" instead of being handled as expected not-found responses. https://claude.ai/code/session_01JhCWWDJG8PqwaSbVPCGfm6
Transient npm registry 403 errors (e.g. on safe-buffer) can kill the keepalive loop chain with no recovery. Replace the single-retry logic with a 3-attempt loop using exponential backoff (5s, 10s, 20s). The first failure still tries --legacy-peer-deps as before. https://claude.ai/code/session_01JhCWWDJG8PqwaSbVPCGfm6
2 tasks
Co-authored-by: stranske <23046322+stranske@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix retry with backoff for setup-api-client npm install
Sync retry/backoff npm install logic to setup-api-client template
Feb 25, 2026
Base automatically changed from
claude/fix-task-completion-concerns-I1gRT
to
main
February 25, 2026 20:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The template copy of
setup-api-clientattemplates/consumer-repo/.github/actions/setup-api-client/action.ymlwas missing the exponential-backoff retry loop and pinnedlru-cache@10.4.3added to the main action in #1656, causing template drift.Changes
templates/consumer-repo/.github/actions/setup-api-client/action.yml--legacy-peer-depsfallback) with a 3-attempt loop using exponential backoff (5s → 10s → 20s)lru-cache@10.4.3(waslru-cache@^10.0.0)--legacy-peer-depsfallback on first failure before sleeping and retrying::error::after all attempts exhaustedThe template now matches the main action exactly:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.