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

Build ecs-settings-applier in same cargo_build #1017

Merged
merged 1 commit into from
Aug 8, 2020

Conversation

tjkirch
Copy link
Contributor

@tjkirch tjkirch commented Aug 8, 2020

We were rebuilding common dependencies. With the conditional in the same build
block, ecs-settings-applier doesn't need to build dependencies from scratch.

With the same technique, we can also simplify/deduplicate the copying of the
resulting binary.

Testing done:

Before: saw 5+ minute delay from separate cargo build cycle for ecs-settings-applier.

After: Built aws-k8s-1.15, saw no change in behavior, it doesn't try to build ecs-settings-applier. Built aws-ecs-1, saw ecs-settings-applier get built in the same cycle as our other os crates. Confirmed ecs-settings-applier still shows up in the RPM.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

We were rebuilding common dependencies.  With the conditional in the same build
block, ecs-settings-applier doesn't need to build dependencies from scratch.

With the same technique, we can also simplify/deduplicate the copying of the
resulting binary.
@tjkirch tjkirch merged commit 8e41807 into bottlerocket-os:develop Aug 8, 2020
@tjkirch tjkirch deleted the ecs-applier-build branch August 8, 2020 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants