Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jenkins.debian.net
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian QA
jenkins.debian.net
Commits
f17552ad
Commit
f17552ad
authored
5 years ago
by
Holger Levsen
Browse files
Options
Downloads
Patches
Plain Diff
re-add jenkins zombie and logsize checks to r-b_node_health_check job
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
1c580cb8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/common-functions.sh
+3
-0
3 additions, 0 deletions
bin/common-functions.sh
bin/reproducible_node_health_check.sh
+7
-0
7 additions, 0 deletions
bin/reproducible_node_health_check.sh
with
10 additions
and
0 deletions
bin/common-functions.sh
+
3
−
0
View file @
f17552ad
...
...
@@ -227,6 +227,7 @@ jenkins_zombie_check() {
#
ZOMBIES
=
$(
ls
-1d
/var/lib/jenkins/jobs/
*
| egrep
'strip-nondeterminism|reprotest|reproducible_(builder_(amd64|i386|armhf|arm64)|setup_(pbuilder|schroot)_testing)|chroot-installation_wheezy|aptdpkg|odc2a|stretch_install_education-thin-client-server|jessie_multiarch_versionskew|dpkg_stretch_find_trigger_cycles|sid_install_education-services|buster_install_education-services|lvc|chroot-installation_stretch_.*_upgrade_to_sid|piuparts_.*_jessie|udd_stretch|d-i_pu-build|debsums-tests_stretch|debian-archive-keyring-tests_stretch'
||
true
)
if
[
!
-z
"
$ZOMBIES
"
]
;
then
DIRTY
=
true
figlet
'zombies!!!'
echo
"Warning, rise of the jenkins job zombies has started again, these jobs should not exist:"
for
z
in
$ZOMBIES
;
do
...
...
@@ -243,11 +244,13 @@ jenkins_logsize_check() {
# and we don't yet know why, so let's monitor this for now.
JENKINSLOG
=
"
$(
find /var/log/jenkins
-name
jenkins.log
-size
+42G
)
"
if
[
-z
"JENKINSLOG"
]
;
then
figlet
'jenkins.log size'
echo
"Warning, jenkins.log is larger than 42G, please fix, erroring out now."
exit
1
else
JENKINSLOG
=
"
$(
find /var/log/jenkins
-name
jenkins.log
-size
+23G
)
"
if
[
-z
"JENKINSLOG"
]
;
then
DIRTY
=
true
figlet
'jenkins.log size'
echo
"Warning, jenkins.log is larger than 23G, please do something…"
fi
...
...
This diff is collapsed.
Click to expand it.
bin/reproducible_node_health_check.sh
+
7
−
0
View file @
f17552ad
...
...
@@ -164,6 +164,13 @@ if ! systemctl is-system-running > /dev/null; then
DIRTY
=
true
fi
# checks only for the main node
#
if
[
"
$HOSTNAME
"
=
"
$MAINNODE
"
]
;
then
jenkins_zombie_check
jenkins_logsize_check
fi
#
# finally
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment