-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
xdg-desktop-portal: fix build when doCheck = false #275867
base: master
Are you sure you want to change the base?
Conversation
73845d8
to
493124a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expected, doCheck
disabled running tests but Meson has no idea they will not run. If you want to make doCheck = false
work, you should also disable building/configuring tests.
@jtojnar How do I disable building tests? I know nothing about meson and the Would removing the |
using |
493124a
to
ab2cdce
Compare
It turned out that I needed to add another flag instead... |
ab2cdce
to
7834eaf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds with the override now, approving.
Result of |
@jtojnar mind looking at this? changes were made and the previous review is currently blocking merge |
Right, this should work but I am still not sure why we would want this. Disabling tests is outside of regular use case IMO, and if a person is already overriding Sorry, I should have been clearer about considering this something that should be done by the consumer. |
There are at least two good reasons:
Any test with a timeout is guaranteed to fail if the build machine's load is high enough (which is what happened in my case) or if the machine is slow enough (e.g. when running under an emulator for a different architecture). Such test failures have nothing to do with the code that is being tested, the problem is in the tests themselves.
|
I've run into very similar issues myself for large-scale PRs (see #342961 and its history :p), and I think it would honestly be worth considering this a more prevalent issue in Nixpkgs. A lot of builds fail on Hydra constantly for this exact reason as seen in #staging:nixos.org. We need a more standardized resolution to these types of problems, as disabling tests/increasing timeouts isn't a good all-cases fix. |
Description of changes
Fixes #275863
cc @jtojnar @pks-t @bobby285271
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-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.