commit 663edb4567ad869227fcd0b02f259cb7e71300e3
Author: Scott Little <email address hidden>
Date: Wed May 22 16:48:06 2019 -0400
Ceph build script improvements to prevent needless rebuilds
Problem: The file $SRC_DIR/src/.git_version is created by the
custom build script and is not cleaned upon exit. The presence
of the new file under $SRC_DIR will trigger a rebuild on the
next iteration.
Solution: Add a cleanup of the file to cover the normal exit case.
This means $SRC_DIR/src/.git_version will not be present at the
start of the next build.
Problem: A lot of tarballs are copied into the build by the
build script, rather than being listed in the COPY_LIST. This
breaks the md5 checksum mechanism used to determine if a rebuild
is required. A change to a tarball will be ignored and not
trigger a rebuild.
Solution: Move the code that generates the list of input tarballs
into build_srpm.data. The file is sourced, so COPY_LIST can
be populated dynamically.
Problem: Script returns success when rpmbuild fails.
Solution: Propogate the error code to the final exit.
Change-Id: I2e760c24ecd3ce2d237863b948863c2a876d24fa
Closes-Bug: 1830130
Co-authored-by: Shuicheng Lin <email address hidden>
Signed-off-by: Scott Little <email address hidden>
Reviewed: https:/ /review. opendev. org/661297 /git.openstack. org/cgit/ starlingx/ integ/commit/ ?id=663edb4567a d869227fcd0b02f 259cb7e71300e3
Committed: https:/
Submitter: Zuul
Branch: master
commit 663edb4567ad869 227fcd0b02f259c b7e71300e3
Author: Scott Little <email address hidden>
Date: Wed May 22 16:48:06 2019 -0400
Ceph build script improvements to prevent needless rebuilds
Problem: The file $SRC_DIR/ src/.git_ version is created by the
custom build script and is not cleaned upon exit. The presence
of the new file under $SRC_DIR will trigger a rebuild on the
next iteration.
Solution: Add a cleanup of the file to cover the normal exit case. src/.git_ version will not be present at the
This means $SRC_DIR/
start of the next build.
Problem: A lot of tarballs are copied into the build by the
build script, rather than being listed in the COPY_LIST. This
breaks the md5 checksum mechanism used to determine if a rebuild
is required. A change to a tarball will be ignored and not
trigger a rebuild.
Solution: Move the code that generates the list of input tarballs
into build_srpm.data. The file is sourced, so COPY_LIST can
be populated dynamically.
Problem: Script returns success when rpmbuild fails.
Solution: Propogate the error code to the final exit.
Change-Id: I2e760c24ecd3ce 2d237863b948863 c2a876d24fa
Closes-Bug: 1830130
Co-authored-by: Shuicheng Lin <email address hidden>
Signed-off-by: Scott Little <email address hidden>