Skip to content

Add shared retry-command composite action - #16

Merged
kei-nan merged 1 commit into
mainfrom
add-shared-retry-command
Nov 15, 2026
Merged

kei-nan merged 1 commit into
mainfrom
add-shared-retry-command

Conversation

@kei-nan

@kei-nan kei-nan commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

RediSearch and RSE repeat setup retry loops, including before checkout, where a local action is unavailable. Add RediSearch's existing retry-command as a shared composite action so callers can use one implementation remotely.

Preserves the existing inputs and behavior: five attempts with 30-second delays by default, configurable working directory, login Bash with pipefail, and an optional step-scoped GitHub token. The implementation is copied unchanged from RediSearch commit 33d90342bc9c601d904fb58446f8bda4eaba5011. README documents usage, shell failure semantics, and availability through @v1 after release. Caller migrations and release tagging are separate changes.

Validation: strict YAML parsing with duplicate-key rejection across the repository; Python compileall; git diff --check; seven shell smoke checks covering immediate success, transient failure, exhaustion, working directory, absent/provided token, and pipeline failure. Actionlint is not installed locally; repository CI will run it.


Note

Low Risk
CI plumbing only—new optional composite action and documentation; no changes to auth, runtime product code, or existing workflows until consumers adopt it.

Overview
Adds a shared retry-command composite action so consuming repos can run setup-style shell steps with bounded retries instead of duplicating loops locally (including steps that run before checkout).

The action retries a caller-supplied command up to five times with 30-second delays by default, supports working_directory and an optional step-scoped github_token (exported as GITHUB_TOKEN only when set), and fails the step if all attempts fail. It uses login Bash with pipefail and eval in an if, so multi-command strings should chain with &&.

The README lists the action in Shared CI utilities and adds a Retrying setup commands section with a @v1 usage example, shell failure semantics, and notes that no checkout of this repo is required for the action itself.

Reviewed by Cursor Bugbot for commit bfc281b. Bugbot is set up for automated code reviews on this repo. Configure here.

@kei-nan
kei-nan merged commit 21438e0 into main Nov 15, 2026
2 checks passed
@kei-nan
kei-nan deleted the add-shared-retry-command branch November 15, 2026 08:49
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.

1 participant