OCL API 2

Build: #1495 failed Changes by Sunny Aggarwal.

Stages & jobs

  1. Build

  2. Test

  3. Deploy for testing

    Requires a user to start manually
  4. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
6 minutes
Labels
None
Revisions
OCL API 2
438d2a60176e498a98449fd7af21f0372be89050 438d2a60176e498a98449fd7af21f0372be89050
OCL CI
fe5d9d08844d42b9b3fa6bac74d1f57056088b78 fe5d9d08844d42b9b3fa6bac74d1f57056088b78
Failing since
#1494 (Changes by Sunny Aggarwal.)
Fixed in
#1496 (Manual run from the stage: Release by Sunny Aggarwal.)
No failed test found. A possible compilation error occurred.

Responsible

Code commits

OCL API 2
Author Commit Message Commit date
Sunny Aggarwal. Sunny Aggarwal. 438d2a60176e498a98449fd7af21f0372be89050 438d2a60176e498a98449fd7af21f0372be89050 Fixing recursion in flat cascade query

Error summary for Run tests

The job generated some errors, drill down into the full build log for more details.

    test_resource_type ... ok
    test_resource_version_type ... ok
    test_source ... ok
    test_source_active_inactive_should_affect_children ... ok
    test_source_version_create_negative__same_version ... ok
    test_source_version_create_positive ... ok
    test_source_version_create_positive__same_version ... ok
    test_source_version_delete ... ok
core.sources.tests.tests.TasksTest
    test_index_source_concepts ... ok
    test_index_source_mappings ... ok
    test_seed_children_task ... ok
    test_seed_children_task_with_export ... ok
    test_update_source_active_concepts_count ... ok
    test_update_source_active_mappings_count ... ok
    test_update_validation_schema_failure ... ok
    test_update_validation_schema_success ... ok
core.tasks.tests.TaskViewTest
    test_get_200 ... ok
    test_get_400 ... ok
    test_get_404 ... ok
core.users.tests.tests.TasksTest
    test_send_user_reset_password_email ... ok
    test_send_user_verification_email ... ok
core.users.tests.tests.TokenAuthenticationViewTest
    test_login ... ok
core.users.tests.tests.UserLogoViewTest
    test_post_200 ... ok
core.users.tests.tests.UserProfileTest
    test_auth_groups ... ok
    test_create_userprofile_positive ... ok
    test_deactivate ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-02-03 07:24:50.080595) while time zone support is active.
  warnings.warn(
ok
    test_delete ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-02-03 07:24:50.092612) while time zone support is active.
  warnings.warn(
ok
    test_email_verification_url ... ok
    test_full_name ... ok
    test_get_search_document ... ok
    test_get_token ... ok
    test_is_valid_auth_group ... ok
    test_mark_verified ... ok
    test_mnemonic ... ok
    test_name ... ok
    test_public_collections ... ok
    test_public_sources ... ok
    test_reset_password_url ... ok
    test_resource_type ... ok
    test_send_reset_password_email ... ok
    test_send_verification_email ... ok
    test_set_token ... ok
    test_status ... ok
    test_update_password ... ok
    test_user ... ok
    test_user_active_inactive_should_affect_children ... ok
    test_verify ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-02-03 07:24:51.055401) while time zone support is active.
  warnings.warn(
ok
core.value_sets.tests.ValueSetTest
    test_can_create_empty ... ok
    test_can_create_with_compose ... ok
    test_can_update_empty ... ok
    test_create_with_filter_and_concept ... ok
    test_create_with_filter_and_system ... ok
    test_expand ... ok
    test_public_can_find_globally ... ok
    test_public_can_find_globally_without_compose ... ok
    test_public_can_view ... ok
    test_unable_to_represent_as_fhir ... Traceback (most recent call last):
  File "/code/core/value_sets/serializers.py", line 248, in to_representation
    IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
  File "/code/core/common/serializers.py", line 133, in include_ocl_identifier
    return IdentifierSerializer.parse_identifier(ident)
  File "/code/core/common/serializers.py", line 80, in parse_identifier
    raise ValidationError(
rest_framework.exceptions.ValidationError: [ErrorDetail(string='Identifier must be in a format: /{owner_type}/{owner_id}/{resourceType}/{resource_id}/, given: /invalid/uri', code='invalid')]
Failed to represent "/invalid/uri" as ValueSet
ok
    test_update_with_compose ... ok
    test_validate_code ... ok
    test_validate_code_globally ... ok
    test_validate_code_globally_negative ... ok
    test_validate_code_negative ... ok

======================================================================
FAIL: test_clone_with_cascade (core.sources.tests.tests.SourceTest)
test_clone_with_cascade
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/sources/tests/tests.py", line 898, in test_clone_with_cascade
    self.assertEqual(source2.get_active_mappings().count(), 6)
AssertionError: 3 != 6

----------------------------------------------------------------------
Ran 742 tests in 161.343s

FAILED (failures=1, skipped=3)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_es_1 ...
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ... done
Removing network ocl-oclapi2-rt_default
Removing volume ocl-oclapi2-rt_postgres-data
Removing volume ocl-oclapi2-rt_es-data