Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test database upgrades #2577

Open
vmcj opened this issue May 28, 2024 · 0 comments
Open

Test database upgrades #2577

vmcj opened this issue May 28, 2024 · 0 comments

Comments

@vmcj
Copy link
Member

vmcj commented May 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant