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

Finer grain builds #13461

Merged
merged 11 commits into from
May 10, 2024
Merged

Finer grain builds #13461

merged 11 commits into from
May 10, 2024

Conversation

simondeziel
Copy link
Member

Stop building lxd-agent and lxd-migrate in the default make target.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
…migrate

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
This is not strictly required as the default make target is still building LXD
but it's better to be explicit about our intentions.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@simondeziel simondeziel marked this pull request as ready for review May 8, 2024 23:17
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

Does a simple call to "make" still build everything?

@simondeziel
Copy link
Member Author

simondeziel commented May 9, 2024

Does a simple call to "make" still build everything?

No, with this PR is no longer builds lxd-agent and lxd-migrate, so it just builds lxd. I added make all to build all binaries.

Would you prefer a bare make to be equivalent to make all?

@tomponline
Copy link
Member

Would you prefer a bare make to be equivalent to make all?

Yes please.

I dont mind having more specific build targets we can use to make the CI stages more efficient, but a simple make called by a developer should build everything if needed.

https://documentation.ubuntu.com/lxd/en/latest/installing/#start-the-build

…benchmark and lxd-migrate

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@simondeziel
Copy link
Member Author

but a simple make called by a developer should build everything if needed.

That's now the case as it will build: lxc, lxd, lxd-agent, lxd-benchmark and lxd-migrate (and lxd-metadata).
Before it would only build: lxd, lxd-agent and lxd-migrate (and lxd-metadata).

@tomponline tomponline merged commit 93d1d05 into canonical:main May 10, 2024
29 checks passed
@simondeziel simondeziel deleted the finer-grain-builds branch May 10, 2024 12:40
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.

2 participants