π Source S3: Reduce image size and add acceptance test - #31654
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
Before Merging a Connector Pull RequestWow! What a great pull request you have here! π To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/x86_64 | β |
| Unit tests | β |
| Acceptance tests | β |
| Check our base image is used | β |
| Code format checks | β |
| Validate metadata for source-s3 | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-s3 test
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/x86_64 | β |
| Unit tests | β |
| Acceptance tests | β |
| Check our base image is used | β |
| Code format checks | β |
| Validate metadata for source-s3 | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-s3 test
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/x86_64 | β |
| Unit tests | β |
| Acceptance tests | β |
| Check our base image is used | β |
| Code format checks | β |
| Validate metadata for source-s3 | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-s3 test|
One other thing I need to check here is whether we should pull in pytesseract |
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/amd64 | β |
| Unit tests | β |
| Acceptance tests | β |
| Check our base image is used | β |
| Code format checks | β |
| Validate metadata for source-s3 | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-s3 test
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/amd64 | β |
| Unit tests | β |
| Acceptance tests | β |
| Check our base image is used | β |
| Code format checks | β |
| Validate metadata for source-s3 | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-s3 test
Augustin (alafanechere)
left a comment
There was a problem hiding this comment.
π Just a suggestion to make the build_customization.py module more readable / documented.
|
|
||
|
|
||
| async def post_connector_install(connector_container: Container) -> Container: | ||
| async def setup_nltk(connector_container: Container) -> Container: |
There was a problem hiding this comment.
These two new functions do not need to be async. (there's no await call inside them).
The post_connector_install has to remain async because we want to allow awaits inside them if necessary (which is not your case)
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/amd64 | β |
| Unit tests | β |
| Acceptance tests | β |
| Check our base image is used | β |
| Code format checks | β |
| Validate metadata for source-s3 | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-s3 test|
Augustin (@alafanechere) thanks, fixed! |
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/amd64 | β |
| Unit tests | β |
| Acceptance tests | β |
| Check our base image is used | β |
| Code format checks | β |
| Validate metadata for source-s3 | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-s3 test
Aaron ("AJ") Steers (aaronsteers)
left a comment
There was a problem hiding this comment.
LGTM!
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/amd64 | β |
| Unit tests | β |
| Acceptance tests | β |
| Check our base image is used | β |
| Code format checks | β |
| Validate metadata for source-s3 | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-s3 test
Adding the experimental document type parser bloated the image size unnecessarily. This PR reduces the required dependencies.
It also adds an acceptance test to verify the parser works correctly for regular PDFs and OCR-only PDFs (e.g. scans)
hi_resparsing strategy can't be applied anymore - it will default tofastand fall back toocr_onlyif necessary.