ci: scope firecracker backend to integration coverage
test / integration-firecracker (pull_request) Successful in 10s
test / integration-docker (pull_request) Successful in 23s
test / unit (pull_request) Successful in 36s
tracker-policy-pr / check-pr (pull_request) Successful in 11s
test / coverage (pull_request) Failing after 3h1m9s
test / integration-firecracker (pull_request) Successful in 10s
test / integration-docker (pull_request) Successful in 23s
test / unit (pull_request) Successful in 36s
tracker-policy-pr / check-pr (pull_request) Successful in 11s
test / coverage (pull_request) Failing after 3h1m9s
This commit is contained in:
@@ -131,6 +131,7 @@ jobs:
|
|||||||
# See #414 for the planned follow-up: artifact-based coverage combination
|
# See #414 for the planned follow-up: artifact-based coverage combination
|
||||||
# (run tests once in their respective jobs, combine .coverage files here).
|
# (run tests once in their respective jobs, combine .coverage files here).
|
||||||
coverage:
|
coverage:
|
||||||
|
timeout-minutes: 15
|
||||||
runs-on: [self-hosted, kvm]
|
runs-on: [self-hosted, kvm]
|
||||||
if: >-
|
if: >-
|
||||||
github.event_name == 'push' ||
|
github.event_name == 'push' ||
|
||||||
@@ -157,8 +158,6 @@ jobs:
|
|||||||
# module to install into anyway. `scripts/coverage.sh` +
|
# module to install into anyway. `scripts/coverage.sh` +
|
||||||
# `diff_coverage.py` need only `coverage` (not pylint/pyright).
|
# `diff_coverage.py` need only `coverage` (not pylint/pyright).
|
||||||
- name: Combined coverage (unit + integration, incl. firecracker)
|
- name: Combined coverage (unit + integration, incl. firecracker)
|
||||||
env:
|
|
||||||
BOT_BOTTLE_BACKEND: firecracker
|
|
||||||
run: PYTHON=python3 bash scripts/coverage.sh critical
|
run: PYTHON=python3 bash scripts/coverage.sh critical
|
||||||
|
|
||||||
- name: Diff-coverage gate (changed lines >= 90%)
|
- name: Diff-coverage gate (changed lines >= 90%)
|
||||||
|
|||||||
+2
-1
@@ -27,7 +27,8 @@ echo "== unit ==" >&2
|
|||||||
"$PY" -m coverage run -m unittest discover -t . -s tests/unit
|
"$PY" -m coverage run -m unittest discover -t . -s tests/unit
|
||||||
|
|
||||||
echo "== integration (skips without Docker) ==" >&2
|
echo "== integration (skips without Docker) ==" >&2
|
||||||
"$PY" -m coverage run --append -m unittest discover -t . -s tests/integration
|
BOT_BOTTLE_BACKEND=firecracker \
|
||||||
|
"$PY" -m coverage run --append -m unittest discover -t . -s tests/integration
|
||||||
|
|
||||||
echo "== combined report ==" >&2
|
echo "== combined report ==" >&2
|
||||||
"$PY" -m coverage report -m
|
"$PY" -m coverage report -m
|
||||||
|
|||||||
Reference in New Issue
Block a user