Commit 1398f78
authored
Refactor pre-commit configuration and enhance development scripts (#309)
* Refactor pre-commit configuration and enhance development scripts
- Removed local hooks for Robot Framework tests and cleanup from `.pre-commit-config.yaml`, streamlining the pre-commit setup.
- Updated `Makefile` to install pre-commit using the `uv` tool, improving dependency management.
- Enhanced `restart.sh`, `start.sh`, `status.sh`, and `stop.sh` scripts to source a new `check_uv.sh` script for better environment validation.
- Added new environment variables for Galileo observability in `.env.template`, improving observability setup.
- Introduced OpenTelemetry initialization in `app_factory.py` for enhanced observability during application runtime.
* Update button event handling and plugin architecture
- Changed button state terminology from `SINGLE_TAP` and `DOUBLE_TAP` to `SINGLE_PRESS` and `DOUBLE_PRESS` across various files, including documentation and code implementations.
- Enhanced the `send_button_event` method to reflect the updated button state values, ensuring consistency in event handling.
- Introduced new methods for managing button events in the plugin architecture, improving the overall interaction with device buttons.
- Updated tests to align with the new button state definitions, ensuring robust coverage for the updated functionality.
* Add unit tests for Qwen3-ASR output parsing and repetition detection
- Introduced a new test file `test_qwen3_asr_parsing.py` to validate the functionality of the `_parse_qwen3_output` and `detect_and_fix_repetitions` methods.
- Implemented various test cases covering standard and edge cases for ASR output parsing, including language detection, handling of empty inputs, and unexpected text.
- Added tests for repetition detection to ensure proper functionality based on specified thresholds.
- Enhanced the `Makefile` to include a new target for running specific tests by name, tag, or file, improving test execution flexibility.
- Created a shared prerequisite check script `check_uv.sh` to ensure the `uv` package manager is installed before running scripts, enhancing setup reliability.
* Add unit tests for Qwen3-ASR output parsing and repetition detection
- Introduced a new test file `test_qwen3_asr_parsing.py` to validate the functionality of the `_parse_qwen3_output` and `detect_and_fix_repetitions` methods.
- Implemented various test cases covering standard and edge cases for ASR output parsing, including language detection, handling of empty inputs, and unexpected text.
- Added tests for repetition detection to ensure proper functionality based on specified thresholds.
* Refactor Redis session handling and enhance error management
- Updated session retrieval logic in `queue_routes.py` to ensure proper closure of Redis connections using `await redis_client.aclose()`, improving resource management.
- Enhanced error handling during session data retrieval, providing clearer logging for issues encountered while fetching session information.
- Streamlined the session key scanning process, maintaining existing functionality while improving code readability and maintainability.
- Added optional parameters to the `transcribe` method in `mock_provider.py` for better flexibility in handling context information and progress callbacks during transcription tasks.1 parent 5a8a853 commit 1398f78
46 files changed
Lines changed: 3442 additions & 1691 deletions
File tree
- backends/advanced
- Docs
- src/advanced_omi_backend
- clients
- controllers
- observability
- plugins
- routers/modules
- services
- audio_stream
- transcription
- workers
- config
- extras
- asr-services/tests
- friend-lite-sdk/friend_lite
- plugins/homeassistant
- scripts
- tests
- config
- integration
- libs
- resources
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 2 | | |
24 | 3 | | |
25 | 4 | | |
26 | 5 | | |
27 | 6 | | |
28 | | - | |
| 7 | + | |
29 | 8 | | |
30 | 9 | | |
31 | 10 | | |
32 | 11 | | |
33 | | - | |
| 12 | + | |
| 13 | + | |
34 | 14 | | |
35 | 15 | | |
36 | 16 | | |
37 | 17 | | |
38 | 18 | | |
39 | 19 | | |
40 | | - | |
| 20 | + | |
41 | 21 | | |
42 | | - | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
Lines changed: 99 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
77 | 89 | | |
78 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
79 | 93 | | |
80 | 94 | | |
81 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
82 | 98 | | |
83 | 99 | | |
84 | 100 | | |
85 | 101 | | |
86 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
87 | 105 | | |
88 | 106 | | |
89 | 107 | | |
90 | 108 | | |
91 | 109 | | |
92 | | - | |
93 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
94 | 116 | | |
95 | 117 | | |
96 | 118 | | |
| |||
116 | 138 | | |
117 | 139 | | |
118 | 140 | | |
119 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
120 | 148 | | |
121 | 149 | | |
122 | 150 | | |
| |||
133 | 161 | | |
134 | 162 | | |
135 | 163 | | |
| 164 | + | |
136 | 165 | | |
137 | 166 | | |
138 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
139 | 170 | | |
140 | 171 | | |
141 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
142 | 175 | | |
143 | 176 | | |
144 | 177 | | |
| |||
153 | 186 | | |
154 | 187 | | |
155 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
156 | 197 | | |
157 | 198 | | |
158 | 199 | | |
| |||
176 | 217 | | |
177 | 218 | | |
178 | 219 | | |
| 220 | + | |
179 | 221 | | |
180 | 222 | | |
181 | 223 | | |
| |||
186 | 228 | | |
187 | 229 | | |
188 | 230 | | |
189 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
190 | 234 | | |
191 | 235 | | |
192 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
193 | 239 | | |
194 | 240 | | |
195 | 241 | | |
196 | 242 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 243 | + | |
200 | 244 | | |
201 | 245 | | |
202 | | - | |
203 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
204 | 253 | | |
205 | 254 | | |
206 | 255 | | |
207 | 256 | | |
208 | 257 | | |
| 258 | + | |
209 | 259 | | |
210 | 260 | | |
211 | 261 | | |
212 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
213 | 265 | | |
214 | 266 | | |
215 | 267 | | |
216 | 268 | | |
217 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
218 | 272 | | |
219 | 273 | | |
220 | 274 | | |
| |||
264 | 318 | | |
265 | 319 | | |
266 | 320 | | |
267 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
268 | 325 | | |
269 | 326 | | |
270 | 327 | | |
271 | 328 | | |
272 | | - | |
| 329 | + | |
273 | 330 | | |
274 | 331 | | |
275 | 332 | | |
| |||
281 | 338 | | |
282 | 339 | | |
283 | 340 | | |
284 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
285 | 344 | | |
286 | 345 | | |
287 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
288 | 349 | | |
289 | 350 | | |
290 | 351 | | |
| |||
300 | 361 | | |
301 | 362 | | |
302 | 363 | | |
| 364 | + | |
303 | 365 | | |
304 | 366 | | |
305 | 367 | | |
| |||
327 | 389 | | |
328 | 390 | | |
329 | 391 | | |
330 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
331 | 396 | | |
332 | | - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
333 | 400 | | |
334 | 401 | | |
335 | 402 | | |
| |||
341 | 408 | | |
342 | 409 | | |
343 | 410 | | |
| 411 | + | |
344 | 412 | | |
345 | 413 | | |
346 | 414 | | |
| |||
380 | 448 | | |
381 | 449 | | |
382 | 450 | | |
383 | | - | |
| 451 | + | |
384 | 452 | | |
385 | 453 | | |
386 | 454 | | |
| |||
403 | 471 | | |
404 | 472 | | |
405 | 473 | | |
406 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
407 | 477 | | |
408 | | - | |
| 478 | + | |
0 commit comments