-
Notifications
You must be signed in to change notification settings - Fork 348
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
Set font in tests #1428
Set font in tests #1428
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1428 +/- ##
==========================================
+ Coverage 65.19% 65.28% +0.08%
==========================================
Files 50 50
Lines 8729 8737 +8
Branches 1034 1034
==========================================
+ Hits 5691 5704 +13
+ Misses 3038 3033 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Can this not be solved by installing the font in the relevant docker images. I'm guessing the issue is that those images dont have a good font installed that can be picked up by pango |
yes that's the problem. however automated test done downstream by various distros doesn't pull a font. this is more of an hack, but I don't know if they can add some soft dependency on fonts in their ci. |
A distro test system should be able to configure dependencies for software I would think. Do distros use the dunst test suite to test their packages? |
Yes but the problem is that we introduced a test that fails when no font is present. So all the old packaging started failing when updating to v1.12 the automatic ci runs for the distros started failing because they did not explicitly add the font dependency |
For Alpine Linux it's totally fine to add a font to our test dependencies. Sounds easier to maintain than shipping a font in the tarball. It makes sense documenting this somewhere, like in HACKING.md. |
I do agree with @fossdd, it's no problem to pull in a font as a build-time dependency, neither in Fedora nor in openSUSE. I would discourage bundling a font and instead document this requirement for the test suite |
Ok let's do it that way then. |
This should fix #1404.
This is kind of an hack, but it should work for the fontconfig + pango problem.
Further testing is required