diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd38a2ccc500..b409c53136b2 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 @@ -431,18 +428,12 @@ jobs: run: yarn test:ci:browser 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 + - name: Parse and Upload Coverage 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 @@ -538,18 +529,12 @@ jobs: env: NODE_VERSION: ${{ matrix.node }} - - name: Compute test coverage - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }} - - - name: Upload test results to Codecov + - name: Parse and Upload Coverage 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_browser_playwright_tests: name: @@ -644,13 +629,13 @@ jobs: overwrite: true retention-days: 7 - - name: Upload test results to Codecov + - name: Parse and Upload 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 @@ -705,13 +690,13 @@ jobs: overwrite: true retention-days: 7 - - name: Upload test results to Codecov + - name: Parse and Upload 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 @@ -779,13 +764,13 @@ jobs: working-directory: dev-packages/node-integration-tests run: yarn test - - name: Upload test results to Codecov + - name: Parse and Upload 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 @@ -846,13 +831,13 @@ jobs: cd packages/remix yarn test:integration:ci - - name: Upload test results to Codecov + - name: Parse and Upload 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 @@ -1037,13 +1022,13 @@ jobs: retention-days: 7 if-no-files-found: ignore - - name: Upload test results to Codecov + - name: Parse and Upload 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/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) 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, - }); -}