diff --git a/.github/workflows/test-integrations-agents.yml b/.github/workflows/test-integrations-agents.yml index 2ca67de7a0..a05649a5f0 100644 --- a/.github/workflows/test-integrations-agents.yml +++ b/.github/workflows/test-integrations-agents.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -69,21 +72,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Agents tests passed diff --git a/.github/workflows/test-integrations-ai-workflow.yml b/.github/workflows/test-integrations-ai-workflow.yml index d8ca4dff84..7cd4cb86df 100644 --- a/.github/workflows/test-integrations-ai-workflow.yml +++ b/.github/workflows/test-integrations-ai-workflow.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -73,21 +76,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All AI Workflow tests passed diff --git a/.github/workflows/test-integrations-ai.yml b/.github/workflows/test-integrations-ai.yml index 380acee799..0b305a3775 100644 --- a/.github/workflows/test-integrations-ai.yml +++ b/.github/workflows/test-integrations-ai.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -89,21 +92,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All AI tests passed diff --git a/.github/workflows/test-integrations-cloud.yml b/.github/workflows/test-integrations-cloud.yml index d3a2526ff7..d57034d4e3 100644 --- a/.github/workflows/test-integrations-cloud.yml +++ b/.github/workflows/test-integrations-cloud.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -85,21 +88,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Cloud tests passed diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 244c336e8f..9b333435bd 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -65,21 +68,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Common tests passed diff --git a/.github/workflows/test-integrations-dbs.yml b/.github/workflows/test-integrations-dbs.yml index d565203253..b1dadb0ca5 100644 --- a/.github/workflows/test-integrations-dbs.yml +++ b/.github/workflows/test-integrations-dbs.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -105,21 +108,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All DBs tests passed diff --git a/.github/workflows/test-integrations-flags.yml b/.github/workflows/test-integrations-flags.yml index c571a14877..dded26658a 100644 --- a/.github/workflows/test-integrations-flags.yml +++ b/.github/workflows/test-integrations-flags.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -77,21 +80,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Flags tests passed diff --git a/.github/workflows/test-integrations-gevent.yml b/.github/workflows/test-integrations-gevent.yml index be01d7297e..525140dfa7 100644 --- a/.github/workflows/test-integrations-gevent.yml +++ b/.github/workflows/test-integrations-gevent.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -65,21 +68,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Gevent tests passed diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 20429390e8..322a95ff54 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -77,21 +80,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All GraphQL tests passed diff --git a/.github/workflows/test-integrations-mcp.yml b/.github/workflows/test-integrations-mcp.yml index 4496773d3a..4b576a897f 100644 --- a/.github/workflows/test-integrations-mcp.yml +++ b/.github/workflows/test-integrations-mcp.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -69,21 +72,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All MCP tests passed diff --git a/.github/workflows/test-integrations-misc.yml b/.github/workflows/test-integrations-misc.yml index efba0f670c..021d6cda79 100644 --- a/.github/workflows/test-integrations-misc.yml +++ b/.github/workflows/test-integrations-misc.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -97,21 +100,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Misc tests passed diff --git a/.github/workflows/test-integrations-network.yml b/.github/workflows/test-integrations-network.yml index c36cd348f8..ee4579f50f 100644 --- a/.github/workflows/test-integrations-network.yml +++ b/.github/workflows/test-integrations-network.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -73,21 +76,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Network tests passed diff --git a/.github/workflows/test-integrations-tasks.yml b/.github/workflows/test-integrations-tasks.yml index ead4ab0617..bab5ddf335 100644 --- a/.github/workflows/test-integrations-tasks.yml +++ b/.github/workflows/test-integrations-tasks.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -100,21 +103,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Tasks tests passed diff --git a/.github/workflows/test-integrations-web-1.yml b/.github/workflows/test-integrations-web-1.yml index 599c524f0e..82632632e7 100644 --- a/.github/workflows/test-integrations-web-1.yml +++ b/.github/workflows/test-integrations-web-1.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -95,21 +98,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Web 1 tests passed diff --git a/.github/workflows/test-integrations-web-2.yml b/.github/workflows/test-integrations-web-2.yml index 4911d319ea..9dec6bff24 100644 --- a/.github/workflows/test-integrations-web-2.yml +++ b/.github/workflows/test-integrations-web-2.yml @@ -17,6 +17,9 @@ concurrency: cancel-in-progress: true permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | @@ -101,21 +104,13 @@ jobs: run: | coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: ${{ !cancelled() }} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true check_required_tests: name: All Web 2 tests passed diff --git a/codecov.yml b/codecov.yml index b7abcf8c86..4cb22edee8 100644 --- a/codecov.yml +++ b/codecov.yml @@ -10,18 +10,7 @@ ignore: - "tests" - "sentry_sdk/_types.py" -# Read more here: https://docs.codecov.com/docs/pull-request-comments -comment: - after_n_builds: 99 - layout: 'diff, files' - # Update, if comment exists. Otherwise post new. - behavior: default - # Comments will only post when coverage changes. Furthermore, if a comment - # already exists, and a newer commit results in no coverage change for the - # entire pull, the comment will be deleted. - require_changes: true - require_base: true # must have a base report to post - require_head: true # must have a head report to post +comment: true github_checks: annotations: false diff --git a/scripts/split_tox_gh_actions/templates/base.jinja b/scripts/split_tox_gh_actions/templates/base.jinja index 8d618d228c..c3bc528a7c 100644 --- a/scripts/split_tox_gh_actions/templates/base.jinja +++ b/scripts/split_tox_gh_actions/templates/base.jinja @@ -23,6 +23,9 @@ concurrency: permissions: contents: read + actions: read + pull-requests: write + statuses: write env: BUILD_CACHE_KEY: {% raw %}${{ github.sha }}{% endraw %} diff --git a/scripts/split_tox_gh_actions/templates/test_group.jinja b/scripts/split_tox_gh_actions/templates/test_group.jinja index 3e1ab30290..e9581d2d8f 100644 --- a/scripts/split_tox_gh_actions/templates/test_group.jinja +++ b/scripts/split_tox_gh_actions/templates/test_group.jinja @@ -42,7 +42,7 @@ # Use Docker container only for Python 3.6 {% raw %}container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}{% endraw %} steps: - - uses: actions/checkout@v6.0.1 + - uses: actions/checkout@v6.0.2 - uses: actions/setup-python@v6 {% raw %}if: ${{ matrix.python-version != '3.6' }}{% endraw %} with: @@ -94,20 +94,11 @@ coverage combine .coverage-sentry-* coverage xml - - name: Upload coverage to Codecov + - name: Parse and Upload Coverage if: {% raw %}${{ !cancelled() }}{% endraw %} - uses: codecov/codecov-action@v5.5.2 + uses: getsentry/codecov-action@main with: - token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %} + token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} files: coverage.xml - # make sure no plugins alter our coverage reports - plugins: noop - verbose: true - - - name: Upload test results to Codecov - if: {% raw %}${{ !cancelled() }}{% endraw %} - uses: codecov/test-results-action@v1 - with: - token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %} - files: .junitxml + junit-xml-pattern: .junitxml verbose: true