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
python3Packages.[psautohint, afdko]: disable slow & failing tests #106464
python3Packages.[psautohint, afdko]: disable slow & failing tests #106464
Conversation
d8af1e1
to
c19d32a
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.
Can you please squash the commits together to one per package?
81171bc
to
a752134
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.
Thanks for identifying the flaky test! I was meaning to do that.
I'm personally not too concerned about build times, but I don't think there's a reason why we absolutely have to enable all tests.
How come you had to build psautohint
btw? I was under the impression psautohint
would only need to be built if you'd have to build noto-fonts-emoji
or twitter-color-emoji
from scratch…
Result of 11 packages built:
|
@sternenseemann I'm working on bringing up a Raspberry Pi 4 on NixOS, and the default fonts include |
Makes sense! The build process of Concerning the test suites: As said I don't really have an opinion on whether we should disable tests to reduce build time. As I don't have push access I'm automatically relieved of this decision at least :) We should however definitely disable |
@sternenseemann It'd probably help those w/ push access to merge this PR if you leave an explicit "approval" review, including your qualms about disabling some tests so they have the full context. |
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.
We should however definitely disable test_hashmap_old_version
in psautohint until the issue is resolved upstream.
I'm indifferent about disabling tests for build speed reasons.
Upstream suggests that |
@sternenseemann Alternatively, you CAN override {
checkInputs = [ (pytestCheckHook.override{ pytest = pytest_5; }) pytestcov pytest_xdist ];
} Builds cleanly for me. Can confirm that it passes with the "test_hashmap_old_version" test enabled. |
a752134
to
5137f98
Compare
* Reduces test time from ~5 mins to ~30 seconds. * Also converts to pytestCheckHook for better test control. * Makes fetchFromGitHub variables match convention. * remove pytest-randomly. pytest-randomly will randomize test order & reset random seeds between tests. We don't want the random test ordering for reproducible builds, so we remove it. * Fixes flaky test "test_hashmap_old_version" by pinning pytest to v5, corresponding to upstream issue: https://github.com/adobe-type-tools/psautohint/issues/284#issuecomment-742800965 py3.psautohint: use pytest5
Convert to standard pytestCheckHook. This allows easier testing of derivation build & disabling tests. Also disable slow tests.
5137f98
to
d6187d5
Compare
Fixes #106558 |
Result of 11 packages built:
|
Motivation for this change
When building a NixOS build on Raspberry Pi, found that
python3Packages.psautohint
was taking FAR too long to build (~5 mins for native x86 build). This disables the slowest tests and fixes up a few minor issues.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)