Skip to content

Update the versions of things in workflows. - #1580

Open
drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:workflows-update
Open

drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:workflows-update

Conversation

@drgrice1

Copy link
Copy Markdown
Member

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.

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

No deployments
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

Successfully merging this pull request may close these issues.

1 participant