domjudge icon indicating copy to clipboard operation
domjudge copied to clipboard

Test database upgrades

Open vmcj opened this issue 8 months ago • 3 comments

Currently the database upgrade is not tested:

  • Install an older (un)supported release via the documentation
  • Do some minimal actions:
    • Create a team
    • Create a clarification
    • Answer it
    • Upload a problem
    • Submit a problem
    • Create some extra entities and delete those for example:
      • Create a contest,
      • With a team submit
      • Delete the contest again

Keep the dump small, upgrade tests can be fast as we don't need a lot of problems/submissions but rather more (rarely used) functions/features tested.

When we have this dump we can make an CI job to test the upgrade with ./bin/dj_setup_database upgrade.

vmcj avatar May 28 '24 06:05 vmcj