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 Google Sheets: fixed issue with timeout #13291

Merged
merged 2 commits into from
May 27, 2022

Conversation

bazarnov
Copy link
Collaborator

What

Resolving: https://github.com/airbytehq/oncall/issues/242

How

  • increased the default timeout for opened socket from 60 sec to 10 mins.

🚨 User Impact 🚨

No user impact expected.

Pre-merge Checklist

Expand the relevant checklist and delete the others.

Updating a connector

Community member or Airbyter

  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here

@bazarnov bazarnov requested a review from evantahler May 27, 2022 18:36
@bazarnov bazarnov self-assigned this May 27, 2022
@github-actions github-actions bot added the area/connectors Connector related issues label May 27, 2022
@bazarnov bazarnov requested a review from brianjlai May 27, 2022 18:37
Copy link
Contributor

@evantahler evantahler left a comment

Choose a reason for hiding this comment

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

That's a shame that it is required, but 👍
I agree that there's not really a good way to test this.

@airbytehq airbytehq deleted a comment from codecov bot May 27, 2022
@bazarnov
Copy link
Collaborator Author

bazarnov commented May 27, 2022

/test connector=connectors/source-google-sheets

🕑 connectors/source-google-sheets https://github.com/airbytehq/airbyte/actions/runs/2398207948
✅ connectors/source-google-sheets https://github.com/airbytehq/airbyte/actions/runs/2398207948
Python tests coverage:

Name                                                 Stmts   Miss  Cover
------------------------------------------------------------------------
source_acceptance_test/utils/__init__.py                 6      0   100%
source_acceptance_test/tests/__init__.py                 4      0   100%
source_acceptance_test/__init__.py                       2      0   100%
source_acceptance_test/tests/test_full_refresh.py       52      2    96%
source_acceptance_test/utils/asserts.py                 37      2    95%
source_acceptance_test/config.py                        77      6    92%
source_acceptance_test/utils/json_schema_helper.py     105     13    88%
source_acceptance_test/tests/test_incremental.py       121     25    79%
source_acceptance_test/utils/common.py                  80     17    79%
source_acceptance_test/tests/test_core.py              294    106    64%
source_acceptance_test/utils/compare.py                 62     23    63%
source_acceptance_test/base.py                          10      4    60%
source_acceptance_test/utils/connector_runner.py       110     48    56%
------------------------------------------------------------------------
TOTAL                                                  960    246    74%
Name                                                Stmts   Miss  Cover
-----------------------------------------------------------------------
google_sheets_source/models/spreadsheet_values.py      12      0   100%
google_sheets_source/models/spreadsheet.py             34      0   100%
google_sheets_source/models/__init__.py                 2      0   100%
google_sheets_source/__init__.py                        2      0   100%
google_sheets_source/helpers.py                       139     26    81%
google_sheets_source/client.py                         22      5    77%
google_sheets_source/google_sheets_source.py          106     84    21%
-----------------------------------------------------------------------
TOTAL                                                 317    115    64%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/plugin.py:56: Skipping TestIncremental.test_two_sequential_reads because not found in the config
================== 23 passed, 1 skipped in 169.00s (0:02:48) ===================

@bazarnov
Copy link
Collaborator Author

That's a shame that it is required, but 👍 I agree that there's not really a good way to test this.

I think this was done intentionally (default timeout == 60 sec) to avoid long hangs if the connection was aborted for some other reason. For our use-case (Airbyte), we've got other mechanisms to raise connector problem, if something goes wrong. So, this was the obvious fix, strange we do it just now and nobody faced that in the past.

@bazarnov
Copy link
Collaborator Author

bazarnov commented May 27, 2022

/publish connector=connectors/source-google-sheets

🕑 connectors/source-google-sheets https://github.com/airbytehq/airbyte/actions/runs/2398281924
🚀 Successfully published connectors/source-google-sheets
🚀 Auto-bumped version for connectors/source-google-sheets
✅ connectors/source-google-sheets https://github.com/airbytehq/airbyte/actions/runs/2398281924

@bazarnov bazarnov closed this May 27, 2022
@bazarnov bazarnov reopened this May 27, 2022
@airbytehq airbytehq deleted a comment from codecov bot May 27, 2022
@bazarnov bazarnov merged commit 57a34b2 into master May 27, 2022
@bazarnov bazarnov deleted the bazarnov/242-fix-check-read-default-timeout branch May 27, 2022 19:24
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets May 27, 2022 19:24 Inactive
jscottpolevault pushed a commit to jscottpolevault/airbyte that referenced this pull request Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants