Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5395

Flaky: Auth OIDC tests failing due to PydanticImportError [1]

    • Type: Icon: Build Failure Build Failure
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Flaky Test

      https://spruce.mongodb.com/version/649f3b280ae6063fd2749c0c/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

      [2023/06/30 20:59:32.275] Traceback (most recent call last):
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/oidc_write_orchestration.py", line 12, in <module>
      [2023/06/30 20:59:32.275]     from utils import get_secrets, MOCK_ENDPOINT, DEFAULT_CLIENT
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/utils.py", line 10, in <module>
      [2023/06/30 20:59:32.275]     from aws_handle_oidc_creds import get_id_token, MOCK_ENDPOINT
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_aws/lib/aws_handle_oidc_creds.py", line 12, in <module>
      [2023/06/30 20:59:32.275]     from pyop.authz_state import AuthorizationState
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/authoidcvenv/lib/python3.11/site-packages/pyop/authz_state.py", line 5, in <module>
      [2023/06/30 20:59:32.275]     from oic.extension.message import TokenIntrospectionResponse
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/authoidcvenv/lib/python3.11/site-packages/oic/extension/message.py", line 10, in <module>
      [2023/06/30 20:59:32.275]     from oic.oauth2.message import OPTIONAL_LIST_OF_SP_SEP_STRINGS
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/authoidcvenv/lib/python3.11/site-packages/oic/oauth2/__init__.py", line 20, in <module>
      [2023/06/30 20:59:32.275]     from oic.oauth2.base import PBase
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/authoidcvenv/lib/python3.11/site-packages/oic/oauth2/base.py", line 16, in <module>
      [2023/06/30 20:59:32.275]     from oic.utils.settings import PyoidcSettings
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/authoidcvenv/lib/python3.11/site-packages/oic/utils/settings.py", line 20, in <module>
      [2023/06/30 20:59:32.275]     from pydantic import BaseSettings
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/authoidcvenv/lib/python3.11/site-packages/pydantic/__init__.py", line 206, in __getattr__
      [2023/06/30 20:59:32.275]     return _getattr_migration(attr_name)
      [2023/06/30 20:59:32.275]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [2023/06/30 20:59:32.275]   File "/data/mci/3f70a37069f0cee11cbfa4aabb039982/drivers-tools/.evergreen/auth_oidc/authoidcvenv/lib/python3.11/site-packages/pydantic/_migration.py", line 279, in wrapper
      [2023/06/30 20:59:32.275]     raise PydanticImportError(
      [2023/06/30 20:59:32.275] pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.0/migration/#basesettings-has-moved-to-pydantic-settings for more details.
      [2023/06/30 20:59:32.326] For further information visit https://errors.pydantic.dev/2.0/u/import-error
      [2023/06/30 20:59:32.326] Command 'shell.exec' in function 'bootstrap oidc' (step 2.2 of 5) failed: shell script encountered problem: exit code 1.
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            warren.james@mongodb.com Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: