[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-638-g256a900
Andreas Beckmann
debian at abeckmann.de
Fri Jun 1 21:08:36 UTC 2012
The following commit has been merged in the develop branch:
commit c87c7fb548c646f65542d5fe2a4bf0a0a8ef9511
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Fri Jun 1 22:34:23 2012 +0200
piupartsm/bin/*: handle the /affected/ directories
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/home/piupartsm/bin/archive_old_logs b/home/piupartsm/bin/archive_old_logs
index d8e3ba7..8d9f65c 100755
--- a/home/piupartsm/bin/archive_old_logs
+++ b/home/piupartsm/bin/archive_old_logs
@@ -46,14 +46,14 @@ get_config_value SECTIONS global sections
for SECTION in $SECTIONS ; do
mkdir -p $MASTER/$SECTION/archive
cd $MASTER/$SECTION
- mkdir -p archive/pass archive/bugged archive/fail
+ mkdir -p archive/pass archive/bugged archive/affected archive/fail
test -f archive/stamp || touch -d @0 archive/stamp # start at the epoch
touch -d yesterday archive/stamp.new # look back one more day the next time we will be run
OUTPUT=""
# loop through all packages logs
- for PACKAGE in $(find pass/ fail/ bugged/ -name '*.log' -newer archive/stamp | cut -d"_" -f1 | cut -d"/" -f2 | sort -u) ; do
+ for PACKAGE in $(find pass/ fail/ bugged/ affected/ -name '*.log' -newer archive/stamp | cut -d"_" -f1 | cut -d"/" -f2 | sort -u) ; do
# all logs except the last one (|sed '$d' deletes the last line)
- OLDLOGS=$( ls -tr1 --color=none bugged/${PACKAGE}_*.log fail/${PACKAGE}_*.log pass/${PACKAGE}_*.log 2>/dev/null|sed '$d' )
+ OLDLOGS=$( ls -tr1 --color=none bugged/${PACKAGE}_*.log affected/${PACKAGE}_*.log fail/${PACKAGE}_*.log pass/${PACKAGE}_*.log 2>/dev/null|sed '$d' )
if [ ! -z "$OLDLOGS" ] ; then
if [ -z "$OUTPUT" ] ; then
OUTPUT="yes"
diff --git a/home/piupartsm/bin/detect_network_issues b/home/piupartsm/bin/detect_network_issues
index 5b745c7..3c887ba 100755
--- a/home/piupartsm/bin/detect_network_issues
+++ b/home/piupartsm/bin/detect_network_issues
@@ -46,7 +46,7 @@ get_config_value SECTIONS global sections
FILE=`mktemp`
for SECTION in $SECTIONS ; do
- for subdir in fail bugged ; do
+ for subdir in fail bugged affected ; do
rgrep -l "Cannot initiate the connection to" $MASTER/$SECTION/$subdir >> $FILE
rgrep -l "Hash Sum mismatch" $MASTER/$SECTION/$subdir >> $FILE
rgrep -l -e "Failed to fetch.*Could not resolve" $MASTER/$SECTION/$subdir >> $FILE
diff --git a/home/piupartsm/bin/detect_piuparts_issues b/home/piupartsm/bin/detect_piuparts_issues
index 18740d8..d08b66f 100755
--- a/home/piupartsm/bin/detect_piuparts_issues
+++ b/home/piupartsm/bin/detect_piuparts_issues
@@ -46,7 +46,7 @@ get_config_value SECTIONS global sections
FILE=`mktemp`
for SECTION in $SECTIONS ; do
- for subdir in fail bugged ; do
+ for subdir in fail bugged affected ; do
rgrep -l -E "tar( \(child\))?: .*.tar.gz: Cannot open: No such file or directory" $MASTER/$SECTION/$subdir >> $FILE
rgrep -l -e "tar: .*: No space left on device" $MASTER/$SECTION/$subdir >> $FILE
rgrep -l -e "gzip: stdin: invalid compressed data--crc error" $MASTER/$SECTION/$subdir >> $FILE
diff --git a/home/piupartsm/bin/detect_well_known_errors b/home/piupartsm/bin/detect_well_known_errors
index 4a483a1..fe04635 100755
--- a/home/piupartsm/bin/detect_well_known_errors
+++ b/home/piupartsm/bin/detect_well_known_errors
@@ -70,16 +70,16 @@ do
# remove all *.kpr files if rechecking is requested
#
if [ "$1" = "--recheck" ]; then
- rm -f pass/*.kpr bugged/*.kpr fail/*.kpr
+ rm -f pass/*.kpr bugged/*.kpr affected/*.kpr fail/*.kpr
elif [ "$1" = "--recheck-failed" ]; then
- rm -f bugged/*.kpr fail/*.kpr
+ rm -f bugged/*.kpr affected/*.kpr fail/*.kpr
fi
#
# remove outdated *.kpr files
#
>$LOGS
- find pass bugged fail -name '*.kpr' | \
+ find pass bugged affected fail -name '*.kpr' | \
while read kpr
do
log="${kpr%.kpr}.log"
@@ -94,7 +94,7 @@ do
# build missing *.kpr files
#
>$LOGS
- find pass bugged fail -name '*.log' | \
+ find pass bugged affected fail -name '*.log' | \
while read log
do
kpr="${log%.log}.kpr"
@@ -123,9 +123,9 @@ do
echo "parsed logfiles: $REMOVED removed, $ADDED added"
mkdir -p $HTDOCS/$SECTION
- find pass bugged fail -name '*.kpr' | xargs --no-run-if-empty cat > $ALLKPR
+ find pass bugged affected fail -name '*.kpr' | xargs --no-run-if-empty cat > $ALLKPR
cut -d' ' -f 2 $ALLKPR | sort | uniq -c
- ls -tr1 --color=none fail/*.log bugged/*.log pass/*.log 2>/dev/null > $LIST_ALL
+ ls -tr1 --color=none fail/*.log bugged/*.log affected/*.log pass/*.log 2>/dev/null > $LIST_ALL
>$KNOWNLOGS
#
# loop through all known problems
diff --git a/home/piupartsm/bin/generate_daily_report b/home/piupartsm/bin/generate_daily_report
index 47b0b27..b5244a0 100755
--- a/home/piupartsm/bin/generate_daily_report
+++ b/home/piupartsm/bin/generate_daily_report
@@ -78,7 +78,7 @@ touch $FAILURESTAMP.new # for the next report
echo "New failures:" >> $DAILYREPORT
for SECTION in $SECTIONS ; do
- find $MASTER/$SECTION/fail $MASTER/$SECTION/bugged $MASTER/$SECTION/untestable \
+ find $MASTER/$SECTION/fail $MASTER/$SECTION/bugged $MASTER/$SECTION/affected $MASTER/$SECTION/untestable \
-type f -name '*.log' -newer $FAILURESTAMP -exec ls -1 {} + 2>/dev/null
done | sed s#^$MASTER#$URLBASE# >> $DAILYREPORT
--
piuparts git repository
More information about the Piuparts-commits
mailing list