From: Kefu Chai Date: Thu, 18 Jun 2026 14:06:36 +0000 (+0800) Subject: debian/rules: exclude CI and test directories from mgr plugin packages X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d74b88500b654774ba05339f4ee7c2d673af4f55;p=ceph.git debian/rules: exclude CI and test directories from mgr plugin packages The ceph-mgr-dashboard and ceph-mgr-rook packages install their entire mgr module directory, which includes a ci/ subdirectory containing Dockerfiles, e2e test scripts, and cluster specs used only for upstream CI pipelines. ceph-mgr-cephadm similarly ships a tests/ directory with Python unit tests. These files have no runtime purpose on a deployed system and should not be shipped in the binary packages. Exclude mgr/cephadm/tests, mgr/dashboard/ci, and mgr/rook/ci via dh_install --exclude. Signed-off-by: Kefu Chai --- diff --git a/debian/rules b/debian/rules index 48b8634a1c4..d27dac6a664 100755 --- a/debian/rules +++ b/debian/rules @@ -158,7 +158,10 @@ 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_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_install override_dh_strip override_dh_auto_test