Skip to content

chore(aws-lambda): give the packed size budget its usual 5% headroom - #8176

Merged
jrusso1020 merged 1 commit into
mainfrom
hf/lambda-size-budget-headroom
Nov 18, 2026
Merged

jrusso1020 merged 1 commit into
mainfrom
hf/lambda-size-budget-headroom

Conversation

@jrusso1020

Copy link
Copy Markdown
Collaborator

What

Raises the @hyperframes/aws-lambda packed size budget from 82,000 to 85,447 bytes.

Why

#8173 set the budget to 82,000 bytes, but the package measures 81,378 bytes, so it had only about 0.8% headroom and the next small change would fail verify:packed-manifests again. The budget file's own rule (SIZE_BUDGET_HEADROOM in scripts/verify-packed-manifests.mjs) puts a budget 5% above the measured size: ceil(81,378 × 1.05) = 85,447. 81,378 also stays above the 85% ratchet floor (72,630).

Related work

Follows a review note on #8173.

How

One number in scripts/package-size-budgets.json. The unpacked budget is unchanged.

Test plan

  • CI Build runs verify:packed-manifests against the new budget
  • Unit tests added/updated (none: a config value)
  • Documentation updated (not applicable)
  • Comments follow CONTRIBUTING.md "Comments"

🤖 Generated with Claude Code

#8173 set the budget to 82,000 against 81,378 bytes measured, about 0.8%
over. The budget file's own rule is 5% above measured, so the next small
change would trip it again: ceil(81,378 × 1.05) = 85,447.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@miguel-heygen miguel-heygen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Checked at 9c67d292: one line in scripts/package-size-budgets.json, @hyperframes/aws-lambda packed 82,000 -> 85,447 = ceil(81,378 x 1.05), the file's 5% headroom rule. CI green.

Verdict: APPROVE
Reasoning: The new budget is exactly the rule's figure for the measured size; nothing else changes.

@jrusso1020
jrusso1020 added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit c696c0e Nov 18, 2026
67 checks passed
@jrusso1020
jrusso1020 deleted the hf/lambda-size-budget-headroom branch November 18, 2026 12:29
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.

2 participants