Skip to content

Commit

Permalink
Merge pull request #11246 from getsentry/prepare-release/8.0.0-alpha.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Mar 22, 2024
2 parents 312e52d + 53c2dd8 commit f36b96b
Show file tree
Hide file tree
Showing 261 changed files with 7,478 additions and 10,759 deletions.
6 changes: 1 addition & 5 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ targets:
includeNames: /^sentry-profiling-node-\d.*\.tgz$/

## 3 Browser-based Packages
- name: npm
id: '@sentry/angular-ivy'
includeNames: /^sentry-angular-ivy-\d.*\.tgz$/
- name: npm
id: '@sentry/angular'
includeNames: /^sentry-angular-\d.*\.tgz$/
Expand Down Expand Up @@ -145,6 +142,7 @@ targets:
- nodejs14.x
- nodejs16.x
- nodejs18.x
- nodejs20.x
license: MIT

# CDN Bundle Target
Expand Down Expand Up @@ -178,8 +176,6 @@ targets:
onlyIfPresent: /^sentry-vue-\d.*\.tgz$/
'npm:@sentry/gatsby':
onlyIfPresent: /^sentry-gatsby-\d.*\.tgz$/
'npm:@sentry/angular-ivy':
onlyIfPresent: /^sentry-angular-ivy-\d.*\.tgz$/
'npm:@sentry/angular':
onlyIfPresent: /^sentry-angular-\d.*\.tgz$/
'npm:@sentry/astro':
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ body:
- '@sentry/browser'
- '@sentry/astro'
- '@sentry/angular'
- '@sentry/angular-ivy'
- '@sentry/aws-serverless'
- '@sentry/bun'
- '@sentry/deno'
Expand Down
41 changes: 33 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ env:
${{ github.workspace }}/packages/ember/*.d.ts
${{ github.workspace }}/packages/gatsby/*.d.ts
${{ github.workspace }}/packages/core/src/version.ts
${{ github.workspace }}/packages/serverless
${{ github.workspace }}/packages/utils/cjs
${{ github.workspace }}/packages/utils/esm
Expand Down Expand Up @@ -278,6 +277,34 @@ jobs:
# `job_build` can't see `job_install_deps` and what it returned)
dependency_cache_key: ${{ needs.job_install_deps.outputs.dependency_cache_key }}

job_size_check:
name: Size Check
needs: [job_get_metadata, job_build]
timeout-minutes: 15
runs-on: ubuntu-20.04
if:
github.event_name == 'pull_request' || needs.job_get_metadata.outputs.is_develop == 'true' ||
needs.job_get_metadata.outputs.is_release == 'true'
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
uses: actions/checkout@v4
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
uses: ./.github/actions/restore-cache
env:
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
- name: Check bundle sizes
uses: ./dev-packages/size-limit-gh-action
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Only run comparison against develop if this is a PR
comparison_branch: ${{ (github.event_name == 'pull_request' && github.base_ref) || ''}}

job_lint:
name: Lint
# Even though the linter only checks source code, not built code, it needs the built code in order check that all
Expand Down Expand Up @@ -385,7 +412,7 @@ jobs:
${{ github.workspace }}/packages/replay/build/bundles/**
${{ github.workspace }}/packages/replay-canvas/build/bundles/**
${{ github.workspace }}/packages/**/*.tgz
${{ github.workspace }}/packages/serverless/build/aws/dist-serverless/*.zip
${{ github.workspace }}/packages/aws-serverless/build/aws/dist-serverless/*.zip
job_browser_unit_tests:
name: Browser Unit Tests
Expand Down Expand Up @@ -584,7 +611,7 @@ jobs:
name: Playwright (${{ matrix.bundle }}${{ matrix.shard && format(' {0}/{1}', matrix.shard, matrix.shards) || ''}}) Tests
needs: [job_get_metadata, job_build]
if: needs.job_get_metadata.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
runs-on: ubuntu-20.04
runs-on: ubuntu-20.04-large-js
timeout-minutes: 25
strategy:
fail-fast: false
Expand Down Expand Up @@ -879,16 +906,14 @@ jobs:
strategy:
fail-fast: false
matrix:
# For whatever reason, these segfault on Node 18, so we are skipping these for now...
node: [20, 21]
node: [18, 20, 21]
remix: [1, 2]
# Remix v2 only supports Node 18+, so run Node 14, 16 tests separately
include:
- node: 14
remix: 1
# For whatever reason, these segfault on Node 16, so we are skipping these for now...
# - node: 16
# remix: 1
- node: 16
remix: 1
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
uses: actions/checkout@v4
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/issue-package-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
"@sentry.angular": {
"label": "Package: Angular"
},
"@sentry.angular-ivy": {
"label": "Package: Angular"
},
"@sentry.bun": {
"label": "Package: Bun"
},
Expand Down
84 changes: 39 additions & 45 deletions .size-limit.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
module.exports = [
// Main browser webpack builds
{
name: '@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped)',
name: '@sentry/browser (incl. Tracing, Replay, Feedback)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, replayIntegration, browserTracingIntegration, feedbackIntegration }',
gzip: true,
limit: '90 KB',
},
{
name: '@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped)',
name: '@sentry/browser (incl. Tracing, Replay)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, replayIntegration, browserTracingIntegration }',
gzip: true,
limit: '75 KB',
limit: '90 KB',
},
{
name: '@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped)',
name: '@sentry/browser (incl. Tracing, Replay with Canvas)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, replayIntegration, browserTracingIntegration, replayCanvasIntegration }',
gzip: true,
limit: '90 KB',
},
{
name: '@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)',
name: '@sentry/browser (incl. Tracing, Replay) - with treeshaking flags',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, replayIntegration, browserTracingIntegration }',
gzip: true,
Expand All @@ -41,98 +41,98 @@ module.exports = [
},
},
{
name: '@sentry/browser (incl. Tracing) - Webpack (gzipped)',
name: '@sentry/browser (incl. Tracing)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, browserTracingIntegration }',
gzip: true,
limit: '35 KB',
limit: '90 KB',
},
{
name: '@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped)',
name: '@sentry/browser (incl. browserTracingIntegration)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, browserTracingIntegration }',
gzip: true,
limit: '35 KB',
limit: '90 KB',
},
{
name: '@sentry/browser (incl. feedbackIntegration) - Webpack (gzipped)',
name: '@sentry/browser (incl. feedbackIntegration)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, feedbackIntegration }',
gzip: true,
limit: '50 KB',
limit: '90 KB',
},
{
name: '@sentry/browser (incl. feedbackModalIntegration) - Webpack (gzipped)',
name: '@sentry/browser (incl. feedbackModalIntegration)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, feedbackIntegration, feedbackModalIntegration }',
gzip: true,
limit: '50 KB',
limit: '90 KB',
},
{
name: '@sentry/browser (incl. feedbackScreenshotIntegration) - Webpack (gzipped)',
name: '@sentry/browser (incl. feedbackScreenshotIntegration)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, feedbackIntegration, feedbackModalIntegration, feedbackScreenshotIntegration }',
gzip: true,
limit: '50 KB',
limit: '90 KB',
},
{
name: '@sentry/browser (incl. sendFeedback) - Webpack (gzipped)',
name: '@sentry/browser (incl. sendFeedback)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, sendFeedback }',
gzip: true,
limit: '50 KB',
limit: '90 KB',
},
{
name: '@sentry/browser - Webpack (gzipped)',
name: '@sentry/browser',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init }',
gzip: true,
limit: '28 KB',
limit: '90 KB',
},

// Browser CDN bundles
{
name: '@sentry/browser (incl. Tracing, Replay, Feedback) - CDN Bundle (gzipped)',
name: 'CDN Bundle (incl. Tracing, Replay, Feedback)',
path: 'packages/browser/build/bundles/bundle.tracing.replay.feedback.min.js',
gzip: true,
limit: '90 KB',
},
{
name: '@sentry/browser (incl. Tracing, Replay) - CDN Bundle (gzipped)',
name: 'CDN Bundle (incl. Tracing, Replay)',
path: 'packages/browser/build/bundles/bundle.tracing.replay.min.js',
gzip: true,
limit: '75 KB',
limit: '90 KB',
},
{
name: '@sentry/browser (incl. Tracing) - CDN Bundle (gzipped)',
name: 'CDN Bundle (incl. Tracing)',
path: 'packages/browser/build/bundles/bundle.tracing.min.js',
gzip: true,
limit: '37 KB',
limit: '40 KB',
},
{
name: '@sentry/browser - CDN Bundle (gzipped)',
name: 'CDN Bundle',
path: 'packages/browser/build/bundles/bundle.min.js',
gzip: true,
limit: '28 KB',
limit: '30 KB',
},

// browser CDN bundles (non-gzipped)
{
name: '@sentry/browser (incl. Tracing, Replay) - CDN Bundle (minified & uncompressed)',
name: 'CDN Bundle (incl. Tracing, Replay) - uncompressed',
path: 'packages/browser/build/bundles/bundle.tracing.replay.min.js',
gzip: false,
brotli: false,
limit: '260 KB',
},
{
name: '@sentry/browser (incl. Tracing) - CDN Bundle (minified & uncompressed)',
name: 'CDN Bundle (incl. Tracing) - uncompressed',
path: 'packages/browser/build/bundles/bundle.tracing.min.js',
gzip: false,
brotli: false,
limit: '105 KB',
limit: '120 KB',
},
{
name: '@sentry/browser - CDN Bundle (minified & uncompressed)',
name: 'CDN Bundle - uncompressed',
path: 'packages/browser/build/bundles/bundle.min.js',
gzip: false,
brotli: false,
Expand All @@ -141,40 +141,34 @@ module.exports = [

// React
{
name: '@sentry/react (incl. Tracing, Replay) - Webpack (gzipped)',
name: '@sentry/react (incl. Tracing, Replay)',
path: 'packages/react/build/esm/index.js',
import: '{ init, browserTracingIntegration, replayIntegration }',
gzip: true,
limit: '75 KB',
limit: '90 KB',
},
{
name: '@sentry/react - Webpack (gzipped)',
name: '@sentry/react',
path: 'packages/react/build/esm/index.js',
import: '{ init }',
gzip: true,
limit: '30 KB',
limit: '90 KB',
},

// Next.js
{
name: '@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped)',
// TODO: Re-enable these, when we figure out why they break...
/* {
name: '@sentry/nextjs Client (incl. Tracing, Replay)',
path: 'packages/nextjs/build/esm/client/index.js',
import: '{ init, browserTracingIntegration, replayIntegration }',
gzip: true,
limit: '110 KB',
},
{
name: '@sentry/nextjs Client - Webpack (gzipped)',
name: '@sentry/nextjs Client',
path: 'packages/nextjs/build/esm/client/index.js',
import: '{ init }',
gzip: true,
limit: '57 KB',
},
{
name: '@sentry-internal/feedback - Webpack (gzipped)',
path: 'packages/feedback/build/npm/esm/index.js',
import: '{ feedbackIntegration }',
gzip: true,
limit: '25 KB',
},
}, */
];
Loading

0 comments on commit f36b96b

Please sign in to comment.