-
-
Notifications
You must be signed in to change notification settings - Fork 17.1k
home-assistant-component-tests: Remove top level attribute #364068
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
Conversation
See NixOS#155060 (comment) and onward for motivation.
|
We created this workaround because people started complaining that building home-assistant in their nixpkgs-review was too expensive and so currently only the rebuild count for home-assistant's non-optional dependencies will be inflated by all its test runs. If we folded all tests back into home-assistant itself, then we'd be fixing the rebuild count but at the same time regressing the review experience for lots more pull requests than just uv. Additionally, we'd lose the ability to granularly bisect component breakages. I agree what we have right now is a hack, but the status quo really has the smallest impact on everyone involved. |
That isn't the only option though. It's possible to have granularity without exposing it to the rest of the world. Afaik CI rebuild counts only include things exposed as their own attrs.
Even if |
They wouldn't get run by hydra that way, which provides a helpful good/bad start point for bisects.
That way they aren't run by nixpkgs-review, the de facto standard review tool right now. A proposal to run passthru tests is stuck: Mic92/nixpkgs-review#397. |
There are other mechanisms than passthru tests. You could create a meta derivation that depends on all of the components.
That's easy to say, but I don't think it's true. Having anything go through the staging workflow sucks big time, and this is nudging more packages to take that path. |
|
@mweinelt so just having |
No. We want to make sure the respective component test still passes when a Python library used by Home Assistant is updated. Adding the component tests to every library's passthru.tests would be a ton of work (there are hundreds of them and they keep changing). |
|
Unless there is some willingness to address this from the HA maintainers I think that this PR should get merged. Like I pointed to in my comment this isn't just inflating build results but also make package searches return packages that are 100% irrelevant for end users. |
Things done
See #155060 (comment) and onward for motivation.
Ideally these tests would get executed differently instead of being removed outright, but that's a task up to home-assistant maintainers.
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.