Skip to content

Failing tests on riscv64 architecture. #7695

@charles-plessy

Description

@charles-plessy

Hello,

we distribute data.table in Debian and therefore run its test suite on a broader range of architectures than are typically covered on CRAN. One such architecture is riscv64, where R reports .Machine$longdouble.digits == 113 (i.e. true quad‑precision long double arithmetic).

Since data.table 1.18.0, two regression tests in tests/froll.Rraw have started to fail on this architecture:

  • 6001.740 (frollvar)
  • 6001.741 (frollsd)

In both cases, the observed difference is that the result contains NaN where the test expects NA for rolling windows involving missing values. The failures are deterministic and limited to these two tests.

A full CI log from Debian (riscv64) is available here:
https://ci.debian.net/packages/r/r-cran-data.table/testing/riscv64/69978545/

Would you consider adjusting these two tests to special‑case architectures with extended long double precision (for example, accepting NaN vs NA, or conditionally skipping the checks when .Machine$longdouble.digits > 64)?

We would of course be happy to test any proposed change on riscv64.

Best regards,

Charles Plessy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions