Hello community, here is the log from the commit of package openQA for openSUSE:Factory checked in at 2018-05-15 10:14:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openQA (Old) and /work/SRC/openSUSE:Factory/.openQA.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openQA" Tue May 15 10:14:59 2018 rev:20 rq:606859 version:4.5.1526033850.1ad9148d Changes: -------- --- /work/SRC/openSUSE:Factory/openQA/openQA.changes 2018-05-08 13:37:22.537475917 +0200 +++ /work/SRC/openSUSE:Factory/.openQA.new/openQA.changes 2018-05-15 10:33:52.823133934 +0200 @@ -1,0 +2,7 @@ +Fri May 11 10:17:40 UTC 2018 - co...@suse.com + +- Update to version 4.5.1526033850.1ad9148d: + * Add _source field to every detail generated by parsers implementations (#1647) + * Fix links to #live not starting live view (#1648) + +------------------------------------------------------------------- Old: ---- openQA-4.5.1525548058.3f6bb61a.tar.xz New: ---- openQA-4.5.1526033850.1ad9148d.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openQA.spec ++++++ --- /var/tmp/diff_new_pack.dRrzOY/_old 2018-05-15 10:33:53.447111017 +0200 +++ /var/tmp/diff_new_pack.dRrzOY/_new 2018-05-15 10:33:53.451110870 +0200 @@ -36,7 +36,7 @@ # runtime requirements that also the testsuite needs %define t_requires perl(DBD::Pg) perl(DBIx::Class) perl(Config::IniFiles) perl(SQL::Translator) perl(Date::Format) perl(File::Copy::Recursive) perl(DateTime::Format::Pg) perl(Net::OpenID::Consumer) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Plugin::AssetPack) perl(aliased) perl(Config::Tiny) perl(DBIx::Class::DynamicDefault) perl(DBIx::Class::Schema::Config) perl(DBIx::Class::Storage::Statistics) perl(IO::Socket::SSL) perl(Data::Dump) perl(DBIx::Class::OptimisticLocking) perl(Text::Markdown) perl(Net::DBus) perl(IPC::Run) perl(Archive::Extract) perl(CSS::Minifier::XS) perl(JavaScript::Minifier::XS) perl(Time::ParseDate) perl(Sort::Versions) perl(Mojo::RabbitMQ::Client) perl(BSD::Resource) perl(Cpanel::JSON::XS) perl(Pod::POM) perl(Mojo::IOLoop::ReadWriteProcess) perl(Minion) perl(Mojo::Pg) Name: openQA -Version: 4.5.1525548058.3f6bb61a +Version: 4.5.1526033850.1ad9148d Release: 0 Summary: The openQA web-frontend, scheduler and tools License: GPL-2.0+ ++++++ openQA-4.5.1525548058.3f6bb61a.tar.xz -> openQA-4.5.1526033850.1ad9148d.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-4.5.1525548058.3f6bb61a/assets/javascripts/test_result.js new/openQA-4.5.1526033850.1ad9148d/assets/javascripts/test_result.js --- old/openQA-4.5.1525548058.3f6bb61a/assets/javascripts/test_result.js 2018-05-05 21:20:58.000000000 +0200 +++ new/openQA-4.5.1526033850.1ad9148d/assets/javascripts/test_result.js 2018-05-11 12:17:30.000000000 +0200 @@ -293,6 +293,10 @@ pauseLiveView(); } }); + // start the live view if it's default link + if (window.location.hash === '#live') { + resumeLiveView(); + } // setup result filter, define function to apply filter changes var detailsFilter = $('.details-filter'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-4.5.1525548058.3f6bb61a/lib/OpenQA/Parser/Result/OpenQA.pm new/openQA-4.5.1526033850.1ad9148d/lib/OpenQA/Parser/Result/OpenQA.pm --- old/openQA-4.5.1525548058.3f6bb61a/lib/OpenQA/Parser/Result/OpenQA.pm 2018-05-05 21:20:58.000000000 +0200 +++ new/openQA-4.5.1526033850.1ad9148d/lib/OpenQA/Parser/Result/OpenQA.pm 2018-05-11 12:17:30.000000000 +0200 @@ -25,6 +25,15 @@ has dents => 0; has [qw(result name test)]; +sub new { + shift->SUPER::new(@_)->parsed_details; +} + +# Adds _source => 'parser' to all the details of the result +sub parsed_details { + $_[0]->details([map { $_->{_source} = 'parser'; $_ } @{$_[0]->details}]); +} + sub search_in_details { my ($self, $field, $re) = @_; my $results = OpenQA::Parser::Result::OpenQA::Results->new(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-4.5.1525548058.3f6bb61a/t/30-test_parser.t new/openQA-4.5.1526033850.1ad9148d/t/30-test_parser.t --- old/openQA-4.5.1525548058.3f6bb61a/t/30-test_parser.t 2018-05-05 21:20:58.000000000 +0200 +++ new/openQA-4.5.1526033850.1ad9148d/t/30-test_parser.t 2018-05-11 12:17:30.000000000 +0200 @@ -380,19 +380,22 @@ dents => 0, details => [ { - result => 'ok', - text => 'tests-systemd-9_post-tests_audits-1.txt', - title => 'audit with systemd-analyze blame' + _source => 'parser', + result => 'ok', + text => 'tests-systemd-9_post-tests_audits-1.txt', + title => 'audit with systemd-analyze blame' }, { - result => 'ok', - text => 'tests-systemd-9_post-tests_audits-2.txt', - title => 'audit with systemd-analyze critical-chain' + _source => 'parser', + result => 'ok', + text => 'tests-systemd-9_post-tests_audits-2.txt', + title => 'audit with systemd-analyze critical-chain' }, { - result => 'ok', - text => 'tests-systemd-9_post-tests_audits-3.txt', - title => 'audit with systemd-cgls' + _source => 'parser', + result => 'ok', + text => 'tests-systemd-9_post-tests_audits-3.txt', + title => 'audit with systemd-cgls' } ], result => 'ok' @@ -466,9 +469,10 @@ 'dents' => 0, 'details' => [ { - 'result' => 'ok', - 'text' => 'xunit-child_of_child_two-1.txt', - 'title' => 'child of child two test' + '_source' => 'parser', + 'result' => 'ok', + 'text' => 'xunit-child_of_child_two-1.txt', + 'title' => 'child of child two test' } ], 'result' => 'ok' @@ -583,6 +587,7 @@ my $i = 2; $p->results->each( sub { + is $_->details->[0]->{_source}, 'parser'; is $_->result, 'ok', 'Tests passed' or diag explain $_; ok !!$_->environment, 'Environment is present'; ok !!$_->test, 'Test information is present'; @@ -603,6 +608,7 @@ my $i = 2; $p->results->each( sub { + is $_->details->[0]->{_source}, 'parser'; is $_->status, 'pass', 'Tests passed'; ok !!$_->environment, 'Environment is present'; ok !!$_->test, 'Test information is present';