Skip to content

connectors-ci: per connector dockerd #28566

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

Closed

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Jul 21, 2023

What

Closes #27867

#28000 is our best bet at reducing reliance on dockerd and its potential over caching issues. But it's currently blocked because I'm looking for advices from the Dagger team for the dagger-in-dagger usecase.

This PR is an alternative approach to try to increase isolation in CAT run:

  • Create a docker daemon as a side car container for each connector
    We originally had one global docker daemon shared accross containers and we suspect it to be the root cause dubious connector command output in CAT causing transient CAT failures.

Having a per-connector dockerd was not the recommended approach by the Dagger team as it creates a lot of overhead and services to manage for the engine. But we're trying this approach again to see if the original issues we had persist / have been solved in the latest Dagger version.

Tests

A "nightly build" on all GA connectors is running here

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

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.

@alafanechere alafanechere force-pushed the augustin/connectors-ci/per-connector-dockerd branch from 692b84e to a04352d Compare July 21, 2023 15:20
@alafanechere alafanechere marked this pull request as ready for review July 21, 2023 15:21
@alafanechere alafanechere force-pushed the augustin/connectors-ci/per-connector-dockerd branch from a04352d to 5d0d282 Compare July 21, 2023 15:23
@alafanechere alafanechere requested a review from a team July 21, 2023 15:23
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.

LGTM

Dock related gif

dockerd = context.dockerd_service
docker_hostname = "global-docker-host"
dockerd_service = with_dockerd_service(context)
docker_hostname = f"{slugify(context.connector.technical_name)}-docker-host"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alafanechere
Copy link
Contributor Author

Closing as unexpected Dagger / Docker errors were observed on the nightly build and #28000 is showing good progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

connectors-ci: abusive re-use of cache
3 participants