The SIO2 project
  1. The SIO2 project
  2. SIO-1789

Squash migrations / optimize test running

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Obsolete
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:

      Description

      We can speed up the tests significantly by squashing migrations. In django there is a mechanism that seems to solve this properly.

      https://docs.djangoproject.com/en/1.9/topics/migrations/#squashing-migrations

        Issue Links

          Activity

          Hide
          Adam Paszke added a comment -
          +10000 for this one. At each test run 30s is spent on rendering models.
          Show
          Adam Paszke added a comment - +10000 for this one. At each test run 30s is spent on rendering models.
          Hide
          Stanisław Barzowski added a comment -
          Sadly, it's not going well. There aren't that many migrations, but they are very complicated and require manual interventions.
          Show
          Stanisław Barzowski added a comment - Sadly, it's not going well. There aren't that many migrations, but they are very complicated and require manual interventions.
          Hide
          Stanisław Barzowski added a comment -
          I squashed some migrations and it doesn't seem to help much.

          Maybe instead we should focus on reusing the db between test runs (for development).
          Show
          Stanisław Barzowski added a comment - I squashed some migrations and it doesn't seem to help much. Maybe instead we should focus on reusing the db between test runs (for development).
          Hide
          Adam Paszke added a comment -
          We're using an in-memory database, and as far as I remember there's no feature that can dump and reuse it.
          Show
          Adam Paszke added a comment - We're using an in-memory database, and as far as I remember there's no feature that can dump and reuse it.
          Hide
          Szymon Acedański added a comment -
          This issue has been automatically closed as Obsolete due to no activity for 365 days.

          Feel free to reopen it or create a new one if it's still relevant.
          Show
          Szymon Acedański added a comment - This issue has been automatically closed as Obsolete due to no activity for 365 days. Feel free to reopen it or create a new one if it's still relevant.

            People

            • Assignee:
              Szymon Acedański
              Reporter:
              Stanisław Barzowski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: