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

@sammuti sammuti commented Dec 30, 2025

Copy link
Copy Markdown
Contributor

Validate 50MB Limit for deployment package size

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

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.

File Description
crates/tower-package/src/lib.rs Defines the 50MB maximum bundle size constant
crates/tower-cmd/src/util/deploy.rs Implements bundle size validation with error message before upload
crates/tower-telemetry/src/logging.rs Formatting improvements for multi-line method chains
crates/tower-runtime/tests/local_test.rs Formatting 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 develop December 30, 2025 17:14
@tower tower deleted a comment from github-actions Bot Dec 30, 2025
Comment thread crates/tower-cmd/src/util/deploy.rs

@bradhe bradhe 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 develop Dec 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 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