mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 19:24:41 +00:00
* chore(quality): add fleet pattern checks (hcheck) Commit-time check for failure modes the existing CI lint/type/test jobs do not cover. Legacy violations, where present, are recorded in .hcheck-baseline.json; new ones fail. * chore(quality): refresh hcheck baseline after rule refinements Rules now exempt bounded retries, steady-state pollers and loops with an exit path, and report a joined shell command at the line it starts. * chore(quality): staged floor with a real test check (F7) No verify.toml meant no completion evidence at all. Required: the no-infrastructure test subset (Mosquitto reloader + CI retry helper, 12 tests). lint and hcheck run advisory: this repo has no ruff config (364 findings on defaults) and no hcheck baseline, so requiring them would certify nothing. The excluded GDAL/Postgres/Redis suites are named in scripts/test.sh. * chore(quality): declare the default task and refresh the floor script * chore(quality): refresh the floor script (quoting, vacuous-scope, hcheck) * chore(quality): incremental lint says when it has nothing to check --------- Co-authored-by: hermes <hermes@local>
20 lines
835 B
Bash
Executable File
20 lines
835 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# The subset of this repository's tests that runs with no infrastructure.
|
|
#
|
|
# The viewshed-worker suite needs a GDAL base image, Postgres and Redis; the
|
|
# scripts/ suite includes a Postgres shared-memory test. Those cannot run on a
|
|
# bare checkout, so they are excluded here explicitly rather than silently
|
|
# skipped. Run them in the compose environment:
|
|
#
|
|
# docker compose -f docker-compose.ci.yml run --rm viewshed-worker pytest
|
|
#
|
|
# What remains is stdlib-only and exercises real code paths: the Mosquitto
|
|
# reloader and the CI retry/exit-propagation helper.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
PY="${PYTHON:-python3}"
|
|
echo "test: using $PY (no-infrastructure subset)"
|
|
"$PY" -m unittest discover -s docker -p 'test_mosquitto_reloader.py' -v
|
|
"$PY" -m unittest discover -s scripts -p 'test_ci_retry.py' -v
|