Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(source-google-ads): fix attribute error on check connection #42971

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

darynaishchenko
Copy link
Collaborator

@darynaishchenko darynaishchenko commented Aug 2, 2024

What

resolved: https://github.com/airbytehq/oncall/issues/6141

How

We should handle AirbyteTracedException on check separate from Google Ads Exception to avoid attribute error when AirbyteTracedException is passed to traced_exception method.

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@darynaishchenko darynaishchenko self-assigned this Aug 2, 2024
@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/google-ads labels Aug 2, 2024
Copy link

vercel bot commented Aug 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Aug 2, 2024 4:58pm

@darynaishchenko
Copy link
Collaborator Author

darynaishchenko commented Aug 2, 2024

/approve-regression-tests

Check job output.

✅ Approving regression tests

@@ -225,6 +225,8 @@ def check_connection(self, logger: logging.Logger, config: Mapping[str, Any]) ->
customer_id=customer.id,
login_customer_id=customer.login_customer_id,
)
except AirbyteTracedException as e:
raise e
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little bit worried about losing the underlying context here, probably we should raise something like:

raise e from e

But if it is OK, and we don't lose the context of the AirbyteTracedException raised prior, we should be fine with this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated

Copy link
Contributor

@maxi297 maxi297 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@darynaishchenko
Copy link
Collaborator Author

darynaishchenko commented Aug 2, 2024

/approve-regression-tests

Check job output.

✅ Approving regression tests

@darynaishchenko darynaishchenko merged commit 602767a into master Aug 2, 2024
38 checks passed
@darynaishchenko darynaishchenko deleted the daryna/source-google-ads/attribute-error branch August 2, 2024 17:35
BenGalewsky pushed a commit to BenGalewsky/airbyte that referenced this pull request Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/google-ads
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants