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

Source twilio: fix generating date ranges #19479

Merged
merged 13 commits into from
Nov 29, 2022

Conversation

davydov-d
Copy link
Collaborator

What

https://github.com/airbytehq/oncall/issues/1046

How

When generating datetime ranges we should take into account the cursor field type - in case it is of date type, the stream used to yield extra slice where start date was greater than end date. Now this is fixed

@octavia-squidington-iv octavia-squidington-iv added area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/twilio labels Nov 16, 2022
@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 16, 2022

/test connector=connectors/source-twilio

🕑 connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3480174976
❌ connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3480174976
🐛 https://gradle.com/s/2u66lzuqqnwga

Build Failed

Test summary info:

	 =========================== short test summary info ============================
	 ERROR unit_tests/test_streams.py
	 !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
	 �[31m=============================== �[31m�[1m1 error�[0m�[31m in 1.56s�[0m�[31m ===============================�[0m

@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 16, 2022

/test connector=connectors/source-twilio

🕑 connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3482165597
❌ connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3482165597
🐛 https://gradle.com/s/5ygly7qgnrwxc

Build Failed

Test summary info:

=========================== short test summary info ============================
ERROR test_incremental.py::TestIncremental::test_state_with_abnormally_large_values[inputs0]
ERROR test_incremental.py::TestIncremental::test_state_with_abnormally_large_values[inputs1]
================== 32 passed, 2 errors in 1373.59s (0:22:53) ===================

@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 21, 2022

/test connector=connectors/source-twilio

🕑 connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3513325524
❌ connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3513325524
🐛 https://gradle.com/s/tmzjqylid2ewq

Build Failed

Test summary info:

=========================== short test summary info ============================
FAILED test_core.py::TestBasicRead::test_read[inputs0] - Failed: Stream avail...
================== 1 failed, 33 passed in 1097.89s (0:18:17) ===================

@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 21, 2022

/test connector=connectors/source-twilio

🕑 connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3513657348
✅ connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3513657348
Python tests coverage:

Name                        Stmts   Miss  Cover
-----------------------------------------------
source_twilio/auth.py           8      0   100%
source_twilio/__init__.py       2      0   100%
source_twilio/source.py        28      2    93%
source_twilio/streams.py      279     21    92%
-----------------------------------------------
TOTAL                         317     23    93%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          12      4    67%   16-19
	 source_acceptance_test/config.py                       139      5    96%   87, 93, 235, 239-240
	 source_acceptance_test/conftest.py                     196     92    53%   35, 41-43, 48, 54, 60, 66, 72-74, 93, 98-100, 106-108, 114-115, 120-121, 126, 132, 141-150, 156-161, 176, 200, 231, 237, 243-248, 256-261, 269-282, 287-293, 300-311, 318-334
	 source_acceptance_test/plugin.py                        69     25    64%   22-23, 31, 36, 120-140, 144-148
	 source_acceptance_test/tests/test_core.py              398    111    72%   53, 58, 87-95, 100-107, 111-112, 116-117, 299, 337-354, 363-371, 375-380, 386, 419-424, 462-469, 512-514, 517, 582-590, 602-605, 610, 666-667, 673, 676, 712-722, 735-760
	 source_acceptance_test/tests/test_incremental.py       158     14    91%   52-59, 64-77, 240
	 source_acceptance_test/utils/asserts.py                 37      2    95%   57-58
	 source_acceptance_test/utils/common.py                  94     10    89%   16-17, 32-38, 72, 75
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       112     50    55%   23-26, 32, 36, 39-68, 71-73, 76-78, 81-83, 86-88, 91-93, 96-114, 148-150
	 source_acceptance_test/utils/json_schema_helper.py     107     13    88%   30-31, 38, 41, 65-68, 96, 120, 192-194
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1563    349    78%

Build Passed

Test summary info:

All Passed

@davydov-d
Copy link
Collaborator Author

/test connector=connectors/source-twilio

1 similar comment
@davydov-d
Copy link
Collaborator Author

/test connector=connectors/source-twilio

@davydov-d
Copy link
Collaborator Author

/test connector=connectors/source-twilio

@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 28, 2022

/test connector=connectors/source-twilio

🕑 connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3563209655
❌ connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3563209655
🐛 https://gradle.com/s/mdjn3q54xfarm

Build Failed

Test summary info:

=========================== short test summary info ============================
FAILED test_core.py::TestBasicRead::test_read[inputs0] - Failed: Stream avail...
================== 1 failed, 33 passed in 1263.81s (0:21:03) ===================

@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 29, 2022

/test connector=connectors/source-twilio

🕑 connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3573232976
❌ connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3573232976
🐛 https://gradle.com/s/smx6pl3qosddq

Build Failed

Test summary info:

=========================== short test summary info ============================
FAILED test_core.py::TestBasicRead::test_read[inputs0] - Failed: Stream avail...
================== 1 failed, 33 passed in 1331.13s (0:22:11) ===================

@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 29, 2022

/test connector=connectors/source-twilio

🕑 connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3573970077
❌ connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3573970077
🐛 https://gradle.com/s/i2jdk4crcjbfu

Build Failed

Test summary info:

=========================== short test summary info ============================
FAILED test_core.py::TestBasicRead::test_read[inputs0] - Failed: Stream usage...
================== 1 failed, 33 passed in 1229.82s (0:20:29) ===================

@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 29, 2022

/test connector=connectors/source-twilio

🕑 connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3574526039
✅ connectors/source-twilio https://github.com/airbytehq/airbyte/actions/runs/3574526039
Python tests coverage:

Name                        Stmts   Miss  Cover
-----------------------------------------------
source_twilio/auth.py           8      0   100%
source_twilio/__init__.py       2      0   100%
source_twilio/source.py        28      2    93%
source_twilio/streams.py      279     21    92%
-----------------------------------------------
TOTAL                         317     23    93%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          12      4    67%   16-19
	 source_acceptance_test/config.py                       139      5    96%   87, 93, 235, 239-240
	 source_acceptance_test/conftest.py                     196     92    53%   35, 41-43, 48, 54, 60, 66, 72-74, 93, 98-100, 106-108, 114-115, 120-121, 126, 132, 141-150, 156-161, 176, 200, 231, 237, 243-248, 256-261, 269-282, 287-293, 300-311, 318-334
	 source_acceptance_test/plugin.py                        69     25    64%   22-23, 31, 36, 120-140, 144-148
	 source_acceptance_test/tests/test_core.py              398    111    72%   53, 58, 87-95, 100-107, 111-112, 116-117, 299, 337-354, 363-371, 375-380, 386, 419-424, 462-469, 512-514, 517, 582-590, 602-605, 610, 666-667, 673, 676, 712-722, 735-760
	 source_acceptance_test/tests/test_incremental.py       158     14    91%   52-59, 64-77, 240
	 source_acceptance_test/utils/asserts.py                 37      2    95%   57-58
	 source_acceptance_test/utils/common.py                  94     10    89%   16-17, 32-38, 72, 75
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       112     50    55%   23-26, 32, 36, 39-68, 71-73, 76-78, 81-83, 86-88, 91-93, 96-114, 148-150
	 source_acceptance_test/utils/json_schema_helper.py     107     13    88%   30-31, 38, 41, 65-68, 96, 120, 192-194
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1563    349    78%

Build Passed

Test summary info:

All Passed

Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

Approving changes made to airbyte-integrations/connectors/source-twilio/acceptance-test-config.yml on behalf of the connector operations team.

Comment on lines +22 to +35
- name: "alerts"
bypass_reason: "alerts are transient - they emerge and disappear from time to time"
- name: "dependent_phone_numbers"
bypass_reason: "stream not filled yet"
- name: "conference_participants"
bypass_reason: "stream not filled yet"
- name: "available_phone_numbers_local"
bypass_reason: "very volatile data"
- name: "available_phone_numbers_mobile"
bypass_reason: "very volatile data"
- name: "available_phone_numbers_toll_free"
bypass_reason: "very volatile data"
- name: "usage_records"
bypass_reason: "very volatile data"
Copy link
Contributor

Choose a reason for hiding this comment

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

I logged an issue to get better seeding on this account: https://github.com/airbytehq/airbyte/issues/19876

@davydov-d
Copy link
Collaborator Author

davydov-d commented Nov 29, 2022

/publish connector=connectors/source-twilio

🕑 Publishing the following connectors:
connectors/source-twilio
https://github.com/airbytehq/airbyte/actions/runs/3575947189


Connector Did it publish? Were definitions generated?
connectors/source-twilio

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

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/twilio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants