chore: raise compressed layer size limit to 10 MB - #857
Merged
Merged
Conversation
ddtrace 4.15.x grew the amd64 layers past the 9231 KB limit (3.14-amd64 is 9538 KB, 3.11-3.13 are 9238-9283 KB). Nearly all of the growth is in ddtrace's native extension (_native.so, +401 KB compressed), led by DataDog/dd-trace-py#19631 (+233 KB). Raise the limit to 9.5 MB to unblock CI while the size regression is addressed upstream. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
lucaspimentel
approved these changes
Sep 23, 2026
This comment has been minimized.
This comment has been minimized.
purple4reina
approved these changes
Sep 23, 2026
purple4reina
left a comment
Contributor
There was a problem hiding this comment.
I love how very specific our math has become here.... lol
Leave ~700 KB of headroom over the current largest layer (py3.14-amd64, 9538 KB) so the next few ddtrace releases don't immediately re-block CI. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Raises
MAX_LAYER_COMPRESSED_SIZE_KBinscripts/check_layer_size.shfrom 9231 KB to 10240 KB (10 MB).Motivation
check-layer-sizefails on every amd64 runtime from 3.11 to 3.14 as soon as the build resolves ddtrace 4.15.x (released 2026-09-16). This blocks all PRs, and main would fail the same way. arm64 still passes.Almost all of the 4.14 → 4.15 growth is in ddtrace's Rust extension,
ddtrace/internal/native/_native.so(+401 KB compressed).libddwaf.soadds another +60 KB. I measured each commit's CI wheel against its parent (cp312 x86_64, compressed). The largest contributors:agentlessfeature oflibdd-remote-configUpstream gates didn't catch this:
ddtrace_serverlesswheel rather than the PyPIddtracewheel that this layer ships.This is a short-term unblock. The size regression should be addressed upstream.
Testing Guidelines
_native.soper ddtrace minor release), that's several releases of runway, so fixing the size upstream can happen without re-blocking CI._native.sosize as 4.15.2, so the next release shouldn't immediately exceed the new limit.check-layer-sizejobs on this PR should pass for all runtimes.Additional Notes
The previous bump was #760 (9216 → 9231 KB).
Types of Changes
Check all that apply
🤖 Generated with Claude Code