Commit graph

24 commits

Author SHA1 Message Date
Franck Nijhof
5ff6779f5c
Update guppy3 to 3.1.4 () 2023-10-20 20:20:17 +02:00
Marc Mueller
ba91aaa28d
Add support for Python 3.12 () 2023-10-10 21:34:49 +02:00
Allen Porter
12129e9d21
Update service call return values and error handling ()
* Update return signature of service calls

* Add timeout error handling in websocket api for service calls

* Update recorder tests to remove assertion on service call

* Remove timeout behavior and update callers that depend on it today

* Fix tests

* Add missing else

* await coro directly

* Fix more tests

* Update the intent task to use wait instead of timeout

* Remove script service call limits and limit constants

* Update tests that depend on service call limits

* Use wait instead of wait_for and add test

* Update homeassistant/helpers/intent.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-06-16 07:01:40 -07:00
J. Nick Koston
9c039a17ea
Bump guppy3 to 3.1.3 () 2023-05-16 08:26:17 +02:00
epenet
e277bbb513
Use tmp_path in tests ()
* Use tmp_path in tests

* Use joinpath

* Prefer / operator

* Cleanup
2023-04-12 08:19:01 +02:00
J. Nick Koston
51ff027fce
Add object source logger to profiler ()
* Add object source logger to profiler

* fixes

* cleanup

* tweaks

* logging

* logging

* too intensive

* adjust

* Update homeassistant/bootstrap.py

* fixes

* fixes

* coverage
2023-04-02 20:54:21 -04:00
J. Nick Koston
9dc936f8b9
Add sqlalchemy LRUs to the profiler lru service () 2023-03-28 12:02:35 -10:00
J. Nick Koston
2fd872b253
Speed up profiler lru test () 2023-03-28 11:02:08 +02:00
J. Nick Koston
dc37d92197
Add lru stats to the profiler integration () 2023-03-28 08:34:56 +02:00
epenet
ab4a726e6c
Add tmpdir to known fixtures in pylint () 2023-03-17 10:22:02 +01:00
J. Nick Koston
61539686a4
Disable profiler.memory service with python 3.11 () 2023-02-15 16:20:47 +01:00
epenet
2cdc741900
Add type hints to integration tests (part 17) () 2023-02-15 11:14:04 +01:00
Paulus Schoutsen
d54f59478f
Keep task references while running ()
* Keep task references while running

* Update pilight tests pointing at correct logger call

* Fix graphite tests

* Fix profiler tests

* More graphite test fixes

* Remove extra sleep

* Fix tests

* Shutdown background tasks as part of stage 1

* Remove unnecessary sleep in test

* Remove unused method on mock hass

* Skip on cancelled too

* Remove background tasks

* Test trigger variables without actually sleeping

* Fix graphite

* One more graphite grrrrrrr
2023-02-13 23:16:59 -05:00
epenet
3abf7ea18a
Add type hints to integration tests (m-p) () 2023-02-08 07:48:54 -08:00
J. Nick Koston
a9a5645255
Defer profiler imports until needed to reduce memory pressure () 2022-04-17 20:16:25 -10:00
J. Nick Koston
cf685ef651
Fix profiler object growth logging test () 2022-04-03 20:39:47 +02:00
J. Nick Koston
bfe94f1cc5
Fix profiler dumping object when repr fails ()
* Fix profiler dumping object when repr fails

* cover
2022-03-08 10:33:08 +01:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ()
* Convert persistent notification tests to async

* Create/dismiss persistent notifications in exposed functions, not service calls

* Fix notify persistent_notification

* Remove setting up persistent_notification

* Drop more setups

* Empty methods

* Undeprecate sync methods because too big task

* Fix setup clearing notifications

* Fix a bunch of tests

* Fix more tests

* Uno mas

* Test persistent notification events

* Clean up stale comment

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
tkdrob
664075962f
Clean up profiler constants () 2021-04-27 10:04:45 -04:00
J. Nick Koston
7f6572893d
Add services to the profiler to log threads and event loop schedule ()
* Add services to the profiler to log threads and event loop schedule

* improve readability

* increase log debug

* bigger

* tweaks

* Update homeassistant/components/profiler/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/profiler/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* remove schema= and cleanup existing

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-19 11:39:34 +02:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
J. Nick Koston
add50cb33a
Add services to log and dump objects to the profiler to help track down memory leaks ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-09 10:54:18 -10:00
Jason Hunter
2a795c0397
Add guppy3 memory profile to Profiler integration ()
* add guppy memory profile to profiler integration

* add output path to notification

* create new service for memory profile

* address review comments
2020-10-28 21:05:16 -04:00
J. Nick Koston
494d4a262a
Add Profiler integration ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-05 07:57:07 -05:00