File README-ceph-test.txt of Package ceph-test
26
1
ceph-test.spec apologia
2
=======================
3
4
The ceph-test.spec file is generated automatically by running pre_checkin.sh
5
6
Originally, the ceph-test RPM was built by ceph.spec as a subpackage.
7
8
When ceph was first included in Ring1, the build time was too long and ceph
9
was blocking Factory builds. The ceph-test RPM - a non-user-facing subpackage
10
that is only used by CI tests - accounted for a significant portion of that
11
excessive build time. By spinning the ceph-test RPM off to a standalone spec
12
file spec file, the build time of ceph.spec was reduced and it was no longer
13
a problem to have ceph in Ring1.
14
15
A script, pre_checkin.sh, which is run before every commit, automatically
16
generates ceph-test.spec from ceph.spec. Thus, ceph-test.spec should be seen
17
as a "build artifact" whose purpose is to build the ceph-test RPM as it would
18
have been built had the original ceph.spec not been split.
19
20
Although this workflow results in a "not-pretty" ceph-test.spec, it has an
21
advantage in that ceph-test.spec is maintenance-free. Maintaining *two* spec
22
files for Ceph would be tricky, error-prone, and labor-intensive.
23
24
Nathan Cutler
25
April 17, 2017
26