]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake,deb,rpm: exclude CI and test directories from installed modules 69618/head
authorKefu Chai <k.chai@proxmox.com>
Sun, 21 Jun 2026 08:14:49 +0000 (16:14 +0800)
committerKefu Chai <k.chai@proxmox.com>
Sun, 21 Jun 2026 12:45:10 +0000 (20:45 +0800)
The mgr module install rule already excluded tests/*, but that glob only
dropped the files inside tests/ and left an empty tests/ directory in the
installed tree.  The ci/ directories, which hold Dockerfiles, e2e test
scripts, and cluster specs used only for upstream CI pipelines, were not
excluded at all and were shipped by ceph-mgr-dashboard and ceph-mgr-rook.

Change the install pattern from tests/* to tests so the whole directory
is pruned, and add a ci pattern.  Both patterns live in the exclude list
shared by every mgr module install rule (the module list, dashboard, and
rook), so this covers all of them in one place.

This supersedes the per-package excludes added in 8a2e0eb2fc and
d74b88500b, so drop them from ceph.spec.in and debian/rules.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
ceph.spec.in
debian/rules
src/pybind/mgr/CMakeLists.txt

index 186cacb9a86807b66f2469792204b1d7ffba1108..b0fba106c2ce0ab0facc98a7ddaa78d7d0aafc0a 100644 (file)
@@ -2345,7 +2345,6 @@ fi
 
 %files mgr-dashboard
 %{_datadir}/ceph/mgr/dashboard
-%exclude %{_datadir}/ceph/mgr/dashboard/ci
 
 %ceph_mgr_module_scripts mgr-dashboard
 
@@ -2466,7 +2465,6 @@ fi
 
 %files mgr-rook
 %{_datadir}/ceph/mgr/rook
-%exclude %{_datadir}/ceph/mgr/rook/ci
 
 %ceph_mgr_module_scripts mgr-rook
 
@@ -2477,7 +2475,6 @@ fi
 
 %files mgr-cephadm
 %{_datadir}/ceph/mgr/cephadm
-%exclude %{_datadir}/ceph/mgr/cephadm/tests
 
 %ceph_mgr_module_scripts mgr-cephadm
 
index d27dac6a6641c06d468b6cc5614b0f1e15320b4f..48b8634a1c46ae51d7485485b03e424d482135e4 100755 (executable)
@@ -158,10 +158,7 @@ override_dh_python3:
        dh_python3 -p ceph-fuse --shebang=/usr/bin/python3
        dh_python3 -p ceph-volume --shebang=/usr/bin/python3
 
-override_dh_install:
-       dh_install --exclude=mgr/cephadm/tests --exclude=mgr/dashboard/ci --exclude=mgr/rook/ci
-
 # do not run tests
 override_dh_auto_test:
 
-.PHONY: override_dh_autoreconf override_dh_auto_configure override_dh_auto_clean override_dh_auto_install override_dh_installlogrotate override_dh_installinit override_dh_install override_dh_strip override_dh_auto_test
+.PHONY: override_dh_autoreconf override_dh_auto_configure override_dh_auto_clean override_dh_auto_install override_dh_installlogrotate override_dh_installinit override_dh_strip override_dh_auto_test
index 9edfe705dee7dd980e48c64e583778b5c31f8d0d..342b2b942d762da3273b7739cf7d8f6ea8a125e0 100644 (file)
@@ -4,7 +4,8 @@ set(mgr_module_install_excludes
   PATTERN "tox.ini" EXCLUDE
   PATTERN "requirements*.txt" EXCLUDE
   PATTERN "constraints*.txt" EXCLUDE
-  PATTERN "tests/*" EXCLUDE)
+  PATTERN "tests" EXCLUDE
+  PATTERN "ci" EXCLUDE)
 
 add_subdirectory(dashboard)