mirror of https://github.com/sysown/proxysql
The CI-legacy-g2-genai pipeline already builds proxysql with WITHGCOV=1 (via the -tap-genai-gcov build cache) and runs it as the live daemon answering the legacy-g2 TAP integration suite. The existing run-tests-isolated.bash COVERAGE=1 path produces an LCOV .info file at ci_infra_logs/ci-legacy-g2-genai/coverage-report/ ci-legacy-g2-genai.info and archives it as a workflow artifact. This commit ships that same file to Codecov so the coverage graph at app.codecov.io/github/sysown/proxysql/ reflects **real ProxySQL coverage** -- the daemon exercised by integration tests -- in addition to the lib-only unit-test slice that CI-unit-tests-asan-coverage already uploads. Mechanics: - `flags: tap-legacy-g2` lets Codecov merge per-group uploads and surface per-flag coverage trends later when other groups join. - `use_oidc: true` is mandatory. The repo has no CODECOV_TOKEN secret (the Codecov UI hides per-repo tokens for public repos with the GitHub App installed); legacy tokenless uploads are rejected by Codecov with "Token required because branch is protected" HTTP 400. See Phase 1 history on CI-unit-tests-asan-coverage.yml for the diagnosis. - `permissions: id-token: write` on the tests job lets Actions mint the OIDC token. The caller workflow CI-legacy-g2-genai.yml on v3.0 grants the same permission so it can propagate through the reusable-workflow call (callee permissions are caller-intersected). - `fail_ci_if_error: false` + `if: !cancelled()` keep Codecov outages and partial-failure runs from gating the TAP group. This is the first TAP group with Codecov upload. Once validated, the same two-line pattern (cache key flip to -tap-genai-gcov + upload step) can be replicated to other groups, with each picking its own `flags:` value so Codecov shows per-group contribution.fix/ci-cache-restore-path
parent
350c2b461d
commit
6335dca474
Loading…
Reference in new issue