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

RPM builds should be using Mock #1584

Open
Conan-Kudo opened this issue Jun 9, 2020 · 6 comments
Open

RPM builds should be using Mock #1584

Conan-Kudo opened this issue Jun 9, 2020 · 6 comments
Assignees

Comments

@Conan-Kudo
Copy link

Conan-Kudo commented Jun 9, 2020

The Debian package builds are using pbuilder to ensure clean and sane package builds, why don't the RPM package builds for Fedora, RHEL/CentOS, and openSUSE use Mock?

Mock supports the wide variety of RPM Linux distributions (Fedora, CentOS/RHEL, openSUSE Leap, openSUSE Tumbleweed) and is generally the preferred way to do clean, consistent, and reproducible package builds.

Is there something stopping us from using it for Ceph?

@Conan-Kudo Conan-Kudo changed the title RPM CI builds should be using Mock RPM builds should be using Mock Jun 9, 2020
@ktdreyer
Copy link
Member

ktdreyer commented Nov 5, 2020

It's a trade-off between "slower and more accurate" vs "faster and more error-prone". Historically we went with straight rpmbuild outside of mock because Ceph build times are already incredibly slow. I support mock, though, since the quality of the resulting binaries is higher, and Fedora/CentOS and RHEL use it.

@badone
Copy link
Contributor

badone commented Nov 5, 2020

Totally agree. How much slower is mock with the appropriate '%_smp_mflags' setting and cache set-up?

@kalebskeithley
Copy link

kalebskeithley commented Nov 5, 2020

Other than the cost of setting up the mock chroot, why do you think mock is slower. Using mock will help ensure correctness in general and in particular the correctness of the ceph.spec. It ensures that the build env is populated only with the intended dependencies and isn't polluted with any leftover packages from other things.

For a ceph build that takes literal hours, the cost of the mock chroot setup is negligible.

Behind the scenes Fedora koji, CentOS cbs, and RHEL brew builds all are done with mock.

@badone badone self-assigned this Nov 8, 2020
@badone
Copy link
Contributor

badone commented Nov 8, 2020

I'll see what we can do about this.

@jmundack
Copy link

@badone - is this something you are still looking into?

@badone
Copy link
Contributor

badone commented Apr 28, 2024

@badone - is this something you are still looking into?

No, this kind of dropped off my radar. Do you have any new information of requirements to add to incentivise revisiting this?

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

No branches or pull requests

5 participants