Skip to content

Commit 2ebced8

Browse files
authored
fix(bundler-plugins): Integration with monorepo build (#21479)
Update the bundler-plugins so that integration tests run in CI, and the module follows the same patterns as the rest of sentry-javascript.
1 parent 2c93acc commit 2ebced8

239 files changed

Lines changed: 787 additions & 656 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,33 @@ jobs:
876876
working-directory: dev-packages/cloudflare-integration-tests
877877
run: yarn test
878878

879+
job_bundler_plugin_integration_tests:
880+
name: Bundler Plugin Integration Tests
881+
needs: [job_get_metadata, job_build]
882+
runs-on: ubuntu-24.04
883+
timeout-minutes: 15
884+
steps:
885+
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
886+
uses: actions/checkout@v6
887+
with:
888+
ref: ${{ env.HEAD_COMMIT }}
889+
# The fixtures install the locally-packed `@sentry/bundler-plugins` tarball with pnpm.
890+
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
891+
with:
892+
version: 9.15.9
893+
- name: Set up Node
894+
uses: actions/setup-node@v6
895+
with:
896+
node-version-file: 'package.json'
897+
- name: Restore caches
898+
uses: ./.github/actions/restore-cache
899+
with:
900+
dependency_cache_key: ${{ needs.job_build.outputs.dependency_cache_key }}
901+
902+
- name: Run integration tests
903+
working-directory: dev-packages/bundler-plugin-integration-tests
904+
run: yarn test
905+
879906
job_bun_integration_tests:
880907
name: Bun Integration Tests
881908
needs: [job_get_metadata, job_build]
@@ -1200,6 +1227,7 @@ jobs:
12001227
job_node_integration_tests,
12011228
job_node_core_integration_tests,
12021229
job_cloudflare_integration_tests,
1230+
job_bundler_plugin_integration_tests,
12031231
job_bun_integration_tests,
12041232
job_browser_playwright_tests,
12051233
job_browser_loader_tests,
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
fixtures/*/out/**
2+
# Per-fixture installs are regenerated by setup.mjs (`pnpm install --force`)
3+
fixtures/*/node_modules
4+
fixtures/*/pnpm-lock.yaml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
1+
import type { SentryRollupPluginOptions } from "@sentry/bundler-plugins/rollup";
22
export declare function getSentryConfig(outDir: string): SentryRollupPluginOptions;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
1+
import type { SentryRollupPluginOptions } from "@sentry/bundler-plugins/rollup";
22
export declare const sentryConfig: SentryRollupPluginOptions;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
1+
import type { SentryRollupPluginOptions } from "@sentry/bundler-plugins/rollup";
22
export declare const sentryConfig: SentryRollupPluginOptions;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
1+
import type { SentryRollupPluginOptions } from "@sentry/bundler-plugins/rollup";
22
export declare const sentryConfig: SentryRollupPluginOptions;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
1+
import type { SentryRollupPluginOptions } from "@sentry/bundler-plugins/rollup";
22
export declare const sentryConfig: SentryRollupPluginOptions;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
1+
import type { SentryRollupPluginOptions } from "@sentry/bundler-plugins/rollup";
22
export declare const sentryConfig: SentryRollupPluginOptions;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
1+
import type { SentryRollupPluginOptions } from "@sentry/bundler-plugins/rollup";
22
export declare const sentryConfig: SentryRollupPluginOptions;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
1+
import type { SentryRollupPluginOptions } from "@sentry/bundler-plugins/rollup";
22
export declare const sentryConfig: SentryRollupPluginOptions;

0 commit comments

Comments
 (0)