From fcf081a4cec5a0b3d8204f6e29dd2530c69b85e6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:49:58 +0000 Subject: [PATCH] Run Sonar/Codecov checks as parallel jobs and accept Codecov 202 Co-Authored-By: Andreas Igel --- .github/workflows/integrations-check.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integrations-check.yml b/.github/workflows/integrations-check.yml index 73ca73d0..cdfabf40 100644 --- a/.github/workflows/integrations-check.yml +++ b/.github/workflows/integrations-check.yml @@ -29,16 +29,16 @@ concurrency: cancel-in-progress: true jobs: - check: + # Independent jobs so the two checks run in parallel and a failing SonarCloud + # check never blocks the Codecov check (and vice versa). + sonarcloud: + if: ${{ github.event.inputs.target == 'all' || github.event.inputs.target == 'sonarcloud' }} runs-on: ubuntu-latest timeout-minutes: 10 env: - TARGET: ${{ github.event.inputs.target }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} steps: - name: Check SonarCloud token and connectivity - if: env.TARGET == 'all' || env.TARGET == 'sonarcloud' run: | set -euo pipefail if [ -z "${SONAR_TOKEN:-}" ]; then @@ -62,8 +62,14 @@ jobs: fi echo "OK: SONAR_TOKEN is valid and SonarCloud is reachable." + codecov: + if: ${{ github.event.inputs.target == 'all' || github.event.inputs.target == 'codecov' }} + runs-on: ubuntu-latest + timeout-minutes: 10 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + steps: - name: Check Codecov token and connectivity - if: env.TARGET == 'all' || env.TARGET == 'codecov' run: | set -euo pipefail if [ -z "${CODECOV_TOKEN:-}" ]; then @@ -84,8 +90,10 @@ jobs: -d "{\"commitid\":\"$GITHUB_SHA\"}" "$url" || true)" echo "POST api.codecov.io/upload/github/.../commits -> HTTP $http_code" case "$http_code" in - 200|201) - echo "OK: CODECOV_TOKEN authenticates against Codecov." ;; + 200|201|202) + # 202 "Accepted" means Codecov queued the create-commit request, + # which requires a valid, authorized token -> the token works. + echo "OK: CODECOV_TOKEN authenticates against Codecov (HTTP $http_code)." ;; 401|403) echo "::error::Codecov rejected the token (HTTP $http_code) - it is invalid, expired, or lacks access to this repo." exit 1 ;;