Skip to content

fix: drop axios from image renderer#1056

Open
ferhatelmas wants to merge 1 commit intomasterfrom
ferhat/image-renderer-axios
Open

fix: drop axios from image renderer#1056
ferhatelmas wants to merge 1 commit intomasterfrom
ferhat/image-renderer-axios

Conversation

@ferhatelmas
Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

refactor

What is the current behavior?

Axios and its retry package are used in image renderer.

What is the new behavior?

They are both replaced by native fetch.

Additional context

Add coverage.

Copilot AI review requested due to automatic review settings April 24, 2026 17:37
@ferhatelmas ferhatelmas requested a review from a team as a code owner April 24, 2026 17:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the image renderer to drop Axios/axios-retry in favor of native fetch, while adding targeted unit coverage for retry/timeout/abort behavior.

Changes:

  • Replaced Axios-based imgproxy client with a native fetch implementation including retry + timeout handling.
  • Updated route tests to reflect the new client request options (no responseType: 'stream').
  • Added a new ImageRenderer unit test suite covering metadata mapping, retries, aborts, and timeout edge-cases.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/storage/renderer/image.ts Replaces Axios client with fetch + retry/timeout logic and updates error/stream handling.
src/test/render-routes.test.ts Updates mocks/assertions for the new renderer client options shape.
src/storage/renderer/image.test.ts Adds unit coverage for the new fetch client behavior (retries/timeouts/aborts/stream stalling).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/storage/renderer/image.ts
Comment thread src/storage/renderer/image.ts
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 24, 2026

Coverage Report for CI Build 24906764211

Coverage increased (+0.3%) to 71.905%

Details

  • Coverage increased (+0.3%) from the base build.
  • Patch coverage: 18 uncovered changes across 1 file (121 of 139 lines covered, 87.05%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
src/storage/renderer/image.ts 139 121 87.05%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 9878
Covered Lines: 7509
Line Coverage: 76.02%
Relevant Branches: 5520
Covered Branches: 3563
Branch Coverage: 64.55%
Branches in Coverage %: Yes
Coverage Strength: 374.23 hits per line

💛 - Coveralls

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/storage/renderer/image.ts
Comment thread src/storage/renderer/image.ts Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/storage/renderer/image.ts Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/storage/renderer/image.ts
@ferhatelmas ferhatelmas force-pushed the ferhat/image-renderer-axios branch 2 times, most recently from b5236ba to da0e2d0 Compare April 24, 2026 18:29
@ferhatelmas ferhatelmas requested a review from Copilot April 24, 2026 18:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/storage/renderer/image.ts Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/storage/renderer/image.ts
Comment thread src/storage/renderer/image.ts
Comment thread src/storage/renderer/image.ts Outdated
@ferhatelmas ferhatelmas force-pushed the ferhat/image-renderer-axios branch 2 times, most recently from e433643 to 8c0237d Compare April 24, 2026 18:49
@ferhatelmas ferhatelmas requested a review from Copilot April 24, 2026 18:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/storage/renderer/image.ts
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants