Skip to content
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

feat/speak_error_flag #152

Merged
merged 5 commits into from Jun 17, 2022
Merged

Conversation

NeonJarbas
Copy link

when a skill registered an event via self.add_event (recommend) it always speaks an error message when there is an exception, most of the time this is unwanted outside intents

this commit puts this behind a flag but keeps default behavior (speak errors by default)

to test use some failing common_query or common_play skill and verify that no error is spoken, this would be previously be spoken during the search phase even if skill was not selected

when a skill registered an event via self.add_event (recommend) it always speaks an error message when there is an exception, most of the time this is unwanted outside intents

this commit puts this behind a flag but keeps default behavior (speak errors by default)

to test use some failing common_query or common_play skill and verify that no error is spoken, this would be previously be spoken during the search phase even if skill was not selected
@JarbasAl JarbasAl requested review from NeonDaniel and j1nx June 9, 2022 20:58
@JarbasAl JarbasAl added bug Something isn't working enhancement New feature or request labels Jun 9, 2022
j1nx
j1nx approved these changes Jun 10, 2022
Copy link
Member

@j1nx j1nx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't comment on the code, leave that to @NeonDaniel

Copy link
Member

@NeonDaniel NeonDaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this just needs some unit test fixes

@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #152 (1386945) into dev (6ceb058) will increase coverage by 2.70%.
The diff coverage is 42.51%.

@@            Coverage Diff             @@
##              dev     #152      +/-   ##
==========================================
+ Coverage   50.35%   53.05%   +2.70%     
==========================================
  Files         119      152      +33     
  Lines       10077     9803     -274     
==========================================
+ Hits         5074     5201     +127     
+ Misses       5003     4602     -401     
Impacted Files Coverage Δ
mycroft/audio/__main__.py 0.00% <0.00%> (ø)
mycroft/client/enclosure/__main__.py 0.00% <0.00%> (ø)
mycroft/client/enclosure/mark1/arduino.py 0.00% <0.00%> (ø)
mycroft/client/enclosure/mark1/eyes.py 0.00% <0.00%> (ø)
mycroft/client/enclosure/mark1/mouth.py 0.00% <0.00%> (ø)
mycroft/client/speech/__main__.py 0.00% <0.00%> (ø)
mycroft/client/speech/hotword_factory.py 0.00% <0.00%> (-88.89%) ⬇️
mycroft/client/speech/service.py 0.00% <0.00%> (ø)
mycroft/client/speech/silence.py 0.00% <0.00%> (-42.86%) ⬇️
mycroft/client/text/__init__.py 0.00% <0.00%> (ø)
... and 122 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b5a2da...1386945. Read the comment docs.

@JarbasAl JarbasAl merged commit 347b443 into OpenVoiceOS:dev Jun 17, 2022
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants