[0KRunning with gitlab-runner 12.7.1 (003fe500) [0;m[0K on grady-ci-runner 6oEdkxQQ [0;msection_start:1647336362:prepare_executor [0K[0KUsing Docker executor with image python:3.8 ... [0;m[0KStarting service postgres:13 ... [0;m[0KPulling docker image postgres:13 ... [0;m[0KUsing docker image sha256:77365f9e496ca3ca83fd0b6aebe3affcc41d40c25818a26b7dc5b87285427635 for postgres:13 ... [0;m[0KWaiting for services to be up and running... [0;m [0;33m*** WARNING:[0;m Service runner-6oEdkxQQ-project-985-concurrent-0-postgres-0 probably didn't start properly. Health check error: ContainerCreate: Error response from daemon: Conflict. The container name "/runner-6oEdkxQQ-project-985-concurrent-0-postgres-0-wait-for-service" is already in use by container "5bfaad5d00864120e0c10b9e473267016b5000bd864c5b274b38421b9d8e9600". You have to remove (or rename) that container to be able to reuse that name. (executor_docker.go:1254:0s) Service container logs: 2022-03-15T09:26:53.786890401Z The files belonging to this database system will be owned by user "postgres". 2022-03-15T09:26:53.786922833Z This user must also own the server process. 2022-03-15T09:26:53.786925793Z 2022-03-15T09:26:53.786927983Z The database cluster will be initialized with locale "en_US.utf8". 2022-03-15T09:26:53.786930383Z The default database encoding has accordingly been set to "UTF8". 2022-03-15T09:26:53.786932623Z The default text search configuration will be set to "english". 2022-03-15T09:26:53.786934843Z 2022-03-15T09:26:53.786936803Z Data page checksums are disabled. 2022-03-15T09:26:53.786938853Z 2022-03-15T09:26:53.786940823Z fixing permissions on existing directory /var/lib/postgresql/data ... ok 2022-03-15T09:26:53.787254889Z creating subdirectories ... ok 2022-03-15T09:26:53.787287269Z selecting dynamic shared memory implementation ... posix 2022-03-15T09:26:53.805179182Z selecting default max_connections ... 100 2022-03-15T09:26:53.827613320Z selecting default shared_buffers ... 128MB 2022-03-15T09:26:53.946858148Z selecting default time zone ... Etc/UTC 2022-03-15T09:26:53.968487110Z creating configuration files ... ok 2022-03-15T09:26:54.078694515Z running bootstrap script ... ok [0;33m*********[0;m [0KPulling docker image python:3.8 ... [0;m[0KUsing docker image sha256:52bb9574949f3991ed435968cbb3b68b7b3ab3d041633ad40866ee447896c176 for python:3.8 ... [0;msection_end:1647336416:prepare_executor [0Ksection_start:1647336416:prepare_script [0KRunning on runner-6oEdkxQQ-project-985-concurrent-0 via gitlab-runner... section_end:1647336427:prepare_script [0Ksection_start:1647336427:get_sources [0K[32;1mFetching changes...[0;m Reinitialized existing Git repository in /builds/j.michal/grady/.git/ [32;1mChecking out 407bd0d1 as jakob.dieterle-master-patch-13835...[0;m Removing .pipenv/ [32;1mSkipping Git submodules setup[0;m section_end:1647336474:get_sources [0Ksection_start:1647336474:restore_cache [0K[32;1mChecking cache for test_pytest-4...[0;m No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.[0;m [32;1mSuccessfully extracted cache[0;m section_end:1647336479:restore_cache [0Ksection_start:1647336479:download_artifacts [0K[32;1mDownloading artifacts for build_test_env (838350)...[0;m Downloading artifacts from coordinator... ok [0;m id[0;m=838350 responseStatus[0;m=200 OK token[0;m=MDbp1Tdx [0;33mWARNING: .pipenv/venvs/grady-BcvZijDT/bin/python: chmod .pipenv/venvs/grady-BcvZijDT/bin/python: no such file or directory (suppressing repeats)[0;m section_end:1647336498:download_artifacts [0Ksection_start:1647336498:build_script [0K[32;1m$ pip install pipenv[0;m Collecting pipenv Using cached pipenv-2022.1.8-py2.py3-none-any.whl (3.6 MB) Collecting virtualenv Using cached virtualenv-20.13.3-py2.py3-none-any.whl (8.7 MB) Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.8/site-packages (from pipenv) (57.5.0) Requirement already satisfied: pip>=18.0 in /usr/local/lib/python3.8/site-packages (from pipenv) (21.2.4) Collecting certifi Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB) Collecting virtualenv-clone>=0.2.5 Using cached virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB) Collecting platformdirs<3,>=2 Using cached platformdirs-2.5.1-py3-none-any.whl (14 kB) Collecting filelock<4,>=3.2 Using cached filelock-3.6.0-py3-none-any.whl (10.0 kB) Collecting distlib<1,>=0.3.1 Using cached distlib-0.3.4-py2.py3-none-any.whl (461 kB) Collecting six<2,>=1.9.0 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Installing collected packages: six, platformdirs, filelock, distlib, virtualenv-clone, virtualenv, certifi, pipenv Successfully installed certifi-2021.10.8 distlib-0.3.4 filelock-3.6.0 pipenv-2022.1.8 platformdirs-2.5.1 six-1.16.0 virtualenv-20.13.3 virtualenv-clone-0.5.7 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 21.2.4; however, version 22.0.4 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. [32;1m$ VENV=$(pipenv --venv)[0;m [32;1m$ source $VENV/bin/activate[0;m [32;1m$ pytest --cov --ds=grady.settings.test core/tests[0;m ============================= test session starts ============================== platform linux -- Python 3.8.12, pytest-6.1.2, py-1.10.0, pluggy-0.13.1 django: settings: grady.settings.test (from option) rootdir: /builds/j.michal/grady plugins: django-constance-2.7.0, django-3.10.0, forked-1.3.0, xdist-2.1.0, Faker-4.1.8, cov-2.10.1 collected 164 items core/tests/test_access_rights.py ............. [ 7%] core/tests/test_assignment_views.py ......... [ 13%] core/tests/test_auth.py ...... [ 17%] core/tests/test_commands.py .. [ 18%] core/tests/test_configuration_viewset.py .... [ 20%] core/tests/test_examlist.py ...... [ 24%] core/tests/test_export.py ...... [ 28%] core/tests/test_factory.py ...... [ 31%] core/tests/test_feedback.py ...............................x... [ 53%] core/tests/test_import_views.py ... [ 54%] core/tests/test_labels.py .... [ 57%] core/tests/test_student_page.py ...................... [ 70%] core/tests/test_student_reviewer_viewset.py ........ [ 75%] core/tests/test_submissiontypeview.py ............ [ 82%] core/tests/test_tutor_api_endpoints.py ............. [ 90%] core/tests/test_user_account_views.py ............... [100%] =============================== warnings summary =============================== .pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/signals.py:3 /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/signals.py:3: RemovedInDjango40Warning: The providing_args argument is deprecated. As it is purely documentational, it has no replacement. If you rely on this argument as documentation, you can move the text to a code comment or docstring. config_updated = django.dispatch.Signal( .pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/django/utils/version.py:98 /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/django/utils/version.py:98: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. loose_version = LooseVersion(version) .pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/backends/database/models.py:19 /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/backends/database/models.py:19: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy(). verbose_name = _('constance') .pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/backends/database/models.py:20 /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/backends/database/models.py:20: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy(). verbose_name_plural = _('constances') .pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/admin.py:321 /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/admin.py:321: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy(). verbose_name_plural = _('config') core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/admin.py:191: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url(r'^$', core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/constance/admin.py:194: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url(r'^$', core/tests/test_access_rights.py: 41 warnings /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/rest_framework/routers.py:268: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). ret.append(url(regex, view, name=name)) core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/rest_framework/routers.py:343: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). root_url = url(r'^$', view, name=self.root_view_name) core/tests/test_access_rights.py: 42 warnings /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/rest_framework/urlpatterns.py:76: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). new_pattern = url(regex, view, kwargs, name) core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/rest_framework/urls.py:19: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url(r'^login/$', views.LoginView.as_view(template_name='rest_framework/login.html'), name='login'), core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/rest_framework/urls.py:20: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url(r'^logout/$', views.LogoutView.as_view(), name='logout'), core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:18: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url(r'^$', SummaryView.as_view(), name='summary'), core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:19: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url(r'^requests/$', RequestsView.as_view(), name='requests'), core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:20: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:25: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:30: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:35: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:40: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:45: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:50: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:55: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:60: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:65: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:70: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:75: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:80: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:85: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url(r'^profiling/$', ProfilingView.as_view(), name='profiling'), core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:86: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url(r'^cleardb/$', ClearDBView.as_view(), name='cleardb'), core/tests/test_access_rights.py::AccessRightsOfStudentAPIViewTests::test_reviewer_has_no_access /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/silk/urls.py:87: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path(). url( core/tests/test_assignment_views.py: 9 warnings core/tests/test_auth.py: 6 warnings core/tests/test_configuration_viewset.py: 4 warnings core/tests/test_export.py: 6 warnings core/tests/test_feedback.py: 35 warnings core/tests/test_import_views.py: 3 warnings core/tests/test_labels.py: 4 warnings core/tests/test_student_reviewer_viewset.py: 2 warnings core/tests/test_tutor_api_endpoints.py: 4 warnings core/tests/test_user_account_views.py: 15 warnings /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/whitenoise/base.py:115: UserWarning: No directory at: /builds/j.michal/grady/static/ warnings.warn(u"No directory at: {}".format(root)) core/tests/test_auth.py::AuthTests::test_get_token core/tests/test_auth.py::AuthTests::test_refresh_token core/tests/test_auth.py::AuthTests::test_refresh_token /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/rest_framework_jwt/utils.py:36: DeprecationWarning: The following fields will be removed in the future: `email` and `user_id`. warnings.warn( core/tests/test_export.py::ExportInstanceTest::test_can_access core/tests/test_export.py::ExportInstanceTest::test_data_is_correct core/tests/test_export.py::ExportJSONTest::test_can_access core/tests/test_export.py::ExportJSONTest::test_data_is_correct core/tests/test_export.py::ExportJSONAndSetPasswordsTest::test_can_access core/tests/test_export.py::ExportJSONAndSetPasswordsTest::test_data_contains_correct_password core/tests/test_import_views.py::ImportViewTest::test_can_not_submit_nothing core/tests/test_import_views.py::ImportViewTest::test_data_is_imported_correctly core/tests/test_import_views.py::ImportViewTest::test_will_fail_on_wrong_importer_version /builds/j.michal/grady/.pipenv/venvs/grady-BcvZijDT/lib/python3.8/site-packages/rest_framework/authentication.py:135: RemovedInDjango40Warning: Passing None for the middleware get_response argument is deprecated. check = CSRFCheck() core/tests/test_import_views.py::ImportViewTest::test_data_is_imported_correctly core/tests/test_import_views.py::ImportViewTest::test_will_fail_on_wrong_importer_version /builds/j.michal/grady/util/importer.py:118: DeprecationWarning: Function 'semver.match' is deprecated. Deprecated since version 2.10.0. This function will be removed in semver 3. Use the respective 'semver.VersionInfo.match' instead. if not (semver.match(hektor_version, RUSTY_HEKTOR_MIN_VER) and core/tests/test_import_views.py::ImportViewTest::test_data_is_imported_correctly /builds/j.michal/grady/util/importer.py:119: DeprecationWarning: Function 'semver.match' is deprecated. Deprecated since version 2.10.0. This function will be removed in semver 3. Use the respective 'semver.VersionInfo.match' instead. semver.match(hektor_version, RUSTY_HEKTOR_MAX_VER)): -- Docs: https://docs.pytest.org/en/stable/warnings.html ---------- coverage: platform linux, python 3.8.12-final-0 ----------- Name Stmts Miss Branch BrPart Cover -------------------------------------------------------------------------------- core/__init__.py 1 0 0 0 100% core/management/commands/replaceusernames.py 18 0 4 1 95% core/management/commands/usermod.py 17 3 6 1 74% core/models/__init__.py 11 0 0 0 100% core/models/assignment.py 57 3 6 2 92% core/models/exam_type.py 17 1 0 0 94% core/models/feedback.py 41 3 0 0 93% core/models/group.py 5 0 0 0 100% core/models/label.py 12 0 0 0 100% core/models/student_info.py 43 3 8 2 86% core/models/submission.py 32 2 0 0 94% core/models/submission_type.py 38 2 0 0 95% core/models/test.py 18 1 0 0 94% core/models/user_account.py 51 0 2 0 100% core/permissions.py 27 0 2 0 100% core/serializers/__init__.py 9 0 0 0 100% core/serializers/assignment.py 38 1 4 1 95% core/serializers/common_serializers.py 60 12 14 3 77% core/serializers/feedback.py 132 9 42 6 91% core/serializers/generic.py 10 0 4 0 100% core/serializers/group.py 6 0 0 0 100% core/serializers/label.py 6 0 0 0 100% core/serializers/student.py 33 0 0 0 100% core/serializers/submission.py 40 0 0 0 100% core/serializers/submission_type.py 36 12 4 0 60% core/serializers/tutor.py 35 0 2 0 100% core/signals.py 43 1 4 2 94% core/urls.py 25 0 0 0 100% core/views/__init__.py 7 0 0 0 100% core/views/assignment.py 83 17 16 3 76% core/views/common_views.py 244 74 68 7 65% core/views/export.py 36 0 4 0 100% core/views/feedback.py 70 6 16 3 90% core/views/group.py 8 0 0 0 100% core/views/importer.py 17 0 2 0 100% core/views/label.py 22 3 4 0 81% core/views/util.py 22 2 6 2 86% util/factories.py 94 13 40 5 85% -------------------------------------------------------------------------------- TOTAL 1464 168 258 38 85% =========== 163 passed, 1 xfailed, 214 warnings in 62.86s (0:01:02) ============ section_end:1647336571:build_script [0Ksection_start:1647336571:after_script [0Ksection_end:1647336572:after_script [0Ksection_start:1647336572:archive_cache [0K[32;1mCreating cache test_pytest-4...[0;m .coverage: found 1 matching files [0;m No URL provided, cache will be not uploaded to shared cache server. Cache will be stored only locally.[0;m [32;1mCreated cache[0;m section_end:1647336574:archive_cache [0Ksection_start:1647336574:upload_artifacts_on_success [0K[32;1mUploading artifacts...[0;m .coverage: found 1 matching files [0;m Uploading artifacts to coordinator... ok [0;m id[0;m=838356 responseStatus[0;m=201 Created token[0;m=Q4Ua7p97 section_end:1647336576:upload_artifacts_on_success [0K[32;1mJob succeeded [0;m