From 137df6f85383f4ffda9a2e76e58e1f2a43e404f7 Mon Sep 17 00:00:00 2001 From: codex Date: Sun, 19 Jul 2026 22:33:38 +0000 Subject: [PATCH] fix(coverage): scope infra candidate to integration tests --- .gitea/workflows/test.yml | 2 +- scripts/coverage.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index d705777..433d880 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -225,7 +225,7 @@ jobs: # `diff_coverage.py` need only `coverage` (not pylint/pyright). - name: Combined coverage (unit + integration, incl. firecracker) env: - BOT_BOTTLE_INFRA_ARTIFACT_DIR: ${{ github.workspace }}/infra-candidate + BOT_BOTTLE_CI_INFRA_ARTIFACT_DIR: ${{ github.workspace }}/infra-candidate run: PYTHON=python3 bash scripts/coverage.sh critical - name: Diff-coverage gate (changed lines >= 90%) diff --git a/scripts/coverage.sh b/scripts/coverage.sh index 0665a69..33a3e2f 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -28,6 +28,7 @@ echo "== unit ==" >&2 echo "== integration (firecracker; skips docker tests) ==" >&2 BOT_BOTTLE_BACKEND=firecracker SKIP_DOCKER_TESTS=1 \ + BOT_BOTTLE_INFRA_ARTIFACT_DIR="${BOT_BOTTLE_CI_INFRA_ARTIFACT_DIR:-}" \ "$PY" -m coverage run --append -m unittest discover -t . -s tests/integration echo "== combined report ==" >&2