Repository navigation
S3: Basic unstructured file support - #31209
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,
|
…yte into flash1293/markdown-parser
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Acceptance tests | ❌ |
| Code format checks | ❌ |
| Validate metadata for source-s3 | ✅ |
| Connector version semver check | ✅ |
| Connector version increment check | ✅ |
| QA checks | ✅ |
☁️ 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|
The acceptance test errors also happen on master (not caused by this PR): https://connectors.airbyte.com/files/generated_reports/test_summary/source-s3/index.html |
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Acceptance tests | ❌ |
| Code format checks | ✅ |
| Validate metadata for source-s3 | ✅ |
| Connector version semver check | ✅ |
| Connector version increment check | ✅ |
| QA checks | ✅ |
☁️ 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
Noted. And I think agree this is probably acceptable for a first pass, as discussed.
Sounds very reasonable. Less surface area to support means we can better focus on edge cases (if/when those arise) for a smaller number of possible file types. I'm also fine with excluding PDF in the first version if it makes sense to exclude, since it's the only one of these that requires OCR (image recognition) and probably is an order of magnitude slower than the other purely text-based processing methods.
Yes - and... I just checked in on my request here: Was apparently closed as resolved here: Joe Reuter (@flash1293) - Could this help at all with giving us richer markdown info? (In this pass or in a future one.) I haven't closely looked at their implementation or spec as of yet.
👍
👍
👍 - Long-term, I imagine we'd expose some of these nobs/dials to the users when they are using a parser that requires OCR. Perhaps instead of exposing all internals, we could reduce to "max quality", "max speed", or "balanced".
Do you mean PDF->Markdown and Word->Markdown? In the first pass, I'm inclined to keep simple and just output the markdown text. But this is dependent on the specific nature of the issues/shortcomings...
👍
Totally okay to keep doc (the older, pre-xml format) for later addition.
I'm okay with chunking or truncating at this phase. Argument for chunking:
Argument for truncating:
Argument for doing neither (yet):
|
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Acceptance tests | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-s3 | ✅ |
| Connector version semver check | ✅ |
| Connector version increment check | ✅ |
| QA checks | ✅ |
☁️ 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 | ✅ |
| Code format checks | ❌ |
| Validate metadata for source-s3 | ✅ |
| Connector version semver check | ✅ |
| Connector version increment check | ✅ |
| QA checks | ✅ |
☁️ 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 | ✅ |
| Code format checks | ❌ |
| Validate metadata for source-s3 | ✅ |
| Connector version semver check | ✅ |
| Connector version increment check | ✅ |
| QA checks | ✅ |
☁️ 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 | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-s3 | ✅ |
| Connector version semver check | ✅ |
| Connector version increment check | ✅ |
| QA checks | ✅ |
☁️ 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.
I completed a full code readthrough. Besides what we previously discussed, I think the only other thing that pops out to me is the question of output schema, such as column names, incremental key, and primary key. I put a comment below that we may want to try to match the file_uri column name rather than introducing the new "id" column.
Similarly, we could consider a column name like "document_markdown" or "file_markdown" or "markdown_contents" - but I also do think "contents" works. I didn't see schema for last-modified timestamps, but that may already be internally handled by the CDK.
Approving with these comments as non-blocking. This is a great first iteration. 🙏
| return { | ||
| "content": {"type": "string"}, | ||
| "id": {"type": "string"}, | ||
| } |
There was a problem hiding this comment.
I think there's a different name for the column id (file uri) in the CDK today for the other file types.
Should we try to match that?
|
| Step | Result |
|---|---|
| Build source-s3 docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Acceptance tests | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-s3 | ✅ |
| Connector version semver check | ✅ |
| Connector version increment check | ✅ |
| QA checks | ✅ |
☁️ 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 |
|---|
☁️ 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 |
|---|
☁️ 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 |
|---|
☁️ 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 |
|---|
☁️ 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 | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-s3 | ✅ |
| Connector version semver check | ✅ |
| Connector version increment check | ✅ |
| QA checks | ✅ |
☁️ 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 testCo-authored-by: flash1293 <flash1293@users.noreply.github.com>
What
Fixes #31208
Testing
To test, I spun up a local minio server using
docker run -p 9000:9000 -p 9001:9001 minio/minio server /data --console-address ":9001"To set up syncable data:
minioadmin:minioadminfor accessHow
partitionmethod to extract information from the fileLimitations:
Problems
Open questions