Skip to content
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

gradle: improve airbyte-docker performance #30299

Closed

Conversation

postamar
Copy link
Contributor

Context: https://airbytehq-team.slack.com/archives/C03VDJ4FMJB/p1694426749391339

Problem statement:
When running ./gradlew format, all projects are loaded and, since format relies on generate due to the need to apply formatting rules on generated artifacts which are checked-in, and generate is a dependency on airbyteDocker, the latter task would be created for all projects. This would trigger expensive calls to docker for all projects, incurring significant overhead.

Mitigation:
First of all, reducing the number of generate tasks to a minimum seems sensible, since the set of projects which need to define these is unlikely to change over time (it's, like, airbyte-api and a couple of others). Next, amortize the calls to docker in the airbyte-docker plugin and get rid of calls to the system shell to evaluate env vars (also somewhat expensive).

@postamar postamar requested a review from a team as a code owner September 11, 2023 14:02
@octavia-squidington-iii octavia-squidington-iii added area/api Related to the api area/octavia-cli CDK Connector Development Kit labels Sep 11, 2023
@postamar postamar requested review from aaronsteers and a team September 11, 2023 14:14
@postamar
Copy link
Contributor Author

Superseded by #30314

@postamar postamar closed this Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Related to the api area/octavia-cli CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants