From 11898a857b2f0495c2986db5fb67618e9a4cfb36 Mon Sep 17 00:00:00 2001 From: Curry Date: Tue, 20 Oct 2026 07:25:28 +0800 Subject: [PATCH 1/3] ci: run the existing Python tests and CLI smoke checks The repository ships six test modules (101 tests, 24 subtests) and README.md:192 already states the norm -- run the Python tests, the CLI help smoke test and the address dynamic checks before committing -- but no workflow ran any of them. Nothing under .github enforced it, so the suite could regress unnoticed. The tests import only the standard library and sibling modules (verified: zero external imports across every module), so the job needs nothing but pytest and runs from the repository root with no install step. Pins the interpreters the project claims: README.md:31 and :228 say "Python 3.9+". Those are compatible because the modules use `from __future__ import annotations` (8 files) and no 3.10+ syntax -- no match statements and no PEP 604 unions evaluated at runtime. Verified locally before adding: 101 passed, 24 subtests passed in 0.37s; multica_deploy.py --help and fleet_plan.py --help both exit 0. This adds no gate beyond what the project already documents and runs only the tests that already exist. --- .github/workflows/ci.yml | 73 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..806e067 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,73 @@ +name: CI + +# Nothing ran these tests before: the repo ships six test modules (101 tests) +# and README.md:192 states the norm "run Python tests, CLI help smoke test and +# address dynamic checks before committing", but no workflow enforced it. +# This runs the suite that already exists; it adds no new gates beyond what the +# project documents. + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Python tests + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + # README.md:31 and :228 declare "Python 3.9+"; the newer entry is what + # the project is actually developed on. + os: [ubuntu-latest, windows-latest] + python-version: ["3.9", "3.13"] + exclude: + # The suite uses only stdlib and local modules, so the OS axis adds + # little beyond a path-separator check; keep the full Python axis. + - os: windows-latest + python-version: "3.9" + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Show interpreter + run: python --version + + - name: Install pytest + run: python -m pip install --disable-pip-version-check pytest + + # The suite is unittest-based and imports only stdlib plus sibling + # modules, so it runs from the repository root with no install step. + - name: Run tests + run: python -m pytest -q --no-header + + cli-smoke: + name: CLI help smoke + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + + # README.md:192 names the CLI help smoke test alongside the Python tests. + # --help must exit 0 without touching a deployment target. + - name: multica_deploy --help + run: python multica_deploy.py --help + + - name: fleet_plan --help + run: python fleet_plan.py --help From d7ce2b0b8a70619e2aad2dcad722c6ac78266b9d Mon Sep 17 00:00:00 2001 From: Curry Date: Tue, 20 Oct 2026 07:39:39 +0800 Subject: [PATCH 2/3] docs(ci): correct the test-module count to seven Independent verification caught this: the comment said six test modules, but the suite has seven -- six at the repository root plus one under adapters/agent-plugins-multica/. That nested module contributes two of the 101 collected tests. Counts re-confirmed by direct collection from the repository root: seven test_*.py files; '101 tests collected'; two of them from the adapter. --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 806e067..2728f56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,10 @@ name: CI -# Nothing ran these tests before: the repo ships six test modules (101 tests) -# and README.md:192 states the norm "run Python tests, CLI help smoke test and -# address dynamic checks before committing", but no workflow enforced it. +# Nothing ran these tests before: the repo ships seven test modules (101 tests +# collected; six at the repository root plus one under +# adapters/agent-plugins-multica/) and README.md:192 states the norm "run Python +# tests, CLI help smoke test and address dynamic checks before committing", but +# no workflow enforced it. # This runs the suite that already exists; it adds no new gates beyond what the # project documents. From c8c079ba7fb56705302537255addc6a2c897122e Mon Sep 17 00:00:00 2001 From: Curry Date: Tue, 20 Oct 2026 07:51:35 +0800 Subject: [PATCH 3/3] docs(ci): quote README exactly and state what this workflow does not cover MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Second independent-verification finding. Two problems in the header comment: 1. It paraphrased README.md:192 as 'address dynamic checks'. The README says 鍦板潃闈欐€佹悳绱?-- a static address search. Wrong term. 2. It implied this workflow enforces the README's pre-commit norm. It does not: there is no address-search step here. A green run covers the full Python test suite and the CLI help smoke test only. Now quotes the README line verbatim and says plainly that the third clause is not run, so a passing CI run is not evidence the whole documented norm was met. --- .github/workflows/ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2728f56..f1a5508 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,16 @@ name: CI -# Nothing ran these tests before: the repo ships seven test modules (101 tests +# Nothing ran these tests before. The repo ships seven test modules (101 tests # collected; six at the repository root plus one under -# adapters/agent-plugins-multica/) and README.md:192 states the norm "run Python -# tests, CLI help smoke test and address dynamic checks before committing", but -# no workflow enforced it. -# This runs the suite that already exists; it adds no new gates beyond what the -# project documents. +# adapters/agent-plugins-multica/), and README.md:192 documents the project's +# own pre-commit norm: +# +# "提交改动前运行完整 Python 测试、CLI help smoke test 和地址静态搜索。" +# +# Nothing under .github enforced any of it. This workflow covers the first two +# clauses -- the full Python test suite and the CLI help smoke test. It does +# NOT run the third (地址静态搜索, the static address search), so a green run +# here is not evidence that the whole documented norm was satisfied. on: push: