[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#961403: r-cran-freetypeharfbuzz: autopkgtest needs update



Source: r-cran-freetypeharfbuzz
Version: 0.2.5+dfsg-2
Severity: serious
Tags: bullseye sid
X-Debbugs-CC: debian-ci@lists.debian.org
User: debian-ci@lists.debian.org
Usertags: needs-update

Hi Maintainer

The autopkgtests of r-cran-freetypeharfbuzz currently fail [1],
preventing the migration of r-base.
This seems to coincide with the upload of r-cran-fontquiver/0.2.1-2.
I've copied what I hope is the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/r/r-cran-freetypeharfbuzz/unstable/amd64/


> library(testthat)
> library(freetypeharfbuzz)
>
> test_check("freetypeharfbuzz")
── 1. Error: width (@test-string-info.R#4)  ────────────────────────────────────
Internal error: cannot find fontLiberationSans-Regular.ttf
Backtrace:
 1. testthat::expect_identical(rounded_width("foobar"), 34.0156)
 4. freetypeharfbuzz:::rounded_width("foobar")
 5. freetypeharfbuzz::str_width(text)
/tmp/autopkgtest-lxc.mhx9pi7p/downtmp/autopkgtest_tmp/helper-extents.R:3:2
 6. fontquiver::font("Liberation", "sans", "regular")
 7. fontset_props(fontset)$getter(variant, style)
 8. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 9. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 2. Error: extents takes kerning into account (@test-string-info.R#10)  ──────
Internal error: cannot find fontLiberationSans-Regular.ttf
Backtrace:
 1. testthat::expect_identical(rounded_width("VA"), 15.1094)
 4. freetypeharfbuzz:::rounded_width("VA")
 5. freetypeharfbuzz::str_width(text)
/tmp/autopkgtest-lxc.mhx9pi7p/downtmp/autopkgtest_tmp/helper-extents.R:3:2
 6. fontquiver::font("Liberation", "sans", "regular")
 7. fontset_props(fontset)$getter(variant, style)
 8. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 9. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 3. Failure: inputs are type-checked (@test-string-info.R#20)  ───────────────
`str_info("foo", font_size = "bar")` threw an error with unexpected message.
Expected match: "must be a length 1 numeric"
Actual message: "Internal error: cannot find fontLiberationSans-Regular.ttf"
Backtrace:
  1. testthat::expect_error(str_info("foo", font_size = "bar"), "must
be a length 1 numeric")
  6. freetypeharfbuzz::str_info("foo", font_size = "bar")
  7. fontquiver::font("Liberation", "sans", "regular")
  8. fontset_props(fontset)$getter(variant, style)
  9. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 10. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 4. Failure: inputs are type-checked (@test-string-info.R#21)  ───────────────
`str_info("foo", font_size = 1:3)` threw an error with unexpected message.
Expected match: "must be a length 1 numeric"
Actual message: "Internal error: cannot find fontLiberationSans-Regular.ttf"
Backtrace:
  1. testthat::expect_error(str_info("foo", font_size = 1:3), "must be
a length 1 numeric")
  6. freetypeharfbuzz::str_info("foo", font_size = 1:3)
  7. fontquiver::font("Liberation", "sans", "regular")
  8. fontset_props(fontset)$getter(variant, style)
  9. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 10. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 5. Error: can supply integer or double size (@test-string-info.R#25)  ───────
Internal error: cannot find fontLiberationSans-Regular.ttf
Backtrace:
 1. testthat::expect_identical(...)
 4. freetypeharfbuzz::str_info("foo", 12)
 5. fontquiver::font("Liberation", "sans", "regular")
 6. fontset_props(fontset)$getter(variant, style)
 7. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 8. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 6. Error: can retrieve typographical metrics (@test-string-info.R#29)  ──────
Internal error: cannot find fontLiberationSans-Regular.ttf
Backtrace:
 1. testthat::expect_identical(...)
 4. freetypeharfbuzz::font_info(11)
 5. fontquiver::font("Liberation", "sans", "regular")
 6. fontset_props(fontset)$getter(variant, style)
 7. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 8. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 7. Error: size is taken into account (@test-string-info.R#40)  ──────────────
Internal error: cannot find fontLiberationSans-Regular.ttf
Backtrace:
 1. freetypeharfbuzz::font_info(11)
 2. fontquiver::font("Liberation", "sans", "regular")
 3. fontset_props(fontset)$getter(variant, style)
 4. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 5. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 8. Error: typographical height is monotonically increasing (@test-string-info
Internal error: cannot find fontLiberationSans-Regular.ttf
Backtrace:
 1. base::vapply(1:50, function(size) sum(font_info(size)), double(1))
 2. freetypeharfbuzz:::FUN(X[[i]], ...)
 3. freetypeharfbuzz::font_info(size)
 4. fontquiver::font("Liberation", "sans", "regular")
 5. fontset_props(fontset)$getter(variant, style)
 6. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 7. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 9. Error: string metrics are computed for various edge cases (@test-string-in
Internal error: cannot find fontLiberationSans-Regular.ttf
Backtrace:
 1. freetypeharfbuzz:::expect_metrics(...)
 2. freetypeharfbuzz::str_info(string)
/tmp/autopkgtest-lxc.mhx9pi7p/downtmp/autopkgtest_tmp/helper-extents.R:7:2
 3. fontquiver::font("Liberation", "sans", "regular")
 4. fontset_props(fontset)$getter(variant, style)
 5. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 6. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

── 10. Error: supports fractional font sizes (@test-string-info.R#64)  ─────────
Internal error: cannot find fontLiberationSans-Regular.ttf
Backtrace:
 1. freetypeharfbuzz::str_width("foo", 12)
 2. fontquiver::font("Liberation", "sans", "regular")
 3. fontset_props(fontset)$getter(variant, style)
 4. fontquiver:::font_get("Liberation", variant, style, pkg = "fontLiberation")
 5. fontquiver:::concat_font(std_name, base, "ttf", package = pkg)

══ testthat results  ═══════════════════════════════════════════════════════════
[ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 10 ]
1.  Error: width (@test-string-info.R#4)
2.  Error: extents takes kerning into account (@test-string-info.R#10)
3.  Failure: inputs are type-checked (@test-string-info.R#20)
4.  Failure: inputs are type-checked (@test-string-info.R#21)
5.  Error: can supply integer or double size (@test-string-info.R#25)
6.  Error: can retrieve typographical metrics (@test-string-info.R#29)
7.  Error: size is taken into account (@test-string-info.R#40)
8.  Error: typographical height is monotonically increasing
(@test-string-info.R#46)
9.  Error: string metrics are computed for various edge cases
(@test-string-info.R#52)
10. Error: supports fractional font sizes (@test-string-info.R#64)

Error: testthat unit tests failed
Execution halted
autopkgtest [15:07:12]: test run-unit-test: -----------------------]
autopkgtest [15:07:12]: test run-unit-test:  - - - - - - - - - -
results - - - - - - - - - -
run-unit-test        FAIL non-zero exit status 1


Reply to: