cmake: set WITH_BOOST_VALGRIND before building boost#47441
Conversation
56c48a6 to
9374eb8
Compare
|
@cbodley investigating inconsistency in the value of in testing - even thou that changed the default of without any but |
9374eb8 to
6052ada
Compare
|
with config re-ordering change it possible to ad-hoc configure the value of results in: |
cmake/modules/BuildBoost.cmake
Outdated
| message(STATUS "BUILDING Boost Libraries: WITH_BOOST_VALGRIND is set to ON") | ||
| list(APPEND b2 valgrind=on) | ||
| else() | ||
| message(STATUS "BUILDING Boost Libraries: WITH_BOOST_VALGRIND is set to OFF") |
There was a problem hiding this comment.
I’d suggest drop this commit. These logging messages do help with debugging, but they should not get merged.
There was a problem hiding this comment.
but isn't that dependent on the environment (whether boost is installed or not)?
in this case it is probably good to keep the log messages.
There was a problem hiding this comment.
ack and ack - removed the OFF log messages to lower the log noise, the ON logs are useful for analyzing previous Shaman build logs in hindsight from the time that the boost Valgrind issues started occurring (this has happened several times)
There was a problem hiding this comment.
unlike the logging in python or in C++ in Ceph, where we try to understand the runtime behavior, the cmake options are explicitly passed to cmake when generating building system. so we can always understand its values by looking at the command line argument and its default value.
so, IMHO, these logging message help us to understand how CMake works, but they do not help when it comes to the behavior of our own CMake script.
There was a problem hiding this comment.
but isn't that dependent on the environment (whether boost is installed or not)?
in this case it is probably good to keep the log messages.
please note WITH_SYSTEM_BOOST is specified explicitly, so if it's not found. the generation phase fails. it's determined.
There was a problem hiding this comment.
my concern was with cases determined at compile time automatically. e.g.
https://github.com/ceph/ceph/blob/main/src/script/run-make.sh#L44
but this would be reflected in the cmake commandline, right?
There was a problem hiding this comment.
but this would be reflected in the cmake commandline, right?
yes, that's exactly my point.
There was a problem hiding this comment.
The intent of adding the log messages is operational. Problems with Valgrind have recurred several times before sporadically as a result of environmental changes and not CMake code changes, logs would assist in shortening the diagnostic cycles.
|
jenkins test make check |
6052ada to
abafd37
Compare
|
create an image that includes this PR, but also forces the build not to use system boost. no valgrind issues were detected. 4 failures are expected. |
abafd37 to
358e38c
Compare
|
@tchaikov please review, removed the log commit... |
|
just one thing, the title now reads
i'd suggest change it to something like:
|
https://tracker.ceph.com/issues/56500 Signed-off-by: Mark Kogan <mkogan@redhat.com>
358e38c to
692b99d
Compare
ack, renamed |
|
jenkins test api |

https://tracker.ceph.com/issues/56500
Signed-off-by: Mark Kogan mkogan@redhat.com
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows