Skip to content

vip app deploy - Flag large archive files included in BYOR deploy#2889

Merged
rebeccahum merged 5 commits into
trunkfrom
byor/find-large-zip-files
Jun 18, 2026
Merged

vip app deploy - Flag large archive files included in BYOR deploy#2889
rebeccahum merged 5 commits into
trunkfrom
byor/find-large-zip-files

Conversation

@rebeccahum

@rebeccahum rebeccahum commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Usually archive files shouldn't be included, so this is just a warning to the user in case.

Changelog Description

Changed

  • Custom Deployments: Add a pre-deploy check for vip app deploy that warns when the deployment archive contains nested archive files over 50 MB

Pull request checklist

New release checklist

Steps to Test

Outline the steps to test and verify the PR here.

Example:

  1. Check out PR.
  2. Run npm run build
  3. Run ./dist/bin/vip-cookies.js nom
  4. Verify cookies are delicious.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new preflight validation to vip app deploy to detect large nested archive files (e.g., .zip, .tar.gz, .tgz) inside the deployment archive and surface that to the user, with an opt-out flag.

Changes:

  • Added archive scanning utilities in custom deploy validations to find nested archive files over 50 MB.
  • Wired the new preflight check into vip app deploy, with --skip-large-file-verify to bypass.
  • Added Jest coverage for the new preflight validation flow and CLI wiring.

Reviewed changes

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

Show a summary per file
File Description
src/lib/validations/custom-deploy.ts Adds helpers to detect nested deploy archives over a 50 MB threshold and refactors deploy extension detection.
src/lib/custom-deploy/custom-deploy.ts Adds validateLargeArchiveFiles() that runs the scan, tracks events, and reports findings.
src/bin/vip-app-deploy.ts Invokes the new validation during deploy preflight and introduces --skip-large-file-verify.
tests/lib/custom-deploy/custom-deploy.js Adds unit tests for validateLargeArchiveFiles() behavior (success, flagged, and failure paths).
tests/bin/vip-app-deploy.js Updates deploy command tests to assert the new validation runs (and is skippable).

Comment thread src/lib/custom-deploy/custom-deploy.ts Outdated
Comment thread src/lib/validations/custom-deploy.ts
Comment thread src/lib/validations/custom-deploy.ts
rebeccahum and others added 2 commits June 18, 2026 13:55
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@rebeccahum rebeccahum requested a review from a team June 18, 2026 19:58
Comment thread src/bin/vip-app-deploy.ts Outdated
.option( 'message', 'Add a description of a deployment.' )
.option( 'skip-confirmation', 'Skip the confirmation prompt.' )
.option(
'skip-large-file-verify',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does --skip-large-files-validation sound better?

@rebeccahum rebeccahum Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe --skip-large-file-validate

@rebeccahum rebeccahum merged commit 4f311a2 into trunk Jun 18, 2026
17 checks passed
@rebeccahum rebeccahum deleted the byor/find-large-zip-files branch June 18, 2026 21:51
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants