-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Refactor mimic_tts to not load config when importing #2888
Refactor mimic_tts to not load config when importing #2888
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #2888 +/- ##
==========================================
+ Coverage 52.59% 52.62% +0.02%
==========================================
Files 123 123
Lines 10989 10997 +8
==========================================
+ Hits 5780 5787 +7
- Misses 5209 5210 +1
Continue to review full report at Codecov.
|
Voight Kampff Integration Test Succeeded (Results) |
Hitting the entire configuration fetching routine with call to the backend is not polite to do when just importing the file. This moves the config lookup out of the global scope and into special functions for finding the mimic binary and looking up the data path for the subscriber voices.
Default config will generally always have a mimic block but in combination with newer Mycroft variants a more defensive approach is probably good
5e965d4
to
d884da5
Compare
Voight Kampff Integration Test Failed (Results). |
1 similar comment
Voight Kampff Integration Test Failed (Results). |
Voight Kampff Integration Test Succeeded (Results) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks Ake!
this commit should be dropped in next rebase/sync with mycroft-core
- backport MycroftAI#2888 - dont load remote config unless needed - identity file handling tweaks - dont auto create xdg paths (this was triggering some race conditions that killed the whole process when multiple places attempted to create the folder at same time, a simple string definition should not be creating directories)
adds XDG support
adds XDG support Co-authored-by: jarbasal <[email protected]>
Description
Hitting the entire configuration fetching routine with call to the backend is not polite to do when just importing the file. This moves the config lookup out of the global scope and into special functions for finding the mimic binary and looking up the data path for the subscriber voices.
How to test
Ensure that the unittests still work and that the good old Alan Pope voice can be heard :)
Contributor license agreement signed?
CLA [ Yes ]