Open
Description
Description of the problem
The migration scripts from 7.x to 8.x fail to migrate certain data:
- They do not properly generate hash values for executables (see webapp/migrations/Version20210407120356.php), causing judgehosts to crash due to hash inconsistencies.
- They fail to generate
judgetasks
for existing judgeruns. Therefore, when modifying global/contest configurations,maybeCreateJudgeTasks
crashes due to the creation of duplicate values.
Your environment
DOMjudge 8.2.2
Steps to reproduce
- Install DOMjudge 7.x.
- Create some submissions and judgeruns.
- Follow the Upgrading guide to upgrade to DOMjudge 8.x.
- Create additional submissions and modify configuration values.
Expected behaviour
Submissions should be correctly judged, and configuration values should be updated without issues.
Actual behaviour
Judgehosts crash. The DOMserver returns a 500 error due to foreign key violations.
Any other information that you want to share?
We have attempted some fixes in our fork: 30b2606 and bf66294. However, these fixes are specific to our cases.