Source S3: StreamReader and Cursor fixes - #29505
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,
|
|
|
||
| def __init__(self, stream_config: FileBasedStreamConfig, **_: Any): | ||
| super().__init__(stream_config) | ||
| self._running_migration = False |
There was a problem hiding this comment.
re: am I surprised they were accessed before being set?
A little bit, but in hindsight, it makes sense since set_initial_state isn't called on full refresh runs
There was a problem hiding this comment.
Q: do you know if this was only a problem for full refresh?
either way, the fix looks good
There was a problem hiding this comment.
It was happening in incremental syncs, too, but during the first run (before there is a state).
Alexandre Girard (girarda)
left a comment
There was a problem hiding this comment.
the 3 changes make sense to me. thanks for fixing! ![]()
|
| 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 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 testd3b164d to
7dc7b3b
Compare
|
| 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 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
Fixes a couple of issues identified during end-to-end testing of the state message conversion:
_running_migrationand_v3_migration_start_datetimewere not guaranteed to be set on the S3 cursor so I gave them default values on__init__. Alexandre Girard (@girarda) does it surprise you at all that they weren't set before being accessed?