airbytehq/airbyte

update sentry client in airbyte-ci/connectors/pipelines

Open

#52.676 geöffnet am 31. Jan. 2025

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (3.358 Forks)batch import
area/airbyte-cigood first issueteam/extensibilityteam/triage

Repository-Metriken

Stars
 (12.832 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2h 41m) (1.000 gemergte PRs in 30 T)

Beschreibung

Problem

We have this warning show up in build logs whenever we build airbyte-ci/pipelines for testing:

  /airbyte/airbyte-ci/connectors/pipelines/pipelines/helpers/sentry_utils.py:41: DeprecationWarning: sentry_sdk.configure_scope is deprecated and will be removed in the next major version. Please consult our migration guide to learn how to migrate to the new API: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x#scope-configuring
    with sentry_sdk.configure_scope() as scope:

To reproduce this, you can fetch the repo and then:

cd airbyte-ci/connectors/pipelines
poetry install 
poetry run pytest .

Solution

Upgrade poetry client to the recent version and clean up the code that sets sentry up. This should be a good first issue.

Contributor Guide