mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
PR#2 CI: the Python job failed with 17 FileNotFoundError collection errors. Widening CI from upstream's smoke-test-only to the full suite exposed that the suite depends on main/xiaozhi-server/data/.config.yaml, which is gitignored and therefore absent on CI runners (dev boxes always have it, so the local rebase gate never caught it). - add tracked tests/testdata/test-config.yaml (placeholder keys, empty manager-api block, same shape as the local stub) - conftest falls back to it when data/.config.yaml is missing (explicit PYTEST_CONFIG_FILE still wins) - neutralize config.settings/config.logger check_config_file bindings and logger's load_config so setup_logging() at module import works without a real deployment config; these names are bound at import time via manage_api_client -> config.logger, so patching the source modules alone was not enough Verified on a clean clone with py3.10 + full requirements: 58 passed, 5 skipped; lifecycle unittests 11 OK on both clean clone and dev box. |
||
|---|---|---|
| .. | ||
| config | ||
| core | ||
| models/snakers4_silero-vad | ||
| performance_tester | ||
| plugins_func | ||
| tests | ||
| agent-base-prompt.txt | ||
| app.py | ||
| config.yaml | ||
| config_from_api.yaml | ||
| docker-compose.yml | ||
| docker-compose_all.yml | ||
| mcp_server_settings.json | ||
| performance_tester.py | ||
| pyproject.toml | ||
| requirements.txt | ||