Skip to content

Commit a49f8e0

Browse files
committed
build: print commit hash of locally built dependencies (#1798)
Especially for our "bleeding edge" test that builds from the current master of several dependencies, sometimes our tests fail not because of anything we've done, but because of a change in one of the dependencies. To help track down exactly which change broke the dependency, make sure our CI build logs print the specific commit hash of those packages that we built. Signed-off-by: Larry Gritz <[email protected]>
1 parent 3b45595 commit a49f8e0

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

src/build-scripts/build_opencolorio.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ cd ${OPENCOLORIO_SOURCE_DIR}
4343

4444
echo "git checkout ${OPENCOLORIO_VERSION} --force"
4545
git checkout ${OPENCOLORIO_VERSION} --force
46+
echo "Building OpenColorIO from commit" `git rev-parse --short HEAD`
47+
4648
time cmake -S . -B ${OPENCOLORIO_BUILD_DIR} \
4749
-DCMAKE_BUILD_TYPE=${OPENCOLORIO_BUILD_TYPE} \
4850
-DCMAKE_INSTALL_PREFIX=${OPENCOLORIO_INSTALL_DIR} \

src/build-scripts/build_openexr.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ mkdir -p ${OPENEXR_INSTALL_DIR} && true
4040

4141
pushd ${OPENEXR_SOURCE_DIR}
4242
git checkout ${OPENEXR_VERSION} --force
43+
echo "Building OpenEXR from commit" `git rev-parse --short HEAD`
4344

4445
cmake -S . -B ${OPENEXR_BUILD_DIR} \
4546
-DCMAKE_BUILD_TYPE=${OPENEXR_BUILD_TYPE} \

src/build-scripts/build_openimageio.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ mkdir -p ${OPENIMAGEIO_BUILD_DIR} && true
3232
pushd $OPENIMAGEIO_SRCDIR
3333
git fetch --all -p
3434
git checkout $OPENIMAGEIO_VERSION --force
35+
echo "Building OpenImageIO from commit" `git rev-parse --short HEAD`
3536

3637
if [[ "$USE_SIMD" != "" ]] ; then
3738
OPENIMAGEIO_CMAKE_FLAGS="$OPENIMAGEIO_CMAKE_FLAGS -DUSE_SIMD=$USE_SIMD"

src/build-scripts/build_pugixml.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ cd ${PUGIXML_SRC_DIR}
3737

3838
echo "git checkout ${PUGIXML_VERSION} --force"
3939
git checkout ${PUGIXML_VERSION} --force
40+
echo "Building pugixml from commit" `git rev-parse --short HEAD`
4041

4142
if [[ -z $DEP_DOWNLOAD_ONLY ]]; then
4243
time cmake -S . -B ${PUGIXML_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release \

src/build-scripts/build_pybind11.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ cd ${PYBIND11_SRC_DIR}
4141

4242
echo "git checkout ${PYBIND11_VERSION} --force"
4343
git checkout ${PYBIND11_VERSION} --force
44+
echo "Building pybind11 from commit" `git rev-parse --short HEAD`
4445

4546
if [[ -z $DEP_DOWNLOAD_ONLY ]]; then
4647
time cmake -S . -B ${PYBIND11_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release \

0 commit comments

Comments
 (0)