Skip to content

[TOW-1316] Validate 50MB Limit for deployment package size - #148

Merged
sammuti merged 2 commits into
developfrom
chore/TOW-1316
Dec 31, 2025
Merged

[TOW-1316] Validate 50MB Limit for deployment package size#148
sammuti merged 2 commits into
developfrom
chore/TOW-1316

Conversation

@sammuti

Copy link
Copy Markdown
Contributor

Validate 50MB Limit for deployment package size

CopilotAI 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

This PR implements validation for a 50MB deployment package size limit. The changes ensure that bundle deployments fail gracefully with a clear error message when attempting to upload packages that exceed this threshold.

Key Changes:

  • Introduced a MAX_BUNDLE_SIZE constant set to 50MB in the package crate
  • Added size validation before upload with user-friendly error messaging
  • Applied formatting fixes to improve code consistency

Reviewed changes

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

FileDescription
crates/tower-package/src/lib.rsDefines the 50MB maximum bundle size constant
crates/tower-cmd/src/util/deploy.rsImplements bundle size validation with error message before upload
crates/tower-telemetry/src/logging.rsFormatting improvements for multi-line method chains
crates/tower-runtime/tests/local_test.rsFormatting fix for trailing comma

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

@sammuti
sammuti changed the base branch from main to developDecember 30, 2025 17:14
@towertower deleted a comment from github-actionsBotDec 30, 2025
Comment threadcrates/tower-cmd/src/util/deploy.rs

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

Looks good overall, one minor change to messaging then you can land it!

@sammuti
sammuti merged commit 770eef0 into developDec 31, 2025
5 checks passed
@sammuti
sammuti deleted the chore/TOW-1316 branch December 31, 2025 12:25
@sammuti
sammuti restored the chore/TOW-1316 branch January 2, 2026 19:10
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.

3 participants

@sammuti@bradhe