Skip to content

Conversation

kobenguyent
Copy link
Collaborator

resolves #139

@kobenguyent kobenguyent requested a review from puneet0191 June 4, 2024 09:20
@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.

@kobenguyent kobenguyent requested review from thomashohn and removed request for puneet0191 March 29, 2025 13:42
@kobenguyent kobenguyent requested a review from Copilot October 4, 2025 14:07
Copy link

@Copilot 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

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.

File Description
src/index.ts Added uploadOnlyBaseImage parameter and restructured S3 upload logic to conditionally skip diff/output uploads
README.md Updated 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) throw err;
else {
const base64data = new Buffer(data, "binary");
Copy link

Copilot AI Oct 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) throw err;
const base64data = new Buffer(data, "binary");
Copy link

Copilot AI Oct 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

@Copilot 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.

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

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.

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