Repository navigation
π Source S3 (V4): Ensure all files are not resync'd when migrating from v3 to v4 - #29418
Conversation
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,
|
|
|
||
| @staticmethod | ||
| def _convert_legacy_state(legacy_state: StreamState) -> MutableMapping[str, str]: | ||
| def _convert_legacy_state(legacy_state: StreamState) -> MutableMapping[str, Any]: |
There was a problem hiding this comment.
this already returned a MutableMapping[str, Any] because the value for "history" is a dict, not a str
|
| Step | Result |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
| Integration tests | β |
| Acceptance tests | β |
π 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 |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
| Integration tests | β |
| Acceptance tests | β |
π 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 |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
| Integration tests | β |
| Acceptance tests | β |
π 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 |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
| Integration tests | β |
| Acceptance tests | β |
π 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 |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
π 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 |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
π 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 |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
π 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
Catherine Noll (clnoll)
left a comment
There was a problem hiding this comment.
Nice Alexandre Girard (@girarda), just one question for you.
| RemoteFile(uri="file4.txt", last_modified=_create_datetime("2023-08-01T00:00:00.000000Z")), | ||
| ], | ||
| [RemoteFile(uri="file4.txt", last_modified=_create_datetime("2023-08-01T00:00:00.000000Z"))], | ||
| id="input_state_is_v4_with_new_file_earlier_than_cursor", |
There was a problem hiding this comment.
There's one difference between this and the issue - "3. Store a special key in the v4 state message if it was created from a v3 state, v3_min_sync_date (?), whose value is the earliest date in the v3 history. If this key is present, v4 will not sync files before that date."
The purpose of this was to allow us to sync files >1 hour if they weren't already in the history. Did we ultimately decide it wasn't needed?
If we do want it we'll want to add these tests:
- v4 state message + there is one new file, but it's before the
v3_min_sync_date(as I called it in the issue; this file should not be synced) - v4 state message + there's one new file and it's between the
v3_min_sync_dateand the earliest file (this should be synced).
There was a problem hiding this comment.
my bad - you're right. We do need to keep track of v3_min_sync_date because v3 removes files from the history based on the time window.
|
| Step | Result |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
| Integration tests | β |
| Acceptance tests | β |
π 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
Catherine Noll (clnoll)
left a comment
There was a problem hiding this comment.
Looks great Alexandre Girard (@girarda)!
Awesome test coverage π
|
| Step | Result |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
| Integration tests | β |
| Acceptance tests | β |
π 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 |
|---|---|
| Validate airbyte-integrations/connectors/source-s3/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
| Code format checks | β |
| Connector package install | β |
| Build source-s3 docker image for platform linux/x86_64 | β |
| Unit tests | β |
| Integration tests | β |
| Acceptance tests | β |
π 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
What
How
When converting the v3 state to v4:
Update _should_sync_file logic:
_ab_source_file_last_modified_ab_source_file_last_modified. This ensure we don't accidentally lose files due to setting the files' datetime to the end of the dayRecommended reading order
airbyte-integrations/connectors/source-s3/source_s3/v4/cursor.pyairbyte-integrations/connectors/source-s3/unit_tests/v4/test_cursor.py