]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian/rules: exclude CI and test directories from mgr plugin packages
authorKefu Chai <k.chai@proxmox.com>
Thu, 18 Jun 2026 14:06:36 +0000 (22:06 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 18 Jun 2026 14:15:31 +0000 (22:15 +0800)
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 <k.chai@proxmox.com>
debian/rules

index 48b8634a1c46ae51d7485485b03e424d482135e4..d27dac6a6641c06d468b6cc5614b0f1e15320b4f 100755 (executable)
@@ -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