From 93e8b3b67b7ec9123d64e15557b1988da0cd5c3a Mon Sep 17 00:00:00 2001 From: Dylan Roy <249851642+d6g8k5htny-coder@users.noreply.github.com> Date: Wed, 7 Oct 2026 23:21:11 -0700 Subject: [PATCH] Reject empty unittest discovery in query CI Replace only the canonical discovery step with explicit bash, pipefail, tee, and a positive Ran-N count check. Command arguments unchanged. C179-W1V-DISCOVERY-01. Scientific effect none. --- .github/workflows/query-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/query-ci.yml b/.github/workflows/query-ci.yml index 3e51153..c024107 100644 --- a/.github/workflows/query-ci.yml +++ b/.github/workflows/query-ci.yml @@ -26,7 +26,11 @@ jobs: - name: Run canonical package and deterministic-source controls env: PYTHONDONTWRITEBYTECODE: '1' - run: python -B -S -m unittest discover -s tests -p 'test_*.py' -v + shell: bash + run: | + set -euo pipefail + python -B -S -m unittest discover -s tests -p 'test_*.py' -v 2>&1 | tee "$RUNNER_TEMP/discovery.log" + grep -Eq '^Ran [1-9][0-9]* tests? in ' "$RUNNER_TEMP/discovery.log" || { echo "::error::unittest discovery collected 0 tests or returned no count"; exit 1; } - name: Verify portable candidate stubs against pinned public commits env: PYTHONDONTWRITEBYTECODE: '1'