Skip to content

fmt: remove FMT_HEADER_ONLY defines - #50479

Merged
yuriw merged 4 commits into
ceph:mainfrom
cbodley:wip-fmt-undef-header-only
Apr 5, 2023
Merged

yuriw merged 4 commits into
ceph:mainfrom
cbodley:wip-fmt-undef-header-only

Conversation

@cbodley

@cbodley cbodley commented Mar 10, 2023

Copy link
Copy Markdown
Contributor

a WITH_FMT_HEADER_ONLY cmake option controls which version of the library to use. individual sources/targets shouldn't override that, or they'll end up including/linking against both versions

Fixes: https://tracker.ceph.com/issues/58953

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@cbodley

cbodley commented Mar 10, 2023

Copy link
Copy Markdown
Contributor Author

there was a separate discussion about enabling FMT_HEADER_ONLY globally in #36484. whether or not we can get the consensus to do that, we need to be consistent about it

@cbodley
cbodley requested a review from a team as a code owner March 11, 2023 01:25
@cbodley
cbodley force-pushed the wip-fmt-undef-header-only branch from 25e14dc to 7033bc0 Compare March 11, 2023 02:30
Comment thread src/script/run-make.sh Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: fixing detect_ceph_dev_pkgs call site would be more appropriate IMO.

@cbodley
cbodley force-pushed the wip-fmt-undef-header-only branch from 7033bc0 to 4eff86c Compare March 13, 2023 12:29
@cbodley
cbodley requested a review from a team March 13, 2023 14:38
cbodley added 4 commits March 22, 2023 13:26
a WITH_FMT_HEADER_ONLY cmake option controls which version of the
library to use. individual sources/targets shouldn't override that, or
they'll end up including/linking against both versions

Fixes: https://tracker.ceph.com/issues/58953

Signed-off-by: Casey Bodley <[email protected]>
the 'make check' log shows the cmake command line is missing a space:

> cmake -GNinja -DWITH_PYTHON3=3.10 -DWITH_CCACHE=ON -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_FLAGS_DEBUG=-Werror -DENABLE_GIT_VERSION=OFF -DWITH_GTEST_PARALLEL=ON -DWITH_FIO=ON -DWITH_CEPHFS_SHELL=ON -DWITH_GRAFANA=ON -DWITH_SPDK=ON -DWITH_RBD_MIRROR=ON -DWITH_RBD_SSD_CACHE=ON-DWITH_FMT_VERSION=9.0.0 -DWITH_SYSTEM_BOOST=ON -DBOOST_ROOT=/opt/ceph -DWITH_TESTS=OFF -DENABLE_GIT_VERSION=OFF ..

Signed-off-by: Casey Bodley <[email protected]>
fmt::fmt was duplicated under PUBLIC; remove it from PRIVATE

Signed-off-by: Casey Bodley <[email protected]>
if we're using system fmt, we shouldn't mix the submodule's headers.
src/CMakeLists.txt already adds global include_directories() for the
correct fmt headers

Signed-off-by: Casey Bodley <[email protected]>
@cbodley

cbodley commented Mar 29, 2023

Copy link
Copy Markdown
Contributor Author

@rishabh-d-dave

rishabh-d-dave commented Mar 31, 2023 •

Copy link
Copy Markdown
Contributor

@vshankar @cbodley Should I put this through (CephFS) QA?

@vshankar

vshankar commented Apr 3, 2023

Copy link
Copy Markdown
Contributor

@vshankar @cbodley Should I put this through (CephFS) QA?

I'm fine with that, however, given that this touches other subsystems, we can request @yuriw to run tests and seek reviews from component leads.

@rishabh-d-dave rishabh-d-dave added the wip-rishabh-testing Rishabh's testing label label Apr 4, 2023
@ljflores

ljflores commented Apr 5, 2023

Copy link
Copy Markdown
Member

Rados suite review: https://pulpito.ceph.com/?branch=wip-yuri7-testing-2023-03-29-1100

Failures, unrelated:
1. https://tracker.ceph.com/issues/59192
2. https://tracker.ceph.com/issues/58585
3. https://tracker.ceph.com/issues/59057
4. https://tracker.ceph.com/issues/58946
5. https://tracker.ceph.com/issues/55347
6. https://tracker.ceph.com/issues/59196
7. https://tracker.ceph.com/issues/47838
8. https://tracker.ceph.com/issues/59080

Details:
1. cls/test_cls_sdk.sh: Health check failed: 1 pool(s) do not have an application enabled (POOL_APP_NOT_ENABLED) - Ceph - RADOS
2. rook: failed to pull kubelet image - Ceph - Orchestrator
3. rados/test_envlibrados_for_rocksdb.sh: No rule to make target 'rocksdb_env_librados_test' on centos 8 - Ceph - RADOS
4. cephadm: KeyError: 'osdspec_affinity' - Ceph - Orchestrator
5. SELinux Denials during cephadm/workunits/test_cephadm - Ceph - Orchestrator
6. ceph_test_lazy_omap_stats segfault while waiting for active+clean - Ceph - RADOS
7. mon/test_mon_osdmap_prune.sh: first_pinned != trim_to - Ceph - RADOS
8. mclock-config.sh: TEST_profile_disallow_builtin_params_modify fails when $res == $opt_val_new - Ceph - RADOS

@yuriw
yuriw merged commit cfe15d3 into ceph:main Apr 5, 2023
@rishabh-d-dave

Copy link
Copy Markdown
Contributor

@yuriw @ljflores This PR had some MDS changes as well and therefore CephFS QA suite should have been run for this PR before merging.

cc @vshankar

@vshankar

Copy link
Copy Markdown
Contributor

@yuriw @ljflores This PR had some MDS changes as well and therefore CephFS QA suite should have been run for this PR before merging.

cc @vshankar

Ideally, yes. I did comment on this PR to Yuri to scheduled suite. Additionally, @cbodley ran rgw suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants