chore(ci): Streamline CI setup to split bundle, layer, tarball generation#20396
Draft
chore(ci): Streamline CI setup to split bundle, layer, tarball generation#20396
Conversation
…install Replace `file:` directory references with `npm pack` tarballs when installing @sentry/* packages into the Lambda layer's node_modules. Previously, `yarn install` used `file:` references to workspace packages with a fresh cache folder (to avoid stale cache issues), taking ~52s. With tarballs, yarn can use its global cache and the install completes in ~8s. Only transitive dependencies of @sentry/aws-serverless are packed (~5 packages), keeping the packing step fast. Total layer build time: ~97s → ~15s. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Instead, only build this before uploading artifacts, as we do not really need this before.
…l-based install" This reverts commit 7203205.
Contributor
size-limit report 📦
|
4481233 to
8c330ce
Compare
use correct nx version fix linting
This reverts commit e2107f0.
8c330ce to
3f6e7fa
Compare
fis check for bundles build fix expression fixes fix for extension dynamically build build_paths fixes fix e2e test cache nx per-run
027637c to
e2a4045
Compare
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.
Noticed this while working on other things, this was a bit more spread out then necessary:
With this PR, we instead have a proper step to build tarballs which are stored as artifacts (which should never fail), and which are also reused if needed at the end. The test matrix detection goes into the metadata job, so we can possibly also use it for other things.