chore: strip dd-trace Test Optimization validation runbook from layer#800
Merged
Merged
Conversation
dd-trace-js#9323 ships an agent-guided Test Optimization debug runbook under the ci/ namespace of the npm package (~150KB). It is gated behind private env vars and never loaded in a lambda environment, so remove it (and the pre-existing ci/init.js entrypoint) from the layer.
|
BridgeAR
approved these changes
Jul 24, 2026
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
Adds two
rm -rflines to the layerDockerfileto remove dd-trace's Test Optimization validation runbook from the published Lambda layer:/nodejs/node_modules/dd-trace/ci/nodejs/node_modules/dd-trace/packages/dd-trace/src/ci-visibility/exporters/ci-validationWhy
DataDog/dd-trace-js#9323 ships an agent-guided Test Optimization debug runbook (
ci/runbook.md+ scripts underci/test-optimization-validation/, ~150KB / ~17k lines) inside the npm package, andci/**/*is in dd-trace'sfileslist, so it lands in our layer on the next dd-trace bump.The code is fully gated behind private env vars (
_DD_TEST_OPTIMIZATION_VALIDATION_MODEetc.) and is never loaded in a Lambda environment — it's dead weight for us. Since we already strip unused files to keep the layer small, strip this too. Removing the wholedd-trace/cidirectory also reclaims the pre-existingci/init.jsCI-visibility entrypoint, which Lambda never loads either.packages/dd-trace/src/ci-visibility/test-optimization-http-cache.jsis intentionally kept:ci-visibility-exporter.jsnow requires it at module load, and it's only ~300 lines.