Skip to content

Commit a88b80c

Browse files
committed
ceph-dev-new-setup/build: cleanup *-debug branches
The newly introduced "debug" flavor from #2497 can be used instead. Add "DWITH_CEPH_DEBUG_MUTEX" to preserve existing *-debug behavior. Signed-off-by: Matan Breizman <mbreizma@redhat.com>
1 parent b7141eb commit a88b80c

File tree

3 files changed

+2
-24
lines changed

3 files changed

+2
-24
lines changed

ceph-dev-new-setup/build/build

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64,28 +64,6 @@ else
6464
echo "forcing."
6565
fi
6666

67-
# This is a dev release, enable some debug cmake configs. Note: it has been
68-
# this way since at least 35e1a715. It's difficult to tell when or even if ceph
69-
# was ever properly built with debugging configurations for QA as there are
70-
# corresponding changes in ceph with the switch to cmake which makes this
71-
# challenging to evaluate.
72-
#
73-
# It's likely that it was wrongly assumed that cmake would set the build type
74-
# to Debug because the ".git" directory would be present. This is not the case
75-
# because the "make-dist" script (executed below) creates a git tarball that is
76-
# used for the actual untar/build. See also:
77-
#
78-
# https://github.com/ceph/ceph/pull/53800
79-
#
80-
# Addendum and possibly temporary restriction: only enable these for branches
81-
# ending in "-debug".
82-
if [[ "$BRANCH" == *-debug ]]; then
83-
CEPH_EXTRA_CMAKE_ARGS+=" -DCMAKE_BUILD_TYPE=Debug -DWITH_CEPH_DEBUG_MUTEX=ON"
84-
printf 'Added debug cmake configs to branch %s. CEPH_EXTRA_CMAKE_ARGS: %s\n' "$BRANCH" "$CEPH_EXTRA_CMAKE_ARGS"
85-
else
86-
printf 'No cmake debug options added to branch %s.\n' "$BRANCH"
87-
fi
88-
8967
# Tentacle is the last release that needs dedicated Crimson builds,
9068
# Later releases are able to use Crimson with the default build.
9169
# As the "Crimson flavor" is no longer available, we need a *temporary* way

ceph-dev-pipeline/build/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ pipeline {
449449
}
450450
break
451451
case "debug":
452-
ceph_extra_cmake_args += " -DCMAKE_BUILD_TYPE=Debug"
452+
ceph_extra_cmake_args+=" -DCMAKE_BUILD_TYPE=Debug -DWITH_CEPH_DEBUG_MUTEX=ON"
453453
break
454454
default:
455455
println "FLAVOR=${env.FLAVOR} is invalid"

scripts/build_utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ ceph_build_args_from_flavor() {
885885
DEB_BUILD_PROFILES=""
886886
;;
887887
debug)
888-
CEPH_EXTRA_CMAKE_ARGS+=" -DCMAKE_BUILD_TYPE=Debug"
888+
CEPH_EXTRA_CMAKE_ARGS+=" -DCMAKE_BUILD_TYPE=Debug -DWITH_CEPH_DEBUG_MUTEX=ON"
889889
;;
890890
*)
891891
echo "unknown FLAVOR: ${FLAVOR}" >&2

0 commit comments

Comments
 (0)