Closed JarbasAl closed 2 weeks ago
The changes focus on enhancing the OVOSSkill
class's handling of GUI resources. A new method, _cache_gui_files
, is introduced to manage GUI file caching more effectively, ensuring the latest resources are used. The initialization of the GUIInterface
is updated to include a compatibility layer for retrieving UI directories, maintaining backward compatibility. Additionally, the code now accommodates different styles of resource organization, specifically checking for a "qt5" subfolder, and provides warnings for incorrect setups. The version constraint for the ovos_bus_client
dependency is also updated to allow for newer versions.
Files | Change Summary |
---|---|
ovos_workshop/skills/ovos.py | Added _cache_gui_files method to manage GUI file caching; modified GUIInterface initialization for compatibility; updated resource handling for "qt5" subfolder organization. |
requirements/requirements.txt | Modified ovos_bus_client version constraint from >=0.0.8,<1.0.0 to >=0.0.8,<2.0.0 . |
test/unittests/skills/test_base.py | Removed TestSkillGui class and its methods, eliminating GUI interface testing for skills. |
In the burrow where skills do thrive,
New GUI paths help us to strive.
With caching done, and warnings bright,
Our rabbit hearts leap with delight! 🐇✨
Let’s hop along, with joy we sing,
For every change, new hope they bring!
requirements/requirements.txt (1)
`2-2`: **Verify compatibility with `ovos_bus_client` v1.x.x.** The expanded version constraint for `ovos_bus_client` now allows for versions `1.x.x`. Ensure that these versions have been tested for compatibility with the current codebase. Run the following script to check if the `1.x.x` versions introduce any breaking changes:Verification successful
--- **Approve version constraint change for ovos_bus_client.** The expanded version constraint for `ovos_bus_client` (>=0.0.8,<2.0.0) appears to be safe based on the current usage in the codebase. There are no visible version-specific dependencies or checks that would indicate incompatibility with v1.x.x versions. However, to ensure smooth operation: - Conduct thorough testing with v1.x.x versions of ovos_bus_client to verify full compatibility. - Monitor for any unexpected behavior or errors that may arise from using newer versions of ovos_bus_client. - Keep an eye on the changelog or release notes of ovos_bus_client for any breaking changes in future releases.Scripts executed
The following scripts were executed for the analysis: Script: ```shell #!/bin/bash # Description: Verify compatibility with `ovos_bus_client` v1.x.x. # Test: Search for `ovos_bus_client` usage. Expect: No breaking changes in v1.x.x. rg --type python -A 5 $'ovos_bus_client' ``` Length of output: 70 --- Script: ```shell #!/bin/bash # Description: Find Python files and search for ovos_bus_client usage # Find Python files python_files=$(fd -e py) # Search for ovos_bus_client in Python files if [ -n "$python_files" ]; then echo "Searching for ovos_bus_client usage in Python files:" echo "$python_files" | xargs rg -n -A 5 'ovos_bus_client' else echo "No Python files found in the repository." fi # Additionally, search for ovos_bus_client in all files (as a fallback) echo "Searching for ovos_bus_client in all files:" rg -n -A 5 'ovos_bus_client' ``` Length of output: 36339
Attention: Patch coverage is 50.00000%
with 12 lines
in your changes missing coverage. Please review.
Project coverage is 49.09%. Comparing base (
7c02206
) to head (d988c36
). Report is 14 commits behind head on dev.
Files with missing lines | Patch % | Lines |
---|---|---|
ovos_workshop/skills/ovos.py | 50.00% | 12 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
doing it under bus-client while keeping compat instead
companion to https://github.com/OpenVoiceOS/ovos-gui/pull/53 and https://github.com/OpenVoiceOS/ovos-bus-client/pull/120
this should be merged first as it does not require the others to work and does not break anything in the wild
Summary by CodeRabbit
New Features
Bug Fixes
ovos_bus_client
dependency to allow for newer features and bug fixes.Chores