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

chore(docker): change the cmake's build tool from make to ninja #4658

Closed
wants to merge 3 commits into from

Conversation

youtalk
Copy link
Member

@youtalk youtalk commented Apr 24, 2024

Description

This PR has changed the cmake's build tool from make to ninja.
ninja is typically faster than make to rebuild modified source code.
So when using cache properly, the ninja build time would be faster than make.

https://ninja-build.org/

The results of the colcon build time using my local PC are shown below. There may be a few overhead.

  • make: 40min 59.55s
  • ninja: 41min 57.07s

Tests performed

Not applicable.

Effects on system behavior

Not applicable.

Interface changes

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: Yutaka Kondo <[email protected]>
@youtalk youtalk self-assigned this Apr 24, 2024
@youtalk
Copy link
Member Author

youtalk commented Apr 24, 2024

Temporalily https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease has no response. That's why setup-docker and setup-universe CI checks were failed.
Resolved.

@youtalk youtalk marked this pull request as ready for review April 24, 2024 10:25
@xmfcx
Copy link
Contributor

xmfcx commented Apr 24, 2024

Is ninja installed on the system? Could you share the step that installs it?

Signed-off-by: Yutaka Kondo <[email protected]>
@youtalk
Copy link
Member Author

youtalk commented Apr 24, 2024

I couldn't find the step so that I've explicitly installed ninja-build.
158ff39

@xmfcx Please review again.

Signed-off-by: Yutaka Kondo <[email protected]>
@youtalk youtalk closed this May 9, 2024
@youtalk youtalk deleted the cmake-args-ninja branch May 9, 2024 04:58
@xmfcx
Copy link
Contributor

xmfcx commented May 10, 2024

@youtalk -san, why was this closed?

@youtalk youtalk restored the cmake-args-ninja branch May 11, 2024 05:55
@youtalk youtalk reopened this May 11, 2024
@youtalk
Copy link
Member Author

youtalk commented May 11, 2024

@xmfcx Just no reason. I’ve reopened. Please review again.

@youtalk youtalk requested a review from oguzkaganozt May 13, 2024 06:27
@youtalk youtalk added the type:ci Continuous Integration (CI) processes and testing. label May 14, 2024
@youtalk youtalk closed this May 24, 2024
@youtalk youtalk deleted the cmake-args-ninja branch May 24, 2024 13:04
@xmfcx
Copy link
Contributor

xmfcx commented May 24, 2024

@youtalk why did you remove it this time?

@youtalk
Copy link
Member Author

youtalk commented May 25, 2024

Because no one reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:ci Continuous Integration (CI) processes and testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants