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.
          Stanisław Barzowski made changes -
          Field Original Value New Value
          Summary Squash migrations Squash migrations / optimize test running
          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.
          Stanisław Barzowski made changes -
          Fix Version/s TAG 2015/16 Nadmiary [ 12403 ]
          Fix Version/s Current Version [ 11000 ]
          Stanisław Barzowski made changes -
          Assignee Stanisław Barzowski [ sbarzowski ]
          Szymon Acedański made changes -
          Fix Version/s TAG 2015/16 Nadmiary [ 12403 ]
          Wojciech Dubiel made changes -
          Link This issue is related to SIO-2145 [ SIO-2145 ]
          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.
          Szymon Acedański made changes -
          Status New [ 10000 ] Resolved [ 5 ]
          Assignee Szymon Acedański [ accek ]
          Resolution Obsolete [ 7 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          New New Resolved Resolved
          1489d 22h 1m 1 Szymon Acedański 2020-04-27 16:28

            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: