Skip to content

Conversation

@kobenguyent
Copy link
Collaborator

resolves#139

@mbrodala
Copy link

This skips S3 upload completely which does not fix #139.

You can instead not configure S3, then there already will be no upload.

My issue was about skipping upload of diff and output but keep the upload for base.

@kobenguyentkobenguyent requested review from thomashohn and removed request for puneet0191March 29, 2025 13:42
Copy link

CopilotAI 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

This PR adds an optional feature to skip S3 uploads of diff and output images when only the base image upload is needed. This provides more granular control over which files get uploaded to S3, potentially improving performance and reducing bandwidth usage.

  • Added uploadOnlyBaseImage parameter to control S3 upload behavior
  • Restructured upload logic to conditionally upload diff and output images
  • Updated documentation to explain the new configuration option

Reviewed Changes

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

FileDescription
src/index.tsAdded uploadOnlyBaseImage parameter and restructured S3 upload logic to conditionally skip diff/output uploads
README.mdUpdated AWS configuration documentation to include the new uploadOnlyBaseImage option

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

fs.readFile(this._getBaseImagePath(baseImage,options),(err: any,data: any)=>{
if(err)throwerr;
else{
constbase64data=newBuffer(data,"binary");
Copy link

CopilotAIOct 4, 2025

Choose a reason for hiding this comment

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

The Buffer constructor is deprecated. Use Buffer.from(data, 'binary') instead for better security and compatibility.

Copilot uses AI. Check for mistakes.

fs.readFile(this._getActualImagePath(baseImage),(err: any,data: any)=>{
if(err)throwerr;
constbase64data=newBuffer(data,"binary");
Copy link

CopilotAIOct 4, 2025

Choose a reason for hiding this comment

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

The Buffer constructor is deprecated. Use Buffer.from(data, 'binary') instead for better security and compatibility.

Copilot uses AI. Check for mistakes.
Copy link

CopilotAI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for freeto 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.

Optionally skip "output" & "diff" upload to S3

4 participants

@kobenguyent@mbrodala@thomashohn