Skip to content

v1.9.3#258

Merged
TiTidom-RC merged 3 commits into
betafrom
dev
May 23, 2026
Merged

v1.9.3#258
TiTidom-RC merged 3 commits into
betafrom
dev

Conversation

@TiTidom-RC

Copy link
Copy Markdown
Owner

This pull request introduces several improvements focused on error handling, logging, and CI/CD automation for the TTS Cast plugin. The main changes include more informative and appropriately-leveled log messages (switching many from debug/error to warning/info), the addition of new GitHub Actions workflows for PHP compatibility and Python linting, and updates to ignore settings and configuration files. The plugin version is also incremented to 1.9.3.

Logging improvements and error handling:

  • Changed many log messages in core/class/ttscast.class.php from error or debug to warning or info, and improved the clarity and detail of error messages, especially when parameters are missing or when handling dependency checks and plugin version retrieval. This makes troubleshooting easier and log outputs more meaningful. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
  • Updated Python daemon (resources/ttscastd/ttscastd.py) to use warning level instead of debug/error for missing data and HTTP errors, and to use info for shutdowns triggered by keyboard interrupts. [1] [2] [3] [4] [5] [6]

CI/CD automation and configuration:

  • Added a new GitHub Actions workflow .github/workflows/checkPHPCompat.yml to perform PHPStan compatibility checks for PHP versions 7.4, 8.2, and 8.4 on pull requests targeting the beta branch.
  • Added a new GitHub Actions workflow .github/workflows/checkPython.yml to run Ruff lint checks on Python code for pull requests to the beta branch.
  • Added parameters: reportUnmatchedIgnoredErrors: true to phpstan.neon.dist to improve PHPStan reporting.

Miscellaneous improvements:

  • Updated .vscode/settings.json to ignore additional directories and tools related to PHPStan and the new workflows. [1] [2]
  • Bumped plugin version in plugin_info/info.json from 1.9.2 to 1.9.3.

Adjust logging across PHP and Python components to reduce debug noise and provide clearer, higher-severity alerts. Changed many debug logs to warning/info (and added context) for missing dependencies, missing parameters, device lookup failures, API/HTTP errors, AI/TTS fallbacks and other exceptions. Messages were clarified (more descriptive French texts, include UUIDs, snippets, reasons) and some log lines now include truncated excerpts to aid troubleshooting. Files modified: core/class/ttscast.class.php and resources/ttscastd/ttscastd.py.
Add new CI workflows: checkPHPCompat.yml to run PHPStan across PHP 7.4, 8.2 and 8.4 (sparse-checkout of Jeedom core and dynamic phpstan.neon generation) and checkPython.yml to run ruff on resources/ttscastd/. Minor update to checkPHP.yml to name the job for PHP 8.4. Add phpstan.neon.dist enabling reportUnmatchedIgnoredErrors and update .vscode/settings.json to ignore phpstan, PHPSTAN and shivammathur entries.
Update plugin_info/info.json to increment pluginVersion from 1.9.2 to 1.9.3 in preparation for a new release. No other changes were made.
@TiTidom-RC TiTidom-RC merged commit 5ab2b22 into beta May 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant