-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grade caching code merged into development branch (#205)
* Added caching of grader results. Uses a Moolde file cache to store results of checked questions. The key is made up of the question id, template id, random seed, student answser and attachements (if any). * Response caching code for testing on a real server. Code still under development. * Response caching code for testing on a real server. Code still under development. * Minor update to allow running on php < v8... * Updated some tests to make them work in php < 8 Mainly replacing calls to grade_response to grade_response($response, false, false) instead of grade_response($response, usecache:false) * Little bugfix... * Trial with grade caching at jobesandbox.php level. * Small tweaks while testing jobe caching. * Tidied up code ready for trial on a real server * Minor updates, removing useless bits and pieces. * Updated behat tests to initialise jobe sandbox properly each time May still need to change behat_coderunner.php to make it more general. That is make it possible to change the jobeserver address in different situations, eg, when running in docker locally or docker in CI tests on github. * Reverted behat fixtures to roughly what they were with minor improvements. Removed unneccesary Given jobe sandbox enabled lines. Removed the hack in jobesandbox.php in prep for merging with branch that has fixed the problem of reverting back to coderunner's default jobe2 server (jobe2.cosc.canterbury.ac.nz) during bhat tests. * Reverted behat fixtures to roughly what they were with minor improvements. Removed unneccesary Given jobe sandbox enabled lines. Removed the hack in jobesandbox.php in prep for merging with branch that has fixed the problem of reverting back to coderunner's default jobe2 server (jobe2.cosc.canterbury.ac.nz) during bhat tests. * Added attribute definitions to qtype_coderunner_combinator_grader_outcome class to adhere to new PHP8.2 standard. Also fixed minor bug caused by missed merge conflict * Updated grade caching so that questions with different question text still use the cached outcome. That is, something has to change in the actual job being run to force a real regrade.
- Loading branch information
Showing
20 changed files
with
397 additions
and
151 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ NonRepoFiles/* | |
/amd/src/ui_blockly.json | ||
/amd/src/.eslintrc.js | ||
.grunt | ||
|
||
.vscode/ |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.