Commit f84523b
authored
Adding logging to SDK (#262)
* adding logging to runtime
* Add comprehensive tests for BaseNode and StateManager functionality
- Introduced a suite of tests for BaseNode, covering initialization, execution, and edge cases, ensuring robust validation of node behavior.
- Added integration tests for Runtime and StateManager, validating state management, error handling, and interaction with external services.
- Implemented tests for package imports and structure, ensuring all expected components are accessible and correctly configured.
- Enhanced test coverage for concurrency scenarios, verifying the correct handling of multiple simultaneous executions and state triggers.
- Improved overall test organization and clarity, contributing to a more maintainable and reliable codebase.
* Refactor tests to suppress type checking warnings
- Added `# type: ignore` comments to suppress type checking warnings in various test files, ensuring compatibility with type checkers while maintaining existing functionality.
- Updated test cases across multiple modules, including BaseNode, StateManager, and integration tests, to enhance clarity and prevent type-related issues during testing.
- Improved overall test robustness by ensuring that type hints do not interfere with test execution.
* Bump version to 0.0.7b9 in _version.py
* Add pytest-asyncio as a development dependency
- Included `pytest-asyncio` in both `pyproject.toml` and `uv.lock` to support asynchronous testing.
- Updated the version specification for `pytest-asyncio` to `>=0.24.0` to ensure compatibility with existing test frameworks.
* Refactor integration tests to improve HTTP session mocking
- Updated the integration tests in `test_integration.py` to use `exospherehost.runtime.ClientSession` for mocking HTTP responses, enhancing clarity and maintainability.
- Simplified the mocking of HTTP responses by consolidating the setup process, ensuring consistent behavior across tests.
- Fixed a bug in the runtime by adding `state_id` to the node mapping, improving the functionality of the state management system.
* Enhance logging and testing configuration
- Updated logging format in `runtime.py` to include the logger's name for better context in log messages.
- Changed info log statements to debug level for state manager URI and API key fallback, reducing log verbosity.
- Added pytest configuration options in `pyproject.toml` to specify asyncio mode and test paths, improving test execution setup.1 parent a813edd commit f84523b
11 files changed
Lines changed: 2191 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
12 | 44 | | |
13 | 45 | | |
14 | 46 | | |
| |||
48 | 80 | | |
49 | 81 | | |
50 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
51 | 86 | | |
52 | 87 | | |
53 | 88 | | |
| |||
72 | 107 | | |
73 | 108 | | |
74 | 109 | | |
| 110 | + | |
75 | 111 | | |
76 | 112 | | |
| 113 | + | |
77 | 114 | | |
78 | 115 | | |
79 | 116 | | |
| |||
130 | 167 | | |
131 | 168 | | |
132 | 169 | | |
| 170 | + | |
133 | 171 | | |
134 | 172 | | |
135 | 173 | | |
| |||
153 | 191 | | |
154 | 192 | | |
155 | 193 | | |
| 194 | + | |
156 | 195 | | |
157 | 196 | | |
| 197 | + | |
158 | 198 | | |
159 | 199 | | |
160 | 200 | | |
| |||
174 | 214 | | |
175 | 215 | | |
176 | 216 | | |
| 217 | + | |
177 | 218 | | |
178 | 219 | | |
179 | 220 | | |
| |||
189 | 230 | | |
190 | 231 | | |
191 | 232 | | |
| 233 | + | |
192 | 234 | | |
193 | 235 | | |
194 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
195 | 239 | | |
196 | 240 | | |
197 | 241 | | |
| |||
212 | 256 | | |
213 | 257 | | |
214 | 258 | | |
| 259 | + | |
215 | 260 | | |
216 | 261 | | |
217 | 262 | | |
| |||
232 | 277 | | |
233 | 278 | | |
234 | 279 | | |
| 280 | + | |
235 | 281 | | |
236 | 282 | | |
237 | 283 | | |
| |||
306 | 352 | | |
307 | 353 | | |
308 | 354 | | |
309 | | - | |
| 355 | + | |
310 | 356 | | |
311 | 357 | | |
312 | 358 | | |
313 | 359 | | |
314 | 360 | | |
315 | 361 | | |
| 362 | + | |
| 363 | + | |
316 | 364 | | |
317 | 365 | | |
| 366 | + | |
318 | 367 | | |
319 | 368 | | |
320 | 369 | | |
| 370 | + | |
| 371 | + | |
321 | 372 | | |
322 | | - | |
| 373 | + | |
323 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
324 | 378 | | |
325 | 379 | | |
326 | 380 | | |
327 | 381 | | |
328 | 382 | | |
329 | 383 | | |
330 | 384 | | |
| 385 | + | |
331 | 386 | | |
332 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
333 | 391 | | |
| 392 | + | |
334 | 393 | | |
335 | 394 | | |
336 | 395 | | |
| |||
346 | 405 | | |
347 | 406 | | |
348 | 407 | | |
349 | | - | |
| 408 | + | |
350 | 409 | | |
351 | 410 | | |
352 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments