Skip to content

test(client): add comprehensive retry logic tests for issue #144 - #171

Merged
Cjay-Cyber-2 merged 2 commits into
ASTROIDX556:mainfrom
entitydev30:fix/retry-logic-144
Sep 1, 2026
Merged

test(client): add comprehensive retry logic tests for issue #144#171
Cjay-Cyber-2 merged 2 commits into
ASTROIDX556:mainfrom
entitydev30:fix/retry-logic-144

Conversation

@entitydev30

@entitydev30 entitydev30 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Expand the retry test suite from 6 to 16 tests to fully satisfy the acceptance criteria for exponential backoff with Retry-After support. New tests verify:

  • Retry-After header is respected on 429 responses (waits the specified duration before retrying)
  • Non-retriable errors (400, 401, 404) are never retried and propagate the correct typed error (ValidationError, AuthenticationError, NotFoundError)
  • Non-idempotent methods (POST) are not retried by default
  • Idempotent methods (PUT) are retried as expected
  • retry: false completely disables the retry mechanism
  • Exponential backoff with increasing delays between retry attempts
  • 429 rate limit errors trigger retries

🤖 Generated with Codebuff

Summary

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Docs

Related issue

Closes #144

Checklist

  • npm run build passes
  • npm run typecheck passes
  • npm run lint passes
  • No secrets in tracked files

…56#144

Expand the retry test suite from 6 to 16 tests to fully satisfy the
acceptance criteria for exponential backoff with Retry-After support.
New tests verify:

- Retry-After header is respected on 429 responses (waits the specified
  duration before retrying)
- Non-retriable errors (400, 401, 404) are never retried and propagate
  the correct typed error (ValidationError, AuthenticationError,
  NotFoundError)
- Non-idempotent methods (POST) are not retried by default
- Idempotent methods (PUT) are retried as expected
- retry: false completely disables the retry mechanism
- Exponential backoff with increasing delays between retry attempts
- 429 rate limit errors trigger retries

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@entitydev30 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@mergekeeper

mergekeeper Bot commented Aug 30, 2026

Copy link
Copy Markdown

MergeKeeper review

Scope: in scope for linked issue #144.
Verdict: clean

Comprehensive unit tests are added for retry logic, exponential backoff, Retry-After headers, and non-retriable error behaviors in the client package.

Reviewed commit: 88e05ebfc01cb10b31c959d23318a6a0d91b1cc7.
CI and merge eligibility are checked separately.

@Cjay-Cyber-2
Cjay-Cyber-2 merged commit e80b6fe into ASTROIDX556:main Sep 1, 2026
1 check failed
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.

Add retry logic with exponential backoff for transient HTTP errors in @astroid/client

2 participants