Skip to content

Conversation

@mydea
Copy link
Member

@mydea mydea commented Jan 11, 2023

  1. build:tarball is actually not cacheable
  2. Make sure that we do not mark a package as needing to rebuild when tests change
  3. Add missing dependencies for serverless build

Note that we are still very defensive and will rebuild quite often. E.g. when you change a file in replay/src, it will not cache replay, browser, and anything that depends on browser. but IMHO it is better to be too defensive, so that's OK.

Reference: https://nx.dev/more-concepts/customizing-inputs

1. `build:tarball` is actually not cacheable
2. Make sure that we do not mark a package as needing to rebuild when tests change
3. Add missing dependencies for serverless build
@mydea mydea requested review from AbhiPrasad, Lms24 and lforst January 11, 2023 12:42
@mydea mydea self-assigned this Jan 11, 2023
"{workspaceRoot}/*.json",
"{workspaceRoot}/yarn.lock"
],
"default": [
Copy link
Member Author

Choose a reason for hiding this comment

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

note on this: This means that by default, a job is considered changed when one of these given files changes. meaning we do not consider a build to have to re-run when we change only a file in the tests, or a markdown file.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.84 KB (0%)
@sentry/browser - ES5 CDN Bundle (minified) 61.46 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.62 KB (+0.02% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 55 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.38 KB (0%)
@sentry/browser - Webpack (minified) 66.55 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.4 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.63 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.82 KB (+0.02% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 25.25 KB (-0.01% 🔽)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 43.04 KB (0%)
@sentry/replay - Webpack (gzipped + minified) 38.25 KB (0%)

@mydea mydea merged commit 8f299b6 into master Jan 11, 2023
@mydea mydea deleted the fn/nx-cache-improvements branch January 11, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants