Skip to content
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

SparkyCI builds fails #16

Closed
melezhik opened this issue May 12, 2022 · 4 comments
Closed

SparkyCI builds fails #16

melezhik opened this issue May 12, 2022 · 4 comments

Comments

@melezhik
Copy link
Contributor

Hi!

Here is the report - http://sparrowhub.io:2222/report/433

21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/cmap-fixed.t ............... ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/cmap-utf16.t ............... ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/cmap-utf32.t ............... ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/cmap-utf8.t ................ ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/cmap-variable.t ............ ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/fontobj.t .................. ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/load-font.t ................ ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/pdf-text-align.t ........... ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/reuse-cid.t ................ ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/reuse-type1.t .............. ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/reuse-unembedded.t ......... Dubious, test returned 255
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] All 2 subtests passed
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/subset.t ................... ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/threads.t .................. ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/type1-add-encoding.t ....... ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/type1-encoding.t ........... ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/type1-encoding_issue#12.t .. ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/type1-stream.t ............. ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/type1.t .................... ok
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/type3-basic.t .............. Dubious, test returned 255
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] All 8 subtests passed
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] All tests successful.
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader]
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] Test Summary Report
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] -------------------
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/reuse-unembedded.t (Wstat: 65280 Tests: 0 Failed: 0)
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] Non-zero exit status: 255
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] Parse errors: Bad plan. You planned 2 tests but ran 0.
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] t/type3-basic.t (Wstat: 65280 Tests: 1 Failed: 0)
21:08:50 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] Non-zero exit status: 255
21:08:51 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] Parse errors: Bad plan. You planned 8 tests but ran 1.
21:08:51 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] Files=19, Tests=130, 156 wallclock secs
21:08:51 05/12/2022 [bash: run tests] :: [PDF::Font::Loader] Result: FAILED
21:08:51 05/12/2022 [bash: run tests] :: ===> Testing [FAIL]: PDF::Font::Loader:ver<0.6.2>:auth
21:08:51 05/12/2022 [bash: run tests] :: task exit status: 1

HTH

Aleksei

@dwarring
Copy link
Contributor

output from running tests form the shell:

alpine@ip-172-31-76-44:~/git/PDF-Font-Loader-raku$ uname -a
Linux ip-172-31-76-44 5.15.5-0-virt #1-Alpine SMP Fri, 26 Nov 2021 11:51:30 +0000 aarch64 Linux
alpine@ip-172-31-76-44:~/git/PDF-Font-Loader-raku$ prove6 -I.
t/cmap-fixed.t ............... ok 
t/cmap-utf16.t ............... ok 
t/cmap-utf32.t ............... ok 
t/cmap-utf8.t ................ ok 
t/cmap-variable.t ............ ok 
t/fontobj.t .................. ok 
t/load-font.t ................ ok   
t/pdf-text-align.t ........... ok 
t/reuse-cid.t ................ ok 
t/reuse-type1.t .............. ok 
Type check failed in assignment to $match; expected FontConfig:D but got FontConfig (FontConfig) (perhaps Nil was assigned to a :D which had no default?)
  in method find-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 92
  in method load-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 52
  in method load-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 64
  in block <unit> at t/reuse-unembedded.t line 14

t/reuse-unembedded.t ......... Dubious, test returned 255
All 2 subtests passed 
t/subset.t ................... ok 
t/threads.t .................. ok 
t/type1-add-encoding.t ....... ok   
t/type1-encoding.t ........... ok 
t/type1-encoding_issue#12.t .. ok 
t/type1-stream.t ............. ok 
t/type1.t .................... ok 
t/type3-basic.t ..............1/8Type check failed in assignment to $match; expected FontConfig:D but got FontConfig (FontConfig) (perhaps Nil was assigned to a :D which had no default?)
  in method find-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 92
  in method load-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 52
  in method load-font at /home/alpine/git/PDF-Font-Loader-raku/lib/PDF/Font/Loader.rakumod (PDF::Font::Loader) line 64
  in block <unit> at t/type3-basic.t line 19

# You planned 8 tests, but ran 1
t/type3-basic.t .............. Dubious, test returned 255
All 8 subtests passed 
All tests successful.

Test Summary Report
-------------------
t/reuse-unembedded.t  (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 2 tests but ran 0.
t/type3-basic.t  (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 8 tests but ran 1.
Files=19, Tests=130,  190 wallclock secs
Result: FAILED
alpine@ip-172-31-76-44:~/git/PDF-Font-Loader-raku$ 

dwarring pushed a commit that referenced this issue May 13, 2022
Some test fail when fontconfig can't locate fonts #16.

Provide a plain Mono fallback font and warn in this case.
@melezhik
Copy link
Contributor Author

I guess this is the same as on SparkyCI, but with more verbose output …

@dwarring
Copy link
Contributor

This module wasn't handling FontConfig failing to find a match. Added FreeMono.ttf as a resource and as a fallback font.

Fixed in latest build http://sparrowhub.io:2222/report/444

@melezhik
Copy link
Contributor Author

Good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants