Skip to content

πŸ› Source S3: Make Advanced Reader Options and Advanced Options truly Optional - #23669

Merged
Baz (bazarnov) merged 6 commits into
masterfrom
baz/source-s3-fix-readerr-options
Mar 3, 2023
Merged

Baz (bazarnov) merged 6 commits into
masterfrom
baz/source-s3-fix-readerr-options

Conversation

@bazarnov

Copy link
Copy Markdown
Contributor

What

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

🚨 User Impact 🚨

No impact is 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
    • Connector's bootstrap.md. See description and examples
    • 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

@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the area/documentation Improvements or additions to documentation label Mar 2, 2023
@bazarnov

Baz (bazarnov) commented Mar 2, 2023 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/source-s3

πŸ•‘ connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/4315100943
βœ… connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/4315100943
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
source_s3/source_files_abstract/storagefile.py                       23      0   100%
source_s3/source_files_abstract/spec.py                              55      0   100%
source_s3/source_files_abstract/formats/parquet_spec.py               9      0   100%
source_s3/source_files_abstract/formats/jsonl_spec.py                13      0   100%
source_s3/source_files_abstract/formats/csv_spec.py                  16      0   100%
source_s3/source_files_abstract/formats/avro_spec.py                  5      0   100%
source_s3/source.py                                                  27      0   100%
source_s3/exceptions.py                                              10      0   100%
source_s3/__init__.py                                                 2      0   100%
source_s3/source_files_abstract/formats/parquet_parser.py            64      2    97%
source_s3/source_files_abstract/formats/abstract_file_parser.py      41      2    95%
source_s3/stream.py                                                  43      3    93%
source_s3/s3file.py                                                  41      3    93%
source_s3/source_files_abstract/formats/avro_parser.py               39      3    92%
source_s3/source_files_abstract/file_info.py                         26      2    92%
source_s3/source_files_abstract/formats/jsonl_parser.py              53      5    91%
source_s3/source_files_abstract/source.py                            39      5    87%
source_s3/source_files_abstract/stream.py                           262     45    83%
source_s3/source_files_abstract/formats/csv_parser.py               127     22    83%
source_s3/s3_utils.py                                                20      4    80%
source_s3/utils.py                                                   31     10    68%
-------------------------------------------------------------------------------------
TOTAL                                                               946    106    89%
Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
source_s3/source_files_abstract/formats/parquet_spec.py               9      0   100%
source_s3/source_files_abstract/formats/jsonl_spec.py                13      0   100%
source_s3/source_files_abstract/formats/csv_spec.py                  16      0   100%
source_s3/source_files_abstract/formats/avro_spec.py                  5      0   100%
source_s3/s3_utils.py                                                20      0   100%
source_s3/__init__.py                                                 2      0   100%
source_s3/source_files_abstract/storagefile.py                       23      1    96%
source_s3/stream.py                                                  43      3    93%
source_s3/source_files_abstract/stream.py                           262     19    93%
source_s3/s3file.py                                                  41      3    93%
source_s3/source_files_abstract/formats/abstract_file_parser.py      41      4    90%
source_s3/source.py                                                  27      4    85%
source_s3/source_files_abstract/file_info.py                         26      7    73%
source_s3/utils.py                                                   31     10    68%
source_s3/source_files_abstract/formats/csv_parser.py               127     46    64%
source_s3/exceptions.py                                              10      4    60%
source_s3/source_files_abstract/source.py                            39     16    59%
source_s3/source_files_abstract/spec.py                              55     31    44%
source_s3/source_files_abstract/formats/jsonl_parser.py              53     32    40%
source_s3/source_files_abstract/formats/avro_parser.py               39     25    36%
source_s3/source_files_abstract/formats/parquet_parser.py            64     44    31%
-------------------------------------------------------------------------------------
TOTAL                                                               946    249    74%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [5] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:509: The previous and actual discovered catalogs are identical.
================== 96 passed, 5 skipped in 260.62s (0:04:20) ===================

@ryjabe Ryan (ryjabe) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think I am qualified to review, so probably want someone else to do it. That said from my limited perspective this looks good. Thank you for the quick action!

@bazarnov

Copy link
Copy Markdown
Contributor Author

I don't think I am qualified to review, so probably want someone else to do it. That said from my limited perspective this looks good. Thank you for the quick action!

No worries, you've been assigned here just because you're the issue reporter)

@bazarnov
Baz (bazarnov) requested a review from a team March 2, 2023 18:11
@bazarnov

Baz (bazarnov) commented Mar 3, 2023 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/source-s3

πŸ•‘ Publishing the following connectors:
connectors/source-s3
https://github.com/airbytehq/airbyte/actions/runs/4322975021


Connector Did it publish? Were definitions generated?
connectors/source-s3 βœ… βœ…

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

@bazarnov
Baz (bazarnov) merged commit 6a6039b into master Mar 3, 2023
@bazarnov
Baz (bazarnov) deleted the baz/source-s3-fix-readerr-options branch March 3, 2023 13:12
Daniel Duckworth (danielduckworth) pushed a commit to danielduckworth/airbyte that referenced this pull request Mar 13, 2023
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/s3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants