From dbc25dc5557cb1584b636840ff52f34c85628439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=E1=BB=97=20Tr=E1=BB=8Dng=20H=E1=BA=A3i?= <41283691+hainenber@users.noreply.github.com> Date: Sat, 28 Mar 2026 05:33:02 +0700 Subject: [PATCH] fix(ci): resolve failed CodeCov upload for backend tests (#38885) Signed-off-by: hainenber --- .../workflows/superset-python-integrationtest.yml | 15 ++++++++++++--- .github/workflows/superset-python-presto-hive.yml | 10 ++++++++-- .github/workflows/superset-python-unittest.yml | 5 ++++- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/superset-python-integrationtest.yml b/.github/workflows/superset-python-integrationtest.yml index 2723d4536ee..3aff284efa3 100644 --- a/.github/workflows/superset-python-integrationtest.yml +++ b/.github/workflows/superset-python-integrationtest.yml @@ -16,6 +16,8 @@ concurrency: jobs: test-mysql: runs-on: ubuntu-24.04 + permissions: + id-token: write env: PYTHONPATH: ${{ github.workspace }} SUPERSET_CONFIG: tests.integration_tests.superset_test_config @@ -71,8 +73,9 @@ jobs: uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5 with: flags: python,mysql - token: ${{ secrets.CODECOV_TOKEN }} verbose: true + use_oidc: true + slug: apache/superset - name: Generate database diagnostics for docs if: steps.check.outputs.python env: @@ -105,6 +108,8 @@ jobs: retention-days: 7 test-postgres: runs-on: ubuntu-24.04 + permissions: + id-token: write strategy: matrix: python-version: ["current", "previous", "next"] @@ -162,11 +167,14 @@ jobs: uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5 with: flags: python,postgres - token: ${{ secrets.CODECOV_TOKEN }} verbose: true + use_oidc: true + slug: apache/superset test-sqlite: runs-on: ubuntu-24.04 + permissions: + id-token: write env: PYTHONPATH: ${{ github.workspace }} SUPERSET_CONFIG: tests.integration_tests.superset_test_config @@ -214,5 +222,6 @@ jobs: uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5 with: flags: python,sqlite - token: ${{ secrets.CODECOV_TOKEN }} verbose: true + use_oidc: true + slug: apache/superset diff --git a/.github/workflows/superset-python-presto-hive.yml b/.github/workflows/superset-python-presto-hive.yml index aad80d3adbf..68157386ec1 100644 --- a/.github/workflows/superset-python-presto-hive.yml +++ b/.github/workflows/superset-python-presto-hive.yml @@ -17,6 +17,8 @@ concurrency: jobs: test-postgres-presto: runs-on: ubuntu-24.04 + permissions: + id-token: write env: PYTHONPATH: ${{ github.workspace }} SUPERSET_CONFIG: tests.integration_tests.superset_test_config @@ -80,11 +82,14 @@ jobs: uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5 with: flags: python,presto - token: ${{ secrets.CODECOV_TOKEN }} verbose: true + use_oidc: true + slug: apache/superset test-postgres-hive: runs-on: ubuntu-24.04 + permissions: + id-token: write env: PYTHONPATH: ${{ github.workspace }} SUPERSET_CONFIG: tests.integration_tests.superset_test_config @@ -148,5 +153,6 @@ jobs: uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5 with: flags: python,hive - token: ${{ secrets.CODECOV_TOKEN }} verbose: true + use_oidc: true + slug: apache/superset diff --git a/.github/workflows/superset-python-unittest.yml b/.github/workflows/superset-python-unittest.yml index a9355441b5e..4065e81d86c 100644 --- a/.github/workflows/superset-python-unittest.yml +++ b/.github/workflows/superset-python-unittest.yml @@ -17,6 +17,8 @@ concurrency: jobs: unit-tests: runs-on: ubuntu-24.04 + permissions: + id-token: write strategy: matrix: python-version: ["previous", "current", "next"] @@ -56,5 +58,6 @@ jobs: uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5 with: flags: python,unit - token: ${{ secrets.CODECOV_TOKEN }} verbose: true + use_oidc: true + slug: apache/superset