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

🐛 Python CDK: fix StopIteration error for check_availability #20429

Merged
merged 4 commits into from
Dec 13, 2022

Conversation

bazarnov
Copy link
Collaborator

@bazarnov bazarnov commented Dec 13, 2022

What

Fixed missing handling of StopIteration after: #19977


How

  • added try/except statement to handle StopIteration error for empty streams

@bazarnov bazarnov requested a review from a team as a code owner December 13, 2022 12:35
@bazarnov bazarnov self-assigned this Dec 13, 2022
@bazarnov
Copy link
Collaborator Author

bazarnov commented Dec 13, 2022

/publish-cdk dry-run=true

🕑 https://github.com/airbytehq/airbyte/actions/runs/3685443589
https://github.com/airbytehq/airbyte/actions/runs/3685443589

@octavia-squidington-iv octavia-squidington-iv added the CDK Connector Development Kit label Dec 13, 2022
Copy link
Contributor

@erohmensing erohmensing left a comment

Choose a reason for hiding this comment

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

Added a test and confirmed that the test fails on master but passes with your fix. LGTM, thank you for catching!

@bazarnov
Copy link
Collaborator Author

bazarnov commented Dec 13, 2022

/publish-cdk dry-run=false

🕑 https://github.com/airbytehq/airbyte/actions/runs/3686918469
https://github.com/airbytehq/airbyte/actions/runs/3686918469

@bazarnov bazarnov merged commit 4e9b014 into master Dec 13, 2022
@bazarnov bazarnov deleted the baz/fix-cdk-stopiteration branch December 13, 2022 15:54
erohmensing added a commit that referenced this pull request Dec 15, 2022
erohmensing added a commit that referenced this pull request Dec 15, 2022
…hanges (#20523)

* Revert "source-github: move known error handling to GithubAvailabilityStrategy (#19978)"

This reverts commit f97db17.

* Revert "🐛 Python CDK: fix `StopIteration` error for `check_availability` (#20429)"

This reverts commit 4e9b014.

* Revert "CDK: `AbstractSource.read()` skips syncing stream if its unavailable (add `AvailabilityStrategy` concept) (#19977)"

This reverts commit 55a3288.

* Restore changelog entries

* bump CDK version

* Bump Github version

* Re-add removed dependencies

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit team/connectors-python
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

5 participants