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

do_cmake.sh: remove -DCMAKE_BUILD_TYPE=Debug from cmake options #30250

Merged
merged 1 commit into from Oct 9, 2019

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Sep 9, 2019

so we can use do_cmake.sh for building release builds, which are
required for performance tests.

Signed-off-by: Kefu Chai kchai@redhat.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs

@@ -57,7 +57,7 @@ if type cmake3 > /dev/null 2>&1 ; then
else
CMAKE=cmake
fi
${CMAKE} -DCMAKE_BUILD_TYPE=Debug $ARGS "$@" .. || exit 1
${CMAKE} $ARGS "$@" .. || exit 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid that outcome of this change may be surprising to many people. Over the time developers might got used to and expect presence of the debug stuff in default-configured builds.
Can we satisfy the requirement for crimson perf testing in another way? If not, then we should consider sending prior notification to ceph-devel or, at least, print message signalizing the change at the end of do_cmake.sh, I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we satisfy the requirement for crimson perf testing in another way?

@rzarzynski yes, we can. but i'd keep the script simple and straightforward. i will send a mail to ceph-devel. and print out a warning message if a tty is attached.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mail sent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with #30799, i think this change is backward compatible

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There shouldn't be a difference for the perf test bot as we already pass -DCMAKE_BUILD_TYPE=Release there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see, didn't realize that cmake allows us to pass multiple -D<FOO>=<BAR> with the same <FOO>, and the last wins.

@rzarzynski
Copy link
Contributor

rzarzynski commented Oct 8, 2019

@tchaikov: is this PR still relevant after merging ceph/ceph-build#1405? I think -DCMAKE_BUILD_TYPE=Debug gets override.

@tchaikov
Copy link
Contributor Author

tchaikov commented Oct 9, 2019

@rzarzynski i forgot this PR ! will follow it up in this week. thanks for the reminder!

@tchaikov tchaikov self-assigned this Oct 9, 2019
@badone badone mentioned this pull request Oct 9, 2019
3 tasks
build a release version of the ceph executables instead.
.. note:: By default do_cmake.sh will build a release version of ceph with debug
symbols. Pass '-DCMAKE_BUILD_TYPE=Debug' to do_cmake.sh if you would like to
build a debug version of the ceph executables instead.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There;s a similar passage in README.md

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, the document changes are dropped. as #30799 addresses the backward compatibility issue.

@badone
Copy link
Contributor

badone commented Oct 9, 2019

the documentation changes should be minimal (if any) if #30799 merges

so we can use do_cmake.sh for building release builds, which are
required for performance tests.

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

tchaikov commented Oct 9, 2019

@tchaikov tchaikov merged commit 3999050 into ceph:master Oct 9, 2019
@tchaikov tchaikov deleted the wip-do-cmake.sh branch October 9, 2019 06:52
@tchaikov
Copy link
Contributor Author

tchaikov commented Oct 9, 2019

@tchaikov: is this PR still relevant after merging ceph/ceph-build#1405? I think -DCMAKE_BUILD_TYPE=Debug gets override.

ahh, sorry, i missed this comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants