TheOtherAdam
393424fa88
Allow disabling managed log file ( #170374 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-06-26 16:45:55 +01:00
Franck Nijhof
9a1fd913bf
Fix line length violations in tests (non-components) ( #170804 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: frenck <195327+frenck@users.noreply.github.com >
2026-05-17 10:30:45 -04:00
epenet
e975496145
Fix flaky test_tasks_logged_that_block_stage_2 with Python 3.14.3 ( #169424 )
...
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-29 08:54:21 +02:00
Erik Montnemery
e5f77801a7
Unconditionally set up base platform integrations ( #164863 )
2026-03-05 17:30:34 +01:00
Artur Pragacz
2edabf903a
Add backup integration to recovery mode ( #164734 )
2026-03-04 14:33:28 +01:00
Artur Pragacz
9cc4a3e427
Trigger recovery mode on registry major version downgrade ( #164340 )
2026-03-03 11:46:32 +01:00
Abílio Costa
f0a5e0a023
Enable duplicated log file on supervised when env var is set ( #158679 )
2025-12-17 17:44:54 +00:00
steaura
3b94b2491a
Update bootstrap.py for grammar in slow startup error log ( #157458 )
2025-11-28 19:34:30 +01:00
Abílio Costa
07da0cfb2b
Stop writing to config dir log file on supervised install ( #146675 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2025-10-01 11:11:00 +01:00
Abílio Costa
e02267ad89
Improve bootstrap file logging test ( #146670 )
2025-06-16 21:55:16 +01:00
Artur Pragacz
6fc064fa6a
Test that recorder is not promoted to earlier stage in bootstrap ( #142695 )
...
Test that recorder is not promoted to earlier stage
2025-05-27 08:23:39 +02:00
J. Nick Koston
2c316c5820
Ensure person loads after recorder ( #142585 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2025-04-11 09:39:30 -10:00
Erik Montnemery
e7c2e86c93
Attempt to fix flaky bootstrap test ( #142536 )
2025-04-09 13:37:21 +02:00
Erik Montnemery
1e55d4b613
Restore "Promote after dependencies in bootstrap" ( #142001 )
...
Revert "Revert "Promote after dependencies in bootstrap" (#141584 )"
This reverts commit de1e06c39b .
2025-04-04 23:26:43 +02:00
Erik Montnemery
de1e06c39b
Revert "Promote after dependencies in bootstrap" ( #141584 )
...
Revert "Promote after dependencies in bootstrap (#140352 )"
This reverts commit 3766040960 .
2025-03-27 12:57:58 -04:00
Artur Pragacz
3766040960
Promote after dependencies in bootstrap ( #140352 )
2025-03-25 11:34:53 +01:00
Artur Pragacz
c9b27cf26e
Detect early base platforms in bootstrap ( #140359 )
...
* Detect early base platforms in bootstrap
* Address feedback
* Address feedback
2025-03-20 12:56:45 +01:00
Artur Pragacz
4f25296c50
Improve dependencies resolution ( #138502 )
...
* Improve dependencies resolution
* Improve tests
* Better docstrings
* Fix comment
* Improve tests
* Improve logging
* Address feedback
* Address feedback
* Address feedback
* Address feedback
* Address feedback
* Simplify error handling
* small log change
* Add comment
* Address feedback
* shorter comments
* Add test
2025-03-11 10:12:23 +01:00
J. Nick Koston
e11ead410b
Add coverage to ensure we do not load base platforms before recorder ( #139464 )
2025-02-27 20:50:23 +00:00
Artur Pragacz
d9eb248e91
Better handle runtime recovery mode in bootstrap ( #138624 )
...
* Better handle runtime recovery mode in bootstrap
* Add test
2025-02-24 13:23:39 +01:00
Artur Pragacz
7021175e0d
Simplify stage 1 in bootstrap ( #137668 )
...
* Simplify stage 1 in bootstrap
* Add timeouts to STAGE 0
* Fix test
* Clarify pre import language
* Remove timeout for frontend and recorder
* Address review
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-02-13 13:07:24 +01:00
Artur Pragacz
ae55e26546
Group helpers of set_up_integrations in bootstrap ( #137673 )
2025-02-08 10:07:22 +01:00
epenet
364556a7dd
Prefer from...import...as over import...as in core tests ( #136146 )
2025-01-21 09:28:17 +01:00
J. Nick Koston
89c73f56b1
Migrate to using aiohttp-asyncmdnsresolver for aiohttp resolver ( #134830 )
2025-01-06 12:06:28 -10:00
epenet
ba3872ff87
Add missing hass type in tests/*.py ( #124048 )
2024-08-18 15:42:41 +02:00
Erik Montnemery
3df6b34a03
Split recorder and frontend bootstrap steps ( #122420 )
2024-07-22 23:07:49 +02:00
Erik Montnemery
c73e7ae178
Handle integration with missing dependencies ( #122386 )
2024-07-22 15:41:55 +02:00
Marc Mueller
a6068dcdf2
Update import locations in tests ( #122216 )
2024-07-20 11:16:04 +02:00
Erik Montnemery
b8b7c23258
Create log files in an executor thread ( #120912 )
2024-07-02 15:48:35 +02:00
Marc Mueller
ca55986057
Import Generator from collections.abc (1) ( #120914 )
2024-07-01 11:51:51 +02:00
epenet
f0dc39a903
Improve typing in core tests ( #119958 )
...
Add missing return values in core tests
2024-06-19 19:58:07 +02:00
epenet
01be5d5f6b
Move fixtures to decorators in core tests ( #119675 )
2024-06-14 13:32:42 +02:00
J. Nick Koston
d52ce03aa4
Ensure asyncio blocking checks are undone after tests run ( #119542 )
...
* Ensure asyncio blocking checks are undone after tests run
* no reason to ever enable twice
* we are patching objects, make it more generic
* make sure bootstrap unblocks as well
* move disable to tests only
* re-protect
* Update tests/test_block_async_io.py
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Revert "Update tests/test_block_async_io.py"
This reverts commit 2d46028e21 .
* tweak name
* fixture only
* Update tests/conftest.py
* Update tests/conftest.py
* Apply suggestions from code review
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2024-06-13 08:52:01 +02:00
epenet
1c8a9cc3b8
Remove unused caplog fixtures in tests ( #119056 )
2024-06-07 11:38:56 +02:00
Marc Mueller
279483ddb0
Import Generator from typing_extensions (2) ( #118989 )
2024-06-06 17:24:22 +02:00
J. Nick Koston
3ba3e3135e
Fix flakey bootstrap test ( #118285 )
2024-05-28 08:11:14 +02:00
Jan-Philipp Benecke
5e194b8a82
Do not register mqtt mock config flow with handlers ( #117521 )
2024-05-15 16:17:27 -04:00
J. Nick Koston
f4e8d46ec2
Small speed ups to bootstrap tests ( #117285 )
2024-05-12 20:05:02 +09:00
Erik Montnemery
35900cd579
Use mock_config_flow helper in bootstrap tests ( #117240 )
2024-05-11 14:11:42 -04:00
J. Nick Koston
f73c55b434
Ensure mqtt handler is restored if its already registered in bootstrap test ( #116549 )
2024-05-01 20:22:18 +02:00
J. Nick Koston
573cd8e94a
Ensure mock mqtt handler is cleaned up after test_bootstrap_dependencies ( #116544 )
2024-05-01 19:45:47 +02:00
Erik Montnemery
764b34ab62
Reduce scope of bootstrap test fixture to module ( #116195 )
2024-04-25 22:00:07 -05:00
J. Nick Koston
d17e9bfc99
Enable debug mode if asyncio debug is on at startup ( #116084 )
2024-04-24 12:55:09 +02:00
J. Nick Koston
53a179088f
Add debug mode to catch unsafe thread operations using core helpers ( #115390 )
...
* adjust
* adjust
* fixes
* one more
* test
* debug
* move to config
* cover
* Update homeassistant/core.py
* set debug from RuntimeConfig
* reduce
* fix message
* raise
* Update homeassistant/core.py
* Update homeassistant/core.py
* no flood check for raise
* cover
2024-04-24 03:36:05 +02:00
J. Nick Koston
bf5cf382dc
Avoid useless stat() syscalls for every logger record ( #114987 )
...
* Avoid useless stat() syscalls for every logger record
shouldRollover will always return False since we do
not use maxBytes as we are only using RotatingFileHandler
for the backupCount option. Since every log record will
stat the log file to see if it exists and if its a normal
file, we can override the shouldRollover to reduce the
logging overhead quite a bit
https://github.com/python/cpython/blob/1d3225ae056245da75e4a443ccafcc8f4f982cf2/Lib/logging/handlers.py#L189
* assert False is False
2024-04-05 22:00:09 -04:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com >
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-03-26 00:02:16 +01:00
J. Nick Koston
e8cb6a8e29
Optimize loading of translations ( #114089 )
2024-03-23 22:22:09 -10:00
J. Nick Koston
31fb02a71d
Fix after deps not being considered for integrations before stage 1 ( #114045 )
2024-03-23 11:21:56 +01:00
J. Nick Koston
952f47ab18
Combine recorder and frontend bootstrap step ( #113985 )
2024-03-22 13:50:39 -10:00
J. Nick Koston
879e5bc961
Only wait for import flows in setup of there is a config flow ( #113780 )
2024-03-19 10:38:27 -10:00