Repository navigation
Conversation
Ubuntu is updated to 26.04 (from 24.04). This was not done for the last release because at that point the GitHub workflow image for Ubuntu 26.04 was not yet available. It is now. Also update all of the GitHub actions to their latest versions. The Rserve tests have issues on the amd64v3 microarchitecture build that is used by the Github Ubuntu 26.04 image. Basically, in this case there is floating point drift in the R results, and the Rserve tests compare these R results against hard coded expected values that do not account for that drift. The tests were designed to be tolerant to this drift, but when I moved the Rserve library from the `Statisticts::R::IO` package to PG, and switched the tests from `Test::More` to `Test2::Suite` that error tolerance failed. The tests were still passing simply because the values on the runners to this point were exactly identical. To fix this a `rexp_cmp` helper was added to `ShortDoubleVector` that builds a tolerant Test2 check for an expected value. A REXP object is checked through its tolerant `eq` overload. A plain `to_perl` structure, which has no object to overload, gets `float()` checks at its numeric leaves instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ubuntu is updated to 26.04 (from 24.04). This was not done for the last release because at that point the GitHub workflow image for Ubuntu 26.04 was not yet available. It is now.
Also update all of the GitHub actions to their latest versions.
The Rserve tests have issues on the amd64v3 microarchitecture build that is used by the Github Ubuntu 26.04 image. Basically, in this case there is floating point drift in the R results, and the Rserve tests compare these R results against hard coded expected values that do not account for that drift. The tests were designed to be tolerant to this drift, but when I moved the Rserve library from the
Statisticts::R::IOpackage to PG, and switched the tests fromTest::MoretoTest2::Suitethat error tolerance failed. The tests were still passing simply because the values on the runners to this point were exactly identical.To fix this a
rexp_cmphelper was added toShortDoubleVectorthat builds a tolerant Test2 check for an expected value. A REXP object is checked through its toleranteqoverload. A plainto_perlstructure, which has no object to overload, getsfloat()checks at its numeric leaves instead.