package: jenkins.debian.org control: submitter -1 [email protected] [ ghosts from the past ]
This discussion was triggered upon a failure message relyed on IRC of a d-i_overview_* job (in details, d-i_overview_mipsel/6826) on 2015-08-11: [06:39:13 PM] <KiBi> mapreri: and fwiw that's just the old log showing up (failed as expected) and there's the 2015-08-11 missing. [06:39:43 PM] <KiBi> got tricked by the “Failure:” which is misleading as usual. [07:32:06 PM] <mapreri> KiBi: currently the notification here are triggered by a job failure. maybe the job can be set to stop notify build failures and the actual script learn how to notify the irc channel with a more helpful message? - the script is just https://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/bin/d-i_overview.sh look at https://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/bin/reproducible_common.sh#n385 to see how to send a irc message [07:35:25 PM] <KiBi> mapreri: well, I already mentioned some code to extract the right bits, but that went to /dev/null [07:35:34 PM] <mapreri> :( [07:36:20 PM] <KiBi> I'm using this: http://paste.debian.net/291417/ my $new_results; foreach my $type (qw(missing failing)) { my @archs; my $nodeset = $xp->find('/html/body/div/ul[@id="'.$type.'archs"]/li/a/text()'); foreach my $node ($nodeset->get_nodelist) { my $value = XML::XPath::XMLParser::as_string($node); next if $value eq 'hurd-i386' or $value eq 'sparc'; push @archs, $value; } $new_results->{$type} = [@archs]; [07:36:57 PM] <mapreri> gosh, perl [07:39:58 PM] <mapreri> KiBi: i'm pretty sure that if you get 5 mins to turn that into a patch for the script it'd get applied. [07:40:05 PM] <KiBi> the important part is xpath and perl-indep… [07:40:46 PM] <mapreri> -eparse [07:41:10 PM] <KiBi> the important part is XPath and doesn't depend on Perl. [07:41:11 PM] <mapreri> (yes, i saw xpath, but i know nothing about perl) [07:43:42 PM] <mapreri> sorry, but really i fail to understand what that tiny snipped does :| [07:45:43 PM] <KiBi> for i in ["missing", "failing"]: [07:46:04 PM] <KiBi> get_values_from_xpath("/html/body/div/ul[@id="%sarchs"]/li/a/text()" % i) [07:46:21 PM] <KiBi> then exclude sparc and hurd-i386 because pfff. [07:52:47 PM] <mapreri> ok, this got more comprehensible :) /me adds a todo somewhere for this [07:53:35 PM] <KiBi> thanks [07:54:15 PM] <mapreri> also currently there is a job for every arch, i feel like this is not that scalable as it could be ... [07:54:39 PM] <mapreri> KiBi: where do you suggest to take a list of avaialable arches? [07:54:47 PM] <KiBi> that's also something I already said [07:55:00 PM] <KiBi> [d-i] old missing builds: [07:55:01 PM] <KiBi> [d-i] new missing builds: mipsel [07:55:04 PM] <KiBi> is what I get… [07:55:28 PM] <KiBi> [d-i] old failing builds: amd64 arm64 powerpc ppc64el [07:55:29 PM] <KiBi> [d-i] new failing builds: mipsel [07:55:32 PM] <KiBi> for another example. [07:55:47 PM] <mapreri> KiBi: where do you have the full code that output that? [07:55:58 PM] <KiBi> Please don't maintain a list of available archs; that's not needed (afaict) and subject to change. [07:56:19 PM] <mapreri> currently it is, in several place. and i don't like it too [07:56:55 PM] <KiBi> Well, I can share it but that's perl. You only need to store a list of archs which are missing or failing, and do a list diff from one run to another. [07:57:49 PM] <KiBi> (storing a string and printing when it changes works as well, nothing fancy.) [07:58:38 PM] <mapreri> ok, that's feasible. [07:59:22 PM] <KiBi> Sorry to drop this on you, but I've spent enough time on this to care about submitting a proper patch. -- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`. more about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'` Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
signature.asc
Description: PGP signature

