Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 53 additions & 2 deletions .github/workflows/ci-basictests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,10 @@ jobs:
echo "No coverage report was produced; skipping Codecov upload."

- name: Upload coverage to Codecov
id: codecov_1
if: ${{ !cancelled() && steps.cov.outputs.found == '1' }}
uses: codecov/codecov-action@v4
continue-on-error: true
Comment thread
coderabbitai[bot] marked this conversation as resolved.
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
Expand All @@ -331,9 +333,58 @@ jobs:
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: false
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 1
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
run: sleep 15

- name: Upload coverage to Codecov (retry 1)
id: codecov_2
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-basictests/coverage-report/ci-basictests.info
flags: integration-tests
name: tap-basictests-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 2
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
run: sleep 45

- name: Upload coverage to Codecov (retry 2)
id: codecov_3
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-basictests/coverage-report/ci-basictests.info
flags: integration-tests
name: tap-basictests-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Report Codecov upload failure
if: ${{ !cancelled() && steps.codecov_3.outcome == 'failure' }}
run: echo "::warning::Codecov upload failed after 3 attempts; tests were unaffected."
- uses: LouisBrunner/checks-action@v2.0.0
if: always()
with:
Expand Down
59 changes: 55 additions & 4 deletions .github/workflows/ci-legacy-clickhouse-g1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ jobs:
echo "No coverage report was produced; skipping Codecov upload."

- name: Upload coverage to Codecov
id: codecov_1
if: ${{ !cancelled() && hashFiles('proxysql/ci_infra_logs/**/coverage-report/*.info') != '' }}
continue-on-error: true
# Send the LCOV .info file fastcov produces in run-tests-isolated.bash
# (under proxysql/ci_infra_logs/ci-legacy-clickhouse-g1/coverage-report/) to
# Codecov. The proxysql binary was built WITHGCOV=1 (-tap-genai-gcov
Expand All @@ -247,12 +250,11 @@ jobs:
# repo has no CODECOV_TOKEN secret and Codecov rejects tokenless
# legacy uploads with "branch is protected" HTTP 400.
#
# `fail_ci_if_error: false` so a Codecov outage never fails the
# `fail_ci_if_error: true` so a Codecov outage never fails the
# whole TAP group; `!cancelled()` so coverage uploads even when
# the test step itself reported a failure (partial coverage is
# still useful diagnostically).
if: ${{ !cancelled() && hashFiles('proxysql/ci_infra_logs/**/coverage-report/*.info') != '' }}
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
Expand All @@ -278,9 +280,58 @@ jobs:
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: false
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 1
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
run: sleep 15

- name: Upload coverage to Codecov (retry 1)
id: codecov_2
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-legacy-clickhouse-g1/coverage-report/ci-legacy-clickhouse-g1.info
flags: integration-tests
name: tap-legacy-clickhouse-g1-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 2
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
run: sleep 45

- name: Upload coverage to Codecov (retry 2)
id: codecov_3
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-legacy-clickhouse-g1/coverage-report/ci-legacy-clickhouse-g1.info
flags: integration-tests
name: tap-legacy-clickhouse-g1-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Report Codecov upload failure
if: ${{ !cancelled() && steps.codecov_3.outcome == 'failure' }}
run: echo "::warning::Codecov upload failed after 3 attempts; tests were unaffected."
- uses: LouisBrunner/checks-action@v2.0.0
continue-on-error: true
if: ${{ always() && steps.checks.outputs.check_id != '' }}
Expand Down
59 changes: 55 additions & 4 deletions .github/workflows/ci-legacy-g1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ jobs:
echo "No coverage report was produced; skipping Codecov upload."

- name: Upload coverage to Codecov
id: codecov_1
if: ${{ !cancelled() && hashFiles('proxysql/ci_infra_logs/**/coverage-report/*.info') != '' }}
continue-on-error: true
# Send the LCOV .info file fastcov produces in run-tests-isolated.bash
# (under proxysql/ci_infra_logs/ci-legacy-g1/coverage-report/) to
# Codecov. The proxysql binary was built WITHGCOV=1 (-tap-genai-gcov
Expand All @@ -314,12 +317,11 @@ jobs:
# repo has no CODECOV_TOKEN secret and Codecov rejects tokenless
# legacy uploads with "branch is protected" HTTP 400.
#
# `fail_ci_if_error: false` so a Codecov outage never fails the
# `fail_ci_if_error: true` so a Codecov outage never fails the
# whole TAP group; `!cancelled()` so coverage uploads even when
# the test step itself reported a failure (partial coverage is
# still useful diagnostically).
if: ${{ !cancelled() && hashFiles('proxysql/ci_infra_logs/**/coverage-report/*.info') != '' }}
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
Expand All @@ -345,9 +347,58 @@ jobs:
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: false
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 1
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
run: sleep 15

- name: Upload coverage to Codecov (retry 1)
id: codecov_2
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-legacy-g1/coverage-report/ci-legacy-g1.info
flags: integration-tests
name: tap-legacy-g1-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 2
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
run: sleep 45

- name: Upload coverage to Codecov (retry 2)
id: codecov_3
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-legacy-g1/coverage-report/ci-legacy-g1.info
flags: integration-tests
name: tap-legacy-g1-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Report Codecov upload failure
if: ${{ !cancelled() && steps.codecov_3.outcome == 'failure' }}
run: echo "::warning::Codecov upload failed after 3 attempts; tests were unaffected."
- uses: LouisBrunner/checks-action@v2.0.0
continue-on-error: true
if: ${{ always() && steps.checks.outputs.check_id != '' }}
Expand Down
59 changes: 55 additions & 4 deletions .github/workflows/ci-legacy-g2-genai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ jobs:
echo "No coverage report was produced; skipping Codecov upload."

- name: Upload coverage to Codecov
id: codecov_1
if: ${{ !cancelled() && hashFiles('proxysql/ci_infra_logs/**/coverage-report/*.info') != '' }}
continue-on-error: true
# Send the LCOV .info file fastcov produces in run-tests-isolated.bash
# (under proxysql/ci_infra_logs/ci-legacy-g2-genai/coverage-report/)
# to Codecov. This is REAL ProxySQL coverage -- the proxysql binary
Expand All @@ -262,12 +265,11 @@ jobs:
# tokenless legacy uploads with "branch is protected" HTTP 400 (see
# the Phase 1 commit history on CI-unit-tests-asan-coverage.yml).
#
# `fail_ci_if_error: false` so a Codecov outage never fails the
# `fail_ci_if_error: true` so a Codecov outage never fails the
# whole TAP group; `!cancelled()` so coverage uploads even when
# the test step itself reported a failure (partial coverage is
# still useful diagnostically).
if: ${{ !cancelled() && hashFiles('proxysql/ci_infra_logs/**/coverage-report/*.info') != '' }}
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
Expand All @@ -293,9 +295,58 @@ jobs:
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: false
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 1
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
run: sleep 15

- name: Upload coverage to Codecov (retry 1)
id: codecov_2
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-legacy-g2-genai/coverage-report/ci-legacy-g2-genai.info
flags: integration-tests
name: tap-legacy-g2-genai-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 2
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
run: sleep 45

- name: Upload coverage to Codecov (retry 2)
id: codecov_3
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-legacy-g2-genai/coverage-report/ci-legacy-g2-genai.info
flags: integration-tests
name: tap-legacy-g2-genai-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Report Codecov upload failure
if: ${{ !cancelled() && steps.codecov_3.outcome == 'failure' }}
run: echo "::warning::Codecov upload failed after 3 attempts; tests were unaffected."
- uses: LouisBrunner/checks-action@v2.0.0
continue-on-error: true
if: ${{ always() && steps.checks.outputs.check_id != '' }}
Expand Down
55 changes: 53 additions & 2 deletions .github/workflows/ci-legacy-g2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,10 @@ jobs:
echo "No coverage report was produced; skipping Codecov upload."

- name: Upload coverage to Codecov
id: codecov_1
if: ${{ !cancelled() && steps.cov.outputs.found == '1' }}
uses: codecov/codecov-action@v4
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
Expand All @@ -319,9 +321,58 @@ jobs:
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: false
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 1
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
run: sleep 15

- name: Upload coverage to Codecov (retry 1)
id: codecov_2
if: ${{ !cancelled() && steps.codecov_1.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-legacy-g2/coverage-report/ci-legacy-g2.info
flags: integration-tests
name: tap-legacy-g2-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Wait before Codecov retry 2
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
run: sleep 45

- name: Upload coverage to Codecov (retry 2)
id: codecov_3
if: ${{ !cancelled() && steps.codecov_2.outcome == 'failure' }}
continue-on-error: true
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
codecov_yml_path: ${{ github.workspace }}/proxysql/codecov.yml
override_commit: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}
files: proxysql/ci_infra_logs/ci-legacy-g2/coverage-report/ci-legacy-g2.info
flags: integration-tests
name: tap-legacy-g2-coverage
use_oidc: true
disable_search: true
plugins: noop
root_dir: proxysql
disable_file_fixes: true
fail_ci_if_error: true
verbose: true

- name: Report Codecov upload failure
if: ${{ !cancelled() && steps.codecov_3.outcome == 'failure' }}
run: echo "::warning::Codecov upload failed after 3 attempts; tests were unaffected."
- uses: LouisBrunner/checks-action@v2.0.0
if: always()
with:
Expand Down
Loading