Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Add rust rpm provisioner to adm node #2382

Merged
merged 6 commits into from
Dec 3, 2020
Merged

Conversation

johnsonw
Copy link
Contributor

@johnsonw johnsonw commented Nov 13, 2020

Building the rpms locally has been difficult becuase using the docker
container is significantly slower, even after increasing the available
ram and cpu's. In contrast, building in the adm vm appears to be nearly
as fast as building on the host. Furthermore, adding sccache appears to
maintain dependency builds across different branches, allowing for much
quicker builds. This patch adds a new provisioner to build the rust rpms
using the adm virtual machine and takes care of installing all necessary
dependencies, including sccache. To build the rust rpms, simply run the
following:

vagrant provision adm --provision-with build-rust-rpms

Signed-off-by: johnsonw wjohnson@whamcloud.com


This change is Reviewable

@johnsonw johnsonw added the chore label Nov 13, 2020
@johnsonw johnsonw requested a review from a team November 13, 2020 14:27
@johnsonw johnsonw self-assigned this Nov 13, 2020
@johnsonw johnsonw requested review from jgrund and a team November 17, 2020 16:38
ip1981
ip1981 previously approved these changes Nov 18, 2020
Copy link
Member

@ip1981 ip1981 left a comment

Choose a reason for hiding this comment

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

I don't have issues with current build, sometimes use ad-hoc scripts and recall we were using something like this. But fine 🙂

mkpankov
mkpankov previously approved these changes Nov 18, 2020
Makefile Outdated Show resolved Hide resolved
Building the rpms locally has been difficult becuase using the docker
container is significantly slower, even after increasing the available
ram and cpu's. In contrast, building in the adm vm appears to be nearly
as fast as building on the host. Furthermore, adding sccache appears to
maintain dependency builds across different branches, allowing for much
quicker builds. This patch adds a new provisioner to build the rust rpms
using the adm virtual machine and takes care of installing all necessary
dependencies, including sccache. To build the rust rpms, simply run the
following:

```
vagrant provision adm --provision-with build-rust-rpms
```

Signed-off-by: johnsonw <wjohnson@whamcloud.com>
Signed-off-by: johnsonw <wjohnson@whamcloud.com>
Signed-off-by: johnsonw <wjohnson@whamcloud.com>
Signed-off-by: johnsonw <wjohnson@whamcloud.com>
…e adm node and resource it before running make.

Signed-off-by: johnsonw <wjohnson@whamcloud.com>
…nt variable to the Make environment

Signed-off-by: johnsonw <wjohnson@whamcloud.com>
@johnsonw
Copy link
Contributor Author

johnsonw commented Dec 2, 2020

Output from latest run:

[root@adm x86_64]# ls
rust-iml-action-runner-0.4.0-1.1606934749.x86_64.rpm        rust-iml-corosync-0.4.0-1.1606934749.x86_64.rpm   rust-iml-postoffice-0.4.0-1.1606934749.x86_64.rpm
rust-iml-agent-0.4.0-1.1606934749.x86_64.rpm                rust-iml-debuginfo-0.4.0-1.1606934749.x86_64.rpm  rust-iml-report-0.4.0-1.1606934749.x86_64.rpm
rust-iml-agent-comms-0.4.0-1.1606934749.x86_64.rpm          rust-iml-device-0.4.0-1.1606934749.x86_64.rpm     rust-iml-sfa-0.4.0-1.1606934749.x86_64.rpm
rust-iml-api-0.4.0-1.1606934749.x86_64.rpm                  rust-iml-journal-0.4.0-1.1606934749.x86_64.rpm    rust-iml-snapshot-0.4.0-1.1606934749.x86_64.rpm
rust-iml-cli-0.4.0-1.1606934749.x86_64.rpm                  rust-iml-mailbox-0.4.0-1.1606934749.x86_64.rpm    rust-iml-stats-0.4.0-1.1606934749.x86_64.rpm
rust-iml-cli-bash-completion-0.4.0-1.1606934749.x86_64.rpm  rust-iml-network-0.4.0-1.1606934749.x86_64.rpm    rust-iml-task-runner-0.4.0-1.1606934749.x86_64.rpm
rust-iml-cli-zsh-completion-0.4.0-1.1606934749.x86_64.rpm   rust-iml-ntp-0.4.0-1.1606934749.x86_64.rpm        rust-iml-timer-0.4.0-1.1606934749.x86_64.rpm
rust-iml-config-cli-0.4.0-1.1606934749.x86_64.rpm           rust-iml-ostpool-0.4.0-1.1606934749.x86_64.rpm    rust-iml-warp-drive-0.4.0-1.1606934749.x86_64.rpm

@johnsonw johnsonw requested a review from jgrund December 2, 2020 21:29
@johnsonw
Copy link
Contributor Author

johnsonw commented Dec 3, 2020

@jgrund jgrund merged commit 6ff7f17 into master Dec 3, 2020
@jgrund jgrund deleted the add-rust-rpm-provisioner branch December 3, 2020 21:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants