- Notifications
You must be signed in to change notification settings - Fork 4.9k
✨ source-file: prevent local file usage on cloud deployment mode #30984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
| Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
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,
|
6d6de39 to 1450bf3 Compare 0b3b8da to bd49ade Compare |
| Step | Result |
|---|---|
| Connector package install | ❌ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test |
| Step | Result |
|---|---|
| Connector package install | ❌ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test |
| Step | Result |
|---|---|
| Connector package install | ❌ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test |
| Step | Result |
|---|---|
| Connector package install | ❌ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test |
| Step | Result |
|---|---|
| Connector package install | ✅ |
| Build source-file docker image for platform linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Integration tests | ❌ |
| Acceptance tests | ❌ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test |
| Step | Result |
|---|---|
| Connector package install | ✅ |
| Build source-file docker image for platform linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Integration tests | ❌ |
| Acceptance tests | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file testb2f972c to 481e531 Compare This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
|
| Step | Result |
|---|---|
| Connector package install | ✅ |
| Build source-file docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Integration tests | ✅ |
| Acceptance tests | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test| @pedroslopez would it be doable to graphite split this into to prs, one which fixes the tests and one which does the migration to deployment_mode=cloud? |
d2a9f74 to 57af86a Compare
bnchrch left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| for provider in spec.connectionSpecification["properties"]["provider"]["oneOf"]: | ||
| storage = provider["properties"]["storage"] | ||
| | ||
| if "enum" in storage: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📚 comments as to what we are doing could be useful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
particularly for
storage["const"] = storage.pop("default")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch - I tried to write a comment but realized I didn't understand what this was doing (I copied it from source-file-secure). Seems like when it was introduced, the spec for source-file had enums everywhere and it should have been consts and for some reason it was patched here for source-file-secure. This is no longer the case and source-file now properly declares these as const, so this is not needed.
Removed the code!
57af86a to 2ffc7ab Compare |
| 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-file test2ffc7ab to 4d995df Compare |
| Step | Result |
|---|---|
| Build source-file docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Integration tests | ✅ |
| Acceptance tests | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test4d995df to 240ffe3 Compare |
| Step | Result |
|---|---|
| Build source-file docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ❌ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test |
| Step | Result |
|---|---|
| Build source-file docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Integration tests | ✅ |
| Acceptance tests | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test |
| Step | Result |
|---|---|
| Build source-file docker image for platform(s) linux/x86_64 | ✅ |
| Unit tests | ✅ |
| Integration tests | ✅ |
| Acceptance tests | ✅ |
| Code format checks | ✅ |
| Validate metadata for source-file | ✅ |
| 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-file test…bytehq#30984) Co-authored-by: pedroslopez <pedroslopez@users.noreply.github.com>


What
In order to remove
source-file-secure, we need to integrate its funcionality tosource-file. It uses the cdk helper introduced in #30980 to adapt the connector's behavior depending on the deployment mode.close #30625
How
Integrate source-file-secure: