From b64f3c24775c4a85f6f645aae06fd88ef41e0ac4 Mon Sep 17 00:00:00 2001 From: mathuraditya724 Date: Thu, 22 Jan 2026 03:18:14 +0530 Subject: [PATCH 1/4] feat: added support for the new codecov action --- .github/workflows/build.yml | 57 +++++++------------ codecov.yml | 5 -- .../rollup-utils/plugins/npmPlugins.mjs | 15 ----- 3 files changed, 19 insertions(+), 58 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c26bded3ddf..e59854337b1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -175,9 +175,6 @@ jobs: 'nx-never-restore'}} - name: Build packages - # Set the CODECOV_TOKEN for Bundle Analysis - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: yarn build - name: Upload build artifacts @@ -432,17 +429,9 @@ jobs: if: github.event_name != 'pull_request' - name: Compute test coverage - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }} - - - name: Upload test results to Codecov - if: cancelled() == false - continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: - files: packages/**/*.junit.xml - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} job_bun_unit_tests: name: Bun Unit Tests @@ -539,17 +528,9 @@ jobs: NODE_VERSION: ${{ matrix.node }} - name: Compute test coverage - uses: codecov/codecov-action@v5 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} - - - name: Upload test results to Codecov - if: cancelled() == false - continue-on-error: true - uses: codecov/test-results-action@v1 - with: - files: packages/**/*.junit.xml - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} job_browser_playwright_tests: name: @@ -641,13 +622,13 @@ jobs: overwrite: true retention-days: 7 - - name: Upload test results to Codecov + - name: Compute test coverage if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: + token: ${{ secrets.GITHUB_TOKEN }} directory: dev-packages/browser-integration-tests - token: ${{ secrets.CODECOV_TOKEN }} job_browser_loader_tests: name: PW ${{ matrix.bundle }} Tests @@ -702,13 +683,13 @@ jobs: overwrite: true retention-days: 7 - - name: Upload test results to Codecov + - name: Compute test coverage + uses: getsentry/codecov-action@main if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 with: + token: ${{ secrets.GITHUB_TOKEN }} directory: dev-packages/browser-integration-tests - token: ${{ secrets.CODECOV_TOKEN }} job_check_for_faulty_dts: name: Check for faulty .d.ts files @@ -776,13 +757,13 @@ jobs: working-directory: dev-packages/node-integration-tests run: yarn test - - name: Upload test results to Codecov + - name: Compute test coverage if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: + token: ${{ secrets.GITHUB_TOKEN }} directory: dev-packages/node-integration-tests - token: ${{ secrets.CODECOV_TOKEN }} job_cloudflare_integration_tests: name: Cloudflare Integration Tests @@ -843,13 +824,13 @@ jobs: cd packages/remix yarn test:integration:ci - - name: Upload test results to Codecov + - name: Compute test coverage if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: directory: packages/remix - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} job_e2e_prepare: name: Prepare E2E tests @@ -1034,13 +1015,13 @@ jobs: retention-days: 7 if-no-files-found: ignore - - name: Upload test results to Codecov + - name: Compute test coverage if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: directory: dev-packages/e2e-tests - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} # - We skip optional tests on release branches job_optional_e2e_tests: diff --git a/codecov.yml b/codecov.yml index f8c0cbc17ba5..fcc0885b060b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -3,11 +3,6 @@ codecov: notify: require_ci_to_pass: no -ai_pr_review: - enabled: true - method: 'label' - label_name: 'ci-codecov-ai-review' - coverage: precision: 2 round: down diff --git a/dev-packages/rollup-utils/plugins/npmPlugins.mjs b/dev-packages/rollup-utils/plugins/npmPlugins.mjs index 7f08873f1c80..3cb9ca7d50f9 100644 --- a/dev-packages/rollup-utils/plugins/npmPlugins.mjs +++ b/dev-packages/rollup-utils/plugins/npmPlugins.mjs @@ -167,18 +167,3 @@ export function makeRrwebBuildPlugin({ excludeShadowDom, excludeIframe } = {}) { values, }); } - -/** - * Plugin that uploads bundle analysis to codecov. - * - * @param type The type of bundle being uploaded. - * @param prefix The prefix for the codecov bundle name. Defaults to 'npm'. - */ -export function makeCodeCovPlugin() { - const packageJson = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), './package.json'), { encoding: 'utf8' })); - return codecovRollupPlugin({ - enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined, - bundleName: packageJson.name, - uploadToken: process.env.CODECOV_TOKEN, - }); -} From a370dfc764810f68a644ded4a370dbd473760fac Mon Sep 17 00:00:00 2001 From: mathuraditya724 Date: Thu, 29 Jan 2026 14:35:37 +0530 Subject: [PATCH 2/4] fix: removed the codecov badge from the readme --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 3fdd9ddfc452..5a3453dbe004 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ faster, so we can get back to enjoying technology. If you want to join us [**Check out our open positions**](https://sentry.io/careers/)_ [![Build & Test](https://github.com/getsentry/sentry-javascript/workflows/CI:%20Build%20&%20Test/badge.svg)](https://github.com/getsentry/sentry-javascript/actions) -[![codecov](https://codecov.io/gh/getsentry/sentry-javascript/branch/develop/graph/badge.svg)](https://codecov.io/gh/getsentry/sentry-javascript) [![npm version](https://img.shields.io/npm/v/@sentry/core.svg)](https://www.npmjs.com/package/@sentry/core) [![Discord](https://img.shields.io/discord/621778831602221064)](https://discord.gg/Ww9hbqr) From 8113e907fcf47bf0f2b3355b439aa4e3858bb386 Mon Sep 17 00:00:00 2001 From: mathuraditya724 Date: Thu, 29 Jan 2026 22:35:11 +0530 Subject: [PATCH 3/4] fix: updated the job name --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3a7a2400d018..bba544314dae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -428,7 +428,7 @@ jobs: run: yarn test:ci:browser if: github.event_name != 'pull_request' - - name: Compute test coverage + - name: Parse and Upload Coverage uses: getsentry/codecov-action@main with: token: ${{ secrets.GITHUB_TOKEN }} @@ -527,7 +527,7 @@ jobs: env: NODE_VERSION: ${{ matrix.node }} - - name: Compute test coverage + - name: Parse and Upload Coverage uses: getsentry/codecov-action@main with: token: ${{ secrets.GITHUB_TOKEN }} @@ -625,7 +625,7 @@ jobs: overwrite: true retention-days: 7 - - name: Compute test coverage + - name: Parse and Upload Coverage if: cancelled() == false continue-on-error: true uses: getsentry/codecov-action@main @@ -686,7 +686,7 @@ jobs: overwrite: true retention-days: 7 - - name: Compute test coverage + - name: Parse and Upload Coverage uses: getsentry/codecov-action@main if: cancelled() == false continue-on-error: true @@ -760,7 +760,7 @@ jobs: working-directory: dev-packages/node-integration-tests run: yarn test - - name: Compute test coverage + - name: Parse and Upload Coverage if: cancelled() == false continue-on-error: true uses: getsentry/codecov-action@main @@ -827,7 +827,7 @@ jobs: cd packages/remix yarn test:integration:ci - - name: Compute test coverage + - name: Parse and Upload Coverage if: cancelled() == false continue-on-error: true uses: getsentry/codecov-action@main @@ -1018,7 +1018,7 @@ jobs: retention-days: 7 if-no-files-found: ignore - - name: Compute test coverage + - name: Parse and Upload Coverage if: cancelled() == false continue-on-error: true uses: getsentry/codecov-action@main From 167acdc706312761050b79b0727cb4376b8aa988 Mon Sep 17 00:00:00 2001 From: mathuraditya724 Date: Thu, 29 Jan 2026 22:58:11 +0530 Subject: [PATCH 4/4] chore: minor changes --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bba544314dae..b409c53136b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -429,6 +429,8 @@ jobs: if: github.event_name != 'pull_request' - name: Parse and Upload Coverage + if: cancelled() == false + continue-on-error: true uses: getsentry/codecov-action@main with: token: ${{ secrets.GITHUB_TOKEN }} @@ -528,6 +530,8 @@ jobs: NODE_VERSION: ${{ matrix.node }} - name: Parse and Upload Coverage + if: cancelled() == false + continue-on-error: true uses: getsentry/codecov-action@main with: token: ${{ secrets.GITHUB_TOKEN }}