Skip to content

Update WWSafe.pm. - #3144

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

Update WWSafe.pm.#3144
drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:safe-update

Conversation

@drgrice1

Copy link
Copy Markdown
Member

The updated WWSafe.pm is based on version 2.47 of the upstream Safe.pm module. It is essentially the upstream module except that some reentrancy issues with reval and rdo, and an issue with sharing an entire package to the safe compartment are fixed.

These are basically the same changes as to the WWSafe.pm module for PG.

Note that webwork2 uses this for three things:

  • to evaluate the configuration files and construct the course environment.
  • to evaluate achievement evaluators
  • to generate achievement notification email text from the template set for the achievement notificaiton

So clearly those are the things to test.

@somiaj

somiaj commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

I am testing these as I write problems. I did notice that both need to be rebased onto develop as they are a few commits behind.

@drgrice1

Copy link
Copy Markdown
Member Author

I rebased this pull request. What did you mean by both of these? The corresponding PG pull request was on the tip of develop.

@somiaj

somiaj commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Ahh I hadn't fetched your branches in my local PG, and got a slightly older version of the branch.

@somiaj

somiaj commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Do you have any suggested way to test this? I tested a few of what I consider my more complicated custom checkers and saw answers are still be accepted as correct. I have also gone through the library browser and viewed a decent chunk of my local problems (no actual testing the graders work). So far I see no errors/warnings. I am going to approve so this can get in, but unsure what should be tested. Note I'm using both safe-update branch here (which is for achievements I haven't tested that much) and on the PG side for testing problems.

@drgrice1

Copy link
Copy Markdown
Member Author

What you have done is basically it for testing the PG side. Look for problems that might do something different code wise (different macros, different underlying module usage, etc.) and make sure that they work.

For the WeBWorK side, any page you load is testing this pull request. That checks that the course environment loads and works as it should. Then test achievements, and make sure those are earned when they should be. Do what you can with achievement notifications, if you can test emails.

The updated `WWSafe.pm` is based on version 2.47 of the upstream
`Safe.pm` module. It is essentially the upstream module except that some
reentrancy issues with `reval` and `rdo`, and an issue with sharing an
entire package to the safe compartment are fixed.

These are basically the same changes as to the WWSafe.pm module for PG.
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.

2 participants