[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 3 commits: reproducible OpenWrt: improve wording
Holger Levsen
gitlab at salsa.debian.org
Fri Oct 19 15:42:47 BST 2018
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
82b20e12 by Holger Levsen at 2018-10-19T13:08:37Z
reproducible OpenWrt: improve wording
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
65d3d279 by Holger Levsen at 2018-10-19T14:41:38Z
g-i: dont warn about leftover .png and .bak files, they are small and g-i tests are EOL anyway
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
e2fe42e7 by Holger Levsen at 2018-10-19T14:42:26Z
g-i: check for stale/unused logical volumes
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
6 changed files:
- bin/maintenance.sh
- bin/reproducible_openwrt.sh
- hosts/common/etc/sudoers.d/jenkins
- hosts/jenkins-test-vm/etc/sudoers.d/jenkins
- hosts/jenkins/etc/sudoers.d/jenkins
- hosts/profitbricks-build10-amd64/etc/sudoers.d/jenkins
Changes:
=====================================
bin/maintenance.sh
=====================================
@@ -277,12 +277,17 @@ else
done
echo
report_disk_usage $1
- report_filetype_usage $1 png warn
- report_filetype_usage $1 bak warn
+ report_filetype_usage $1 png
+ report_filetype_usage $1 bak
report_filetype_usage $1 raw warn
report_filetype_usage $1 iso warn
- echo "WARNING: there is no check / handling on stale lvm volumes"
rm $ACTIVE_JOBS $WATCHED_JOBS $RUNNING
+ for VOLUME in $(sudo lvdisplay jenkins01|grep "LV Path" |grep -v "/dev/jenkins01/swap" | cut -d '/' -f2-) ; do
+ if [ -z "$(ps fax | grep "$VOLUME" | grep -v grep)" ] ; then
+ echo "Error: /$VOLUME exists, but no running job is using it."
+ exit 1
+ fi
+ done
;;
d-i) report_old_directories /srv/d-i 7 /srv/d-i/workspace /srv/d-i/isos
;;
=====================================
bin/reproducible_openwrt.sh
=====================================
@@ -112,7 +112,7 @@ node_document_environment() {
echo " <tr><td>$i</td></tr>" >> "$toolchain_html"
done
echo "</table>" >> "$toolchain_html"
- echo "<table><tr><th>Debian $(cat /etc/debian_version) package on $(dpkg --print-architecture)</th><th>installed version</th></tr>" >> "$toolchain_html"
+ echo "<table><tr><th>Debian $(cat /etc/debian_version) $(dpkg --print-architecture) package name</th><th>installed version</th></tr>" >> "$toolchain_html"
for i in gcc binutils bzip2 flex python perl make findutils grep diffutils unzip gawk util-linux zlib1g-dev libc6-dev git subversion ; do
echo " <tr><td>$i</td><td>" >> "$toolchain_html"
dpkg -s $i|grep '^Version'|cut -d " " -f2 >> "$toolchain_html"
=====================================
hosts/common/etc/sudoers.d/jenkins
=====================================
@@ -30,7 +30,7 @@ jenkins ALL= \
/bin/dd if=/dev/zero of=/dev/jenkins*, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
- /sbin/lvcreate *, /sbin/lvremove *, \
+ /sbin/lvcreate *, /sbin/lvremove *, /sbin/lvdisplay *, \
/bin/mkdir -p /media/*, \
/usr/bin/guestmount *, \
/bin/cp -rv /media/*, \
=====================================
hosts/jenkins-test-vm/etc/sudoers.d/jenkins
=====================================
@@ -30,7 +30,7 @@ jenkins ALL= \
/bin/dd if=/dev/zero of=/dev/jenkins*, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
- /sbin/lvcreate *, /sbin/lvremove *, \
+ /sbin/lvcreate *, /sbin/lvremove *, /sbin/lvdisplay *, \
/usr/bin/virsh -q snapshot-list *, /usr/bin/virsh snapshot-delete *, \
/bin/mkdir -p /media/*, \
/usr/bin/guestmount *, \
=====================================
hosts/jenkins/etc/sudoers.d/jenkins
=====================================
@@ -31,7 +31,7 @@ jenkins ALL= \
/bin/dd if=/dev/zero of=/dev/jenkins*, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
- /sbin/lvcreate *, /sbin/lvremove *, \
+ /sbin/lvcreate *, /sbin/lvremove *, /sbin/lvdisplay *, \
/usr/bin/virsh -q snapshot-list *, /usr/bin/virsh snapshot-delete *, \
/bin/mkdir -p /media/*, \
/usr/bin/guestmount *, \
=====================================
hosts/profitbricks-build10-amd64/etc/sudoers.d/jenkins
=====================================
@@ -30,7 +30,7 @@ jenkins ALL= \
/bin/dd if=/dev/zero of=/dev/jenkins*, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
- /sbin/lvcreate *, /sbin/lvremove *, \
+ /sbin/lvcreate *, /sbin/lvremove *, /sbin/lvdisplay *, \
/usr/bin/virsh -q snapshot-list *, /usr/bin/virsh snapshot-delete *, \
/bin/mkdir -p /media/*, \
/usr/bin/guestmount *, \
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/b31c5c086adadb3e9fcd8969221f89e960190c38...e2fe42e7c7e68322b01d09ae7f49396cb3fbbe42
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/b31c5c086adadb3e9fcd8969221f89e960190c38...e2fe42e7c7e68322b01d09ae7f49396cb3fbbe42
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20181019/6c3cdea7/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list