Skip to content

Conversation

@aliu39
Copy link
Member

@aliu39 aliu39 commented May 6, 2025

Ref #90986
The google-genai SDK is to be used in #90982, which upgrades UF spam filters to use a gemini model. To resolve dependency conflicts, we need to bump

@aliu39 aliu39 requested a review from a team as a code owner May 6, 2025 17:15
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 6, 2025
@aliu39 aliu39 requested a review from a team May 6, 2025 17:17
@codecov
Copy link

codecov bot commented May 6, 2025

❌ 264 Tests Failed:

Tests completed Failed Passed Skipped
330 264 66 17
View the top 3 failed test(s) by shortest run time
::tests.sentry.api.endpoints.test_system_options
Stack Traces | 0s run time
#x1B[1m#x1B[.../api/endpoints/test_system_options.py#x1B[0m:9: in <module>
    class SystemOptionsTest(APITestCase):
#x1B[1m#x1B[.../api/endpoints/test_system_options.py#x1B[0m:10: in SystemOptionsTest
    url = reverse("sentry-api-0-system-options")
#x1B[1m#x1B[31m.venv/lib/python3.13.../django/urls/base.py#x1B[0m:88: in reverse
    return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
#x1B[1m#x1B[31m.venv/lib/python3.13.../django/urls/resolvers.py#x1B[0m:749: in _reverse_with_prefix
    self._populate()
#x1B[1m#x1B[31m.venv/lib/python3.13.../django/urls/resolvers.py#x1B[0m:548: in _populate
    for url_pattern in reversed(self.url_patterns):
#x1B[1m#x1B[31m.venv/lib/python3.13.../django/utils/functional.py#x1B[0m:47: in __get__
    res = instance.__dict__[self.name] = self.func(instance)
#x1B[1m#x1B[31m.venv/lib/python3.13.../django/urls/resolvers.py#x1B[0m:718: in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
#x1B[1m#x1B[31m.venv/lib/python3.13.../django/utils/functional.py#x1B[0m:47: in __get__
    res = instance.__dict__[self.name] = self.func(instance)
#x1B[1m#x1B[31m.venv/lib/python3.13.../django/urls/resolvers.py#x1B[0m:711: in urlconf_module
    return import_module(self.urlconf_name)
#x1B[1m#x1B[.../hostedtoolcache/Python/3.13.1.../x64/lib/python3.13/importlib/__init__.py#x1B[0m:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1387: in _gcd_import
    ???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
    ???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
    ???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
    ???
#x1B[1m#x1B[31m<frozen importlib._bootstrap_external>#x1B[0m:1026: in exec_module
    ???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:488: in _call_with_frames_removed
    ???
#x1B[1m#x1B[.../sentry/conf/urls.py#x1B[0m:3: in <module>
    from sentry.web.urls import urlpatterns
#x1B[1m#x1B[.../sentry/web/urls.py#x1B[0m:20: in <module>
    from sentry.users.web import accounts
#x1B[1m#x1B[.../users/web/accounts.py#x1B[0m:24: in <module>
    from sentry.users.services.lost_password_hash import lost_password_hash_service
#x1B[1m#x1B[.../services/lost_password_hash/__init__.py#x1B[0m:1: in <module>
    from .model import *  # noqa
#x1B[1m#x1B[.../services/lost_password_hash/model.py#x1B[0m:15: in <module>
    class RpcLostPasswordHash(RpcModel):
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_model_construction.py#x1B[0m:110: in __new__
    config_wrapper = ConfigWrapper.for_model(bases, namespace, kwargs)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:144: in for_model
    return cls(config_new)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:96: in __init__
    self.config_dict = prepare_config(config)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:327: in prepare_config
    check_deprecated(config_dict)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:373: in check_deprecated
    warnings.warn(message, UserWarning)
#x1B[1m#x1B[31mE   UserWarning: Valid config keys have changed in V2:#x1B[0m
#x1B[1m#x1B[31mE   * 'orm_mode' has been renamed to 'from_attributes'#x1B[0m
::tests.sentry.backup.test_coverage
Stack Traces | 0s run time
#x1B[1m#x1B[.../sentry/backup/test_coverage.py#x1B[0m:12: in <module>
    from tests.sentry.backup.test_exhaustive import EXHAUSTIVELY_TESTED, UNIQUENESS_TESTED
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1360: in _find_and_load
    ???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:1331: in _find_and_load_unlocked
    ???
#x1B[1m#x1B[31m<frozen importlib._bootstrap>#x1B[0m:935: in _load_unlocked
    ???
#x1B[1m#x1B[31m.venv/lib/python3.13.../_pytest/assertion/rewrite.py#x1B[0m:178: in exec_module
    exec(co, module.__dict__)
#x1B[1m#x1B[.../sentry/backup/test_exhaustive.py#x1B[0m:9: in <module>
    from sentry.backup.imports import (
#x1B[1m#x1B[.../sentry/backup/imports.py#x1B[0m:29: in <module>
    from sentry.backup.services.import_export.model import (
#x1B[1m#x1B[.../services/import_export/__init__.py#x1B[0m:1: in <module>
    from .model import *  # noqa
#x1B[1m#x1B[.../services/import_export/model.py#x1B[0m:25: in <module>
    class RpcFilter(RpcModel):
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_model_construction.py#x1B[0m:110: in __new__
    config_wrapper = ConfigWrapper.for_model(bases, namespace, kwargs)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:144: in for_model
    return cls(config_new)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:96: in __init__
    self.config_dict = prepare_config(config)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:327: in prepare_config
    check_deprecated(config_dict)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:373: in check_deprecated
    warnings.warn(message, UserWarning)
#x1B[1m#x1B[31mE   UserWarning: Valid config keys have changed in V2:#x1B[0m
#x1B[1m#x1B[31mE   * 'orm_mode' has been renamed to 'from_attributes'#x1B[0m
::tests.sentry.relocation.api.endpoints.test_details
Stack Traces | 0s run time
#x1B[1m#x1B[.../api/endpoints/test_details.py#x1B[0m:5: in <module>
    from sentry.relocation.utils import OrderedTask
#x1B[1m#x1B[.../sentry/relocation/utils.py#x1B[0m:30: in <module>
    from sentry.backup.exports import ExportCheckpointer, ExportCheckpointerError
#x1B[1m#x1B[.../sentry/backup/exports.py#x1B[0m:24: in <module>
    from sentry.backup.services.import_export.model import (
#x1B[1m#x1B[.../services/import_export/__init__.py#x1B[0m:1: in <module>
    from .model import *  # noqa
#x1B[1m#x1B[.../services/import_export/model.py#x1B[0m:25: in <module>
    class RpcFilter(RpcModel):
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_model_construction.py#x1B[0m:110: in __new__
    config_wrapper = ConfigWrapper.for_model(bases, namespace, kwargs)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:144: in for_model
    return cls(config_new)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:96: in __init__
    self.config_dict = prepare_config(config)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:327: in prepare_config
    check_deprecated(config_dict)
#x1B[1m#x1B[31m.venv/lib/python3.13.../pydantic/_internal/_config.py#x1B[0m:373: in check_deprecated
    warnings.warn(message, UserWarning)
#x1B[1m#x1B[31mE   UserWarning: Valid config keys have changed in V2:#x1B[0m
#x1B[1m#x1B[31mE   * 'orm_mode' has been renamed to 'from_attributes'#x1B[0m

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@aliu39 aliu39 changed the title ref(feedback/llm): add google-genai and bump openai==1.77.0 and pydantic>=2 ref(feedback/llm): add google-genai and bump openai==1.77.0 and pydantic==2.11.4 May 6, 2025
@asottile-sentry
Copy link
Contributor

so.... we cannot bump to pydantic 2 -- so this might be dead in the water.

it was attempted a few times and resulted in incidents (since it sorta brings hybrid cloud down)

@aliu39 aliu39 closed this May 6, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants