Skip to content

Conversation

@pedroslopez
Copy link
Contributor

@pedroslopez pedroslopez commented Oct 2, 2023

What

In order to remove source-file-secure, we need to integrate its funcionality to source-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:

  • change spec behavior to remove local files on cloud deployment mode (logic from source-file-secure)
  • update runtime behavior to error based on deployment mode if local files are used (logic from source-file-secure)
  • add CAT tests based on deployment mode
@vercel
Copy link

vercel bot commented Oct 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Oct 16, 2023 5:49pm
Copy link
Contributor Author

pedroslopez commented Oct 2, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@octavia-squidington-iii octavia-squidington-iii added the area/connectors Connector related issues label Oct 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2023

Before Merging a Connector Pull Request

Wow! 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:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@pedroslopez pedroslopez force-pushed the pedro/cat-deployment-mode branch from 6d6de39 to 1450bf3 Compare October 2, 2023 18:15
@pedroslopez pedroslopez force-pushed the pedro/source-file-dep-mode branch from 0b3b8da to bd49ade Compare October 2, 2023 18:15
@pedroslopez pedroslopez marked this pull request as ready for review October 2, 2023 18:43
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit bd49ade501) - ❌

⏲️ Total pipeline duration: 20mn02s

Step Result
Connector package install
Code format checks
Validate metadata for source-file
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-file test
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit bd49ade501) - ❌

⏲️ Total pipeline duration: 20mn02s

Step Result
Connector package install
Code format checks
Validate metadata for source-file
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-file test
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit da65ef3fa3) - ❌

⏲️ Total pipeline duration: 20mn03s

Step Result
Connector package install
Code format checks
Validate metadata for source-file
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-file test
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit da65ef3fa3) - ❌

⏲️ Total pipeline duration: 20mn03s

Step Result
Connector package install
Code format checks
Validate metadata for source-file
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-file test
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit f5627fb84a) - ❌

⏲️ Total pipeline duration: 03mn20s

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 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-file test
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit b2f972ce8c) - ❌

⏲️ Total pipeline duration: 02mn37s

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 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-file test
Base automatically changed from pedro/cat-deployment-mode to master October 3, 2023 19:47
@pedroslopez pedroslopez force-pushed the pedro/source-file-dep-mode branch from b2f972c to 481e531 Compare October 6, 2023 22:29

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@pedroslopez pedroslopez changed the title add source-file-secure logic to source-file ✨ source-file: add source-file-secure logic to source-file Oct 6, 2023
@pedroslopez pedroslopez changed the title ✨ source-file: add source-file-secure logic to source-file ✨ source-file: integrate source-file-secure logic Oct 6, 2023
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit d2a9f741d6) - ✅

⏲️ Total pipeline duration: 03mn29s

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 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-file test
@pedroslopez pedroslopez changed the title ✨ source-file: integrate source-file-secure logic ✨ source-file: prevent local file usage on cloud deployment mode Oct 6, 2023
@pedroslopez pedroslopez requested review from a team, alafanechere and bnchrch October 6, 2023 22:42
@erohmensing
Copy link
Contributor

@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?

@pedroslopez pedroslopez changed the base branch from master to pedro/fix-source-file-test October 6, 2023 22:58
@pedroslopez pedroslopez force-pushed the pedro/source-file-dep-mode branch from d2a9f74 to 57af86a Compare October 6, 2023 22:58
Copy link
Contributor

@bnchrch bnchrch left a 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:
Copy link
Contributor

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

Copy link
Contributor

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") 
Copy link
Contributor Author

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!

@pedroslopez pedroslopez force-pushed the pedro/source-file-dep-mode branch from 57af86a to 2ffc7ab Compare October 14, 2023 00:46
@pedroslopez pedroslopez requested review from a team as code owners October 14, 2023 00:46
@pedroslopez pedroslopez requested a review from a team October 14, 2023 00:46
@pedroslopez pedroslopez changed the base branch from pedro/fix-source-file-test to master October 14, 2023 00:46
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit 2ffc7ab084) - ❌

⏲️ Total pipeline duration: 03mn46s

Step Result

🔗 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-file test
@pedroslopez pedroslopez force-pushed the pedro/source-file-dep-mode branch from 2ffc7ab to 4d995df Compare October 14, 2023 00:52
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit 4d995df4b5) - ✅

⏲️ Total pipeline duration: 02mn27s

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 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-file test
@pedroslopez pedroslopez force-pushed the pedro/source-file-dep-mode branch from 4d995df to 240ffe3 Compare October 16, 2023 17:19
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit 240ffe35e1) - ❌

⏲️ Total pipeline duration: 01mn25s

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 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-file test
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit 240ffe35e1) - ✅

⏲️ Total pipeline duration: 02mn39s

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 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-file test
@pedroslopez pedroslopez enabled auto-merge (squash) October 16, 2023 17:39
@pedroslopez pedroslopez disabled auto-merge October 16, 2023 17:46
@airbyte-oss-build-runner
Copy link
Collaborator

source-file test report (commit daa435b8de) - ✅

⏲️ Total pipeline duration: 03mn21s

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 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-file test
@pedroslopez pedroslopez merged commit d4ef599 into master Oct 16, 2023
@pedroslopez pedroslopez deleted the pedro/source-file-dep-mode branch October 16, 2023 20:00
ariesgun pushed a commit to ariesgun/airbyte that referenced this pull request Oct 23, 2023
…bytehq#30984) Co-authored-by: pedroslopez <pedroslopez@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/file

6 participants