-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Remove obsolete entity count safeguards when using snapshot_platform
test helper
#127736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove obsolete entity count safeguards when using snapshot_platform
test helper
#127736
Conversation
Hey there @Kane610, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Hey there @shaiu, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Hey there @mammuth, @AaronDavidSchneider, @chemelli74, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
snap_shotplatform
test helpersnapshot_platform
test helper
Sadly unused snapshots are visible - but the CI still passes
|
cc @joostlek |
pytest does exit with exit code 1, but apparently that doesn't fail the CI |
After investigation - it seems there is an incompatibility with xdist. I don't know if the benefit outweighs the slower runs I don't know if it will be approved. You may want to monitor that PR and decide if this one should be reverted... |
mehhh ... that's *piep* 🙈 without multi-threaded pytest it reconizes the unused snapshots and exits with rc 1:
but with multi-threaded pytest, not unused snapshots get recognized, so exists with rc 0
|
even there were efforts spent in the past to make it compatible with xdist -> syrupy-project/syrupy#535 EDIT: it's a documented behavior --> Known Limitations 🙈 |
I understand why update snapshots would fail. Might be worth revisiting/reopening there |
PR to revert this one -> #128477 |
Proposed change
With
syrupy==4.7.2
(#127710) not tested snapshots are now recognized, so we do not need to guard against missing entities.example:
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: