-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix/no_media_skills #517
fix/no_media_skills #517
Conversation
do not search OCP when no OCP skills are installed
Really like this small making it better type of things. Nice catch! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #517 +/- ##
==========================================
- Coverage 75.99% 75.57% -0.42%
==========================================
Files 15 15
Lines 3020 3042 +22
==========================================
+ Hits 2295 2299 +4
- Misses 725 743 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
LGTM |
to test this you would need to ask "play XXXX" with no OCP skills installed, in your logs seems you asked "what are you" so it isnt checking this code path |
With media skill:
|
With no media skill:
|
this has news skill installed
|
Erf, is there a way to identify the "media" skills?
|
15 seconds is pretty long, any way to reduce this? |
any OCP skill, if it's supposed to handle "play" queries it's a media skill
try now (but also try without news skill as that was the original fix in this PR) |
I re-installed the news skill and still takes 15 seconds when it can't play what is required.
|
asking for a search before this PR could take up to 30+ seconds (media type search + generic search) i didnt see any logs without any OCP skill yet, those should speak the new dialog and take < 1 second asking for a media type without skills for that media type (eg, ask radio with only news installed) with this PR can take up to 15 seconds, but not the 30+ it originally could further reducing those 15 seconds will need a PR in ovos-workshop, but that max timeout value can also be set in config |
inform ovos-core this skill ignored a media type query, otherwise the OCPQuery will block for 15 seconds waiting for an answer that never comes companion to OpenVoiceOS/ovos-core#517
inform ovos-core this skill ignored a media type query, otherwise the OCPQuery will block for 15 seconds waiting for an answer that never comes companion to OpenVoiceOS/ovos-core#517
Tested on Mac and it works as expected, especially with the ovos-workshop PR mentioned. Once tests are passing I'm happy to approve the PR |
do not search OCP when no OCP skills are installed
based on chat feedback