X-Git-Url: https://git.einval.com/cgi-bin/gitweb.cgi?p=buildd-scripts.git;a=blobdiff_plain;f=bin%2Fanalyze_results;h=70c5e2f3c28cc2378790142e6142e2c65512382c;hp=4e4553f3a77c1300626b4b11baaff761ae6aa9e3;hb=f0270960b53e32f905009760769352c7f56d8ac1;hpb=d60f1dd890ffc1344a1c08cbad4c079c8e24cc46 diff --git a/bin/analyze_results b/bin/analyze_results index 4e4553f..70c5e2f 100755 --- a/bin/analyze_results +++ b/bin/analyze_results @@ -17,21 +17,28 @@ my @logcheck = ( # "rchitecture mismatch" -> should never build on this arch # Stop working on this log at this point string => 'rchitecture mismatch', - message => 'architecture mismatch', + message => 'Architecture mismatch', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout }, { string => 'not in arch list or does not match any', - message => 'architecture mismatch', + message => 'Architecture mismatch', + check => 1, + stop => 1, + timeout => 0, # This is a real error, not a build timeout + }, + { + string => 'schroot.*File is not owned by user root', + message => 'Schroot setup failure', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout }, { string => 'No space left on device', - message => 'ran out of disk space', + message => 'Build ran out of disk space', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -62,7 +69,7 @@ my @logcheck = ( # built. Why not picked up already above?. # Stop working on this log at this point string => 'binary build with no binary artifacts found', - message => 'no binaries built', + message => 'No binaries built', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -70,7 +77,7 @@ my @logcheck = ( { # "Bus error" -> alignment bug string => 'Bus error', - message => 'alignment problem', + message => 'Alignment problem', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -79,7 +86,7 @@ my @logcheck = ( # "Segmentation fault" -> code problem string => 'Segmentation fault', pstring => 'Setting up (\S+)', - message => 'Segmentation fault (RESULT)', + message => 'Segmentation fault when installing RESULT', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -96,7 +103,7 @@ my @logcheck = ( # "Illegal instruction" -> bad build target? string => 'Illegal instruction', pstring => 'Setting up (\S+)', - message => 'Illegal instruction (RESULT)', + message => 'Illegal instruction when installing RESULT', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -112,7 +119,7 @@ my @logcheck = ( { # Installing build-deps failed string => 'dpkg: error processing package (\S+)', - message => 'build-dep failed to install (RESULT)', + message => 'Build-dep failed to install (RESULT)', check => 1, stop => 0, timeout => 0, # This is a real error, not a build timeout @@ -120,7 +127,7 @@ my @logcheck = ( { # Installing build-deps failed string => 'E: pbuilder-satisfydepends failed.', - message => 'pbuilder build-deps failed', + message => 'Pbuilder build-deps failed', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -128,15 +135,15 @@ my @logcheck = ( { # Installing build-deps failed string => 'E: Unmet dependencies', - message => 'build-deps failed', + message => 'Build-deps failed', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout }, { # Installing build-deps failed - string => 'unsat-dependency: (.*)', - message => 'missing build-dep (RESULT)', + string => 'unsat-dependency: (\S+)', + message => 'Missing build-dep (RESULT)', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -144,7 +151,7 @@ my @logcheck = ( { # Build failed - missing build-dep? string => 'build dependencies/conflicts unsatisfied', - message => 'build-deps not satisfiable', + message => 'Build-deps not satisfiable', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -152,7 +159,7 @@ my @logcheck = ( { # Build failed - missing build-dep? string => 'ld: cannot find', - message => 'build failure: missing library - missing build-dep?', + message => 'Build failure: missing library - missing build-dep?', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -160,7 +167,7 @@ my @logcheck = ( { # Build failed - missing build-dep? string => 'fatal error:.*No such file or directory', - message => 'build failure: missing header - missing build-dep?', + message => 'Build failure: missing header - missing build-dep?', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -168,7 +175,7 @@ my @logcheck = ( { # Build failed - missing build-dep? string => 'SEVERE: Cannot resolve dependencies', - message => 'build failure - missing build-dep?', + message => 'Build failure - missing build-dep?', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -176,7 +183,7 @@ my @logcheck = ( { # Build failed - can't exec something... string => 'error trying to exec.*execvp: No', - message => 'build failure (missing binary)', + message => 'Build failure (missing binary)', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -184,7 +191,7 @@ my @logcheck = ( { # Build failed string => 'BUILD FAILED', - message => 'build failure (java/javadoc))', + message => 'Build failure (java/javadoc))', check => 1, stop => 1, timeout => 0, # This is a real error, not a build timeout @@ -192,7 +199,7 @@ my @logcheck = ( { # Build failed string => 'make.*returned exit code', - message => 'build failure (other)', + message => 'Build failure (other)', check => 1, stop => 0, timeout => 0, # This is a real error, not a build timeout @@ -200,7 +207,7 @@ my @logcheck = ( { # Build failed string => '^make.*\*\*\*.* \[debian/rules.*Error \d+$', - message => 'build failure (other)', + message => 'Build failure (other)', check => 1, stop => 0, timeout => 0, # This is a real error, not a build timeout @@ -216,28 +223,28 @@ my @logcheck = ( { # Build failed string => 'fakeroot debian/rules binary', - message => 'build failure (other)', + message => 'Build failure (other)', check => 0, stop => 1, }, { # Test failure string => 'OSError: \[Errno 13\] Permission denied', - message => 'python EPERM test failure', + message => 'Python EPERM test failure', check => 1, stop => 1, }, { # Test failure string => 'dh_auto_test:.*returned exit code \d+', - message => 'test failure', + message => 'Test failure', check => 1, stop => 1, }, { # Timeout. pbuilder is too dumb to do this properly :-( string => 'I: Terminating build process due to timeout', - message => 'pbuilder build timeout', + message => 'Pbuilder build timeout', check => 1, stop => 1, timeout => 1, # This is a build timeout. If this happened @@ -246,7 +253,7 @@ my @logcheck = ( { # Timeout from sbuild string => 'Build killed with signal TERM after \d+ minutes of inactivity', - message => 'sbuild build timeout', + message => 'Sbuild build timeout', check => 1, stop => 1, timeout => 1, # This is a build timeout. If this happened @@ -270,6 +277,7 @@ print "