Skip to content

[eas-cli] Fail fast in deploy when a Free-plan deployment exceeds the Hosting limit - #4271

Closed
douglowder wants to merge 1 commit into
mainfrom
doug/eng-26150-eas-cli-eas-deploy-should-fail-fast-when-plan-limits
Closed

[eas-cli] Fail fast in deploy when a Free-plan deployment exceeds the Hosting limit#4271
douglowder wants to merge 1 commit into
mainfrom
doug/eng-26150-eas-cli-eas-deploy-should-fail-fast-when-plan-limits

Conversation

@douglowder

@douglowder douglowder commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Why

eas deploy would attempt to deploy a very large site, exceeding the limit for free users, without checking to see if the deployment was possible first.

How

Add a size check in the command code. If the deployment size is going to exceed the limit, check if the account is on the free plan. If so, do one of the following:

  • Dry run mode: print a warning, but continue since no deployment occurs
  • Non-interactive: immediately error out with a message
  • Interactive: show the warning, and prompt the user to continue or not

Fixes #4257 .

Test Plan

  • Manual test with free account
  • New unit tests added

Stack created with GitHub Stacks CLIGive Feedback 💬

@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

ENG-26150

@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/src/commands/deploy/** @kitten, @kadikraman

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

@douglowder
douglowder force-pushed the doug/eng-26150-eas-cli-eas-deploy-should-fail-fast-when-plan-limits branch from 53f6509 to edbae3c Compare August 24, 2026 21:00
@douglowder
douglowder requested review from jonsamp and kitten August 24, 2026 21:00
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 19.23077% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.02%. Comparing base (66dbcaf) to head (cf63044).

Files with missing lines Patch % Lines
packages/eas-cli/src/commands/deploy/index.ts 16.00% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4271      +/-   ##
==========================================
- Coverage   64.05%   64.02%   -0.02%     
==========================================
  Files        1042     1042              
  Lines       48009    48034      +25     
  Branches    10130    10136       +6     
==========================================
+ Hits        30745    30750       +5     
- Misses      17148    17168      +20     
  Partials      116      116              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

… Hosting limit

A Free-plan `eas deploy` for a site larger than the 1 GB EAS Hosting limit only
failed after packing and uploading the whole site (~30-40 min), with an opaque
error. Estimate the deployment size from the collected assets before uploading;
when it exceeds the limit, query the account plan and, for Free-plan accounts,
either prompt to continue (interactive) or fail fast (non-interactive) with the
estimate, the limit, and an upgrade link. On --dry-run, only warn, since it
never uploads. The plan is queried only when the estimate is over the limit, so
normal deploys are unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@douglowder
douglowder force-pushed the doug/eng-26150-eas-cli-eas-deploy-should-fail-fast-when-plan-limits branch from edbae3c to cf63044 Compare August 25, 2026 02:02
@github-actions

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

@douglowder douglowder closed this Aug 25, 2026
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.

eas deploy (Hosting): "The multipart part asset name is unexpected" on large static site (~48k files)

1 participant