Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package openQA for openSUSE:Factory checked in at 2026-01-21 14:17:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openQA (Old) and /work/SRC/openSUSE:Factory/.openQA.new.1928 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openQA" Wed Jan 21 14:17:11 2026 rev:797 rq:1328385 version:5.1768919350.40d92537 Changes: -------- --- /work/SRC/openSUSE:Factory/openQA/openQA.changes 2026-01-20 21:05:28.934349385 +0100 +++ /work/SRC/openSUSE:Factory/.openQA.new.1928/openQA.changes 2026-01-21 14:17:29.287230592 +0100 @@ -1,0 +2,8 @@ +Tue Jan 20 20:12:31 UTC 2026 - [email protected] + +- Update to version 5.1768919350.40d92537: + * tests: Improve/add tests for "no products found" case + * KernelBug: Extend the kernel bug template + * feat: Improve error message when falling back to version `*` + +------------------------------------------------------------------- Old: ---- openQA-5.1768856318.847e4fc7.obscpio New: ---- openQA-5.1768919350.40d92537.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openQA-client-test.spec ++++++ --- /var/tmp/diff_new_pack.mXvc22/_old 2026-01-21 14:17:30.963300621 +0100 +++ /var/tmp/diff_new_pack.mXvc22/_new 2026-01-21 14:17:30.963300621 +0100 @@ -18,7 +18,7 @@ %define short_name openQA-client Name: %{short_name}-test -Version: 5.1768856318.847e4fc7 +Version: 5.1768919350.40d92537 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA-devel-test.spec ++++++ --- /var/tmp/diff_new_pack.mXvc22/_old 2026-01-21 14:17:31.011302627 +0100 +++ /var/tmp/diff_new_pack.mXvc22/_new 2026-01-21 14:17:31.015302793 +0100 @@ -18,7 +18,7 @@ %define short_name openQA-devel Name: %{short_name}-test -Version: 5.1768856318.847e4fc7 +Version: 5.1768919350.40d92537 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA-test.spec ++++++ --- /var/tmp/diff_new_pack.mXvc22/_old 2026-01-21 14:17:31.083305635 +0100 +++ /var/tmp/diff_new_pack.mXvc22/_new 2026-01-21 14:17:31.087305802 +0100 @@ -18,7 +18,7 @@ %define short_name openQA Name: %{short_name}-test -Version: 5.1768856318.847e4fc7 +Version: 5.1768919350.40d92537 Release: 0 Summary: Test package for openQA License: GPL-2.0-or-later ++++++ openQA-worker-test.spec ++++++ --- /var/tmp/diff_new_pack.mXvc22/_old 2026-01-21 14:17:31.155308643 +0100 +++ /var/tmp/diff_new_pack.mXvc22/_new 2026-01-21 14:17:31.155308643 +0100 @@ -18,7 +18,7 @@ %define short_name openQA-worker Name: %{short_name}-test -Version: 5.1768856318.847e4fc7 +Version: 5.1768919350.40d92537 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA.spec ++++++ --- /var/tmp/diff_new_pack.mXvc22/_old 2026-01-21 14:17:31.211310983 +0100 +++ /var/tmp/diff_new_pack.mXvc22/_new 2026-01-21 14:17:31.219311318 +0100 @@ -99,7 +99,7 @@ %define devel_requires %devel_no_selenium_requires chromedriver Name: openQA -Version: 5.1768856318.847e4fc7 +Version: 5.1768919350.40d92537 Release: 0 Summary: The openQA web-frontend, scheduler and tools License: GPL-2.0-or-later ++++++ openQA-5.1768856318.847e4fc7.obscpio -> openQA-5.1768919350.40d92537.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1768856318.847e4fc7/lib/OpenQA/Schema/Result/ScheduledProducts.pm new/openQA-5.1768919350.40d92537/lib/OpenQA/Schema/Result/ScheduledProducts.pm --- old/openQA-5.1768856318.847e4fc7/lib/OpenQA/Schema/Result/ScheduledProducts.pm 2026-01-19 21:58:38.000000000 +0100 +++ new/openQA-5.1768919350.40d92537/lib/OpenQA/Schema/Result/ScheduledProducts.pm 2026-01-20 15:29:10.000000000 +0100 @@ -550,7 +550,7 @@ }); unless (@products) { - push(@$notes, 'no products found for version ' . $args->{DISTRI} . ' falling back to "*"'); + push(@$notes, qq|no products found for version "$args->{VERSION}", falling back to "*"|); @products = $schema->resultset('Products')->search( { distri => _distri_key($args), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1768856318.847e4fc7/lib/OpenQA/WebAPI/Plugin/IssueReporter/OpenSuseKernelBug.pm new/openQA-5.1768919350.40d92537/lib/OpenQA/WebAPI/Plugin/IssueReporter/OpenSuseKernelBug.pm --- old/openQA-5.1768856318.847e4fc7/lib/OpenQA/WebAPI/Plugin/IssueReporter/OpenSuseKernelBug.pm 2026-01-19 21:58:38.000000000 +0100 +++ new/openQA-5.1768919350.40d92537/lib/OpenQA/WebAPI/Plugin/IssueReporter/OpenSuseKernelBug.pm 2026-01-20 15:29:10.000000000 +0100 @@ -6,7 +6,8 @@ use Mojo::Template; use Mojo::Loader qw(data_section); use Mojo::URL; -use OpenQA::WebAPI::Plugin::IssueReporter::Context qw(get_context); +use Mojo::File qw(path); +use OpenQA::WebAPI::Plugin::IssueReporter::Context qw(get_context get_regression_links); use OpenQA::WebAPI::Plugin::IssueReporter::OpenSuseBugzillaUtils qw(get_bugzilla_url get_bugzilla_distri_name get_bugzilla_product_name); @@ -17,6 +18,16 @@ my $bugzilla_distri = get_bugzilla_distri_name($raw_distri); my $bugzilla_product = get_bugzilla_product_name($job, $raw_distri, \$bugzilla_distri); my $bugzilla_url = get_bugzilla_url($raw_distri); + my ($first_known_bad, $last_good) = get_regression_links($c, $job); + my $latest = $c->url_for('latest')->query($job->scenario_hash)->to_abs; + my $kernel_report = ''; + + # kernel bug template can parse the kernel_bug_report.txt + # which is then pass to the bugzilla comment + if (my $dir = $job->result_dir) { + my $report = path($dir)->list_tree->grep(sub { $_->basename =~ /kernel_bug_report\.txt$/ })->first; + $kernel_report = $report->slurp if $report; + } # main part of the kernel bug report my $kernel_bug = _render( @@ -25,13 +36,20 @@ build => $ctx->{build}, distri => $raw_distri, version => $ctx->{version}, + first_known_bad => $first_known_bad, + last_good => $last_good, + latest => "$latest", + kernel_report => $kernel_report, }); my $url = Mojo::URL->new($bugzilla_url)->query( { - short_desc => "[Build $ctx->{build}] Kernel test fails in $ctx->{module}", + short_desc => "[QE][Build $ctx->{build}] Kernel test fails in $ctx->{module}", comment => $kernel_bug, product => "$bugzilla_distri $bugzilla_product", + bug_file_loc => $ctx->{step_url}, + cf_foundby => 'openQA', + component => 'Kernel', #pre-fill the kernel component }); return [ @@ -53,10 +71,16 @@ __DATA__ @@ kernel_bug.txt.ep +% if ($kernel_report) { +## Detailed kernel info: + +<%= $kernel_report %> +% } else { == EDIT == IMPORTANT: For kernel bugs please provide detailed kernel information (`uname -a`, rpm -qi kernel-default, ...) +% } -Build details: -Build: <%= $build %> -Distri: <%= $distri %> -Version: <%= $version %> +## Useful links +Fails since (at least) Build: <%= $first_known_bad %> +Last good: <%= $last_good %> (or more recent) +The latest result in this scenario: <%= $latest %> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1768856318.847e4fc7/t/43-cli-schedule.t new/openQA-5.1768919350.40d92537/t/43-cli-schedule.t --- old/openQA-5.1768856318.847e4fc7/t/43-cli-schedule.t 2026-01-19 21:58:38.000000000 +0100 +++ new/openQA-5.1768919350.40d92537/t/43-cli-schedule.t 2026-01-20 15:29:10.000000000 +0100 @@ -65,7 +65,7 @@ is $schedule->host, $host, 'host set'; is $res, 1, 'non-zero return-code if parameters missing'; - combined_like { $res = $schedule->run(@options, @settings1) } qr/no products found for/, + combined_like { $res = $schedule->run(@options, @settings1) } qr/no products found for example-DVD-x86_64/, '"no products found" error'; is $res, 1, 'non-zero return-code if no products could be found'; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1768856318.847e4fc7/t/api/02-iso.t new/openQA-5.1768919350.40d92537/t/api/02-iso.t --- old/openQA-5.1768856318.847e4fc7/t/api/02-iso.t 2026-01-19 21:58:38.000000000 +0100 +++ new/openQA-5.1768919350.40d92537/t/api/02-iso.t 2026-01-20 15:29:10.000000000 +0100 @@ -22,6 +22,7 @@ my $t = client(Test::Mojo->new('OpenQA::WebAPI')); my $schema = $t->app->schema; my $job_templates = $schema->resultset('JobTemplates'); +my $products = $schema->resultset('Products'); my $test_suites = $schema->resultset('TestSuites'); my $jobs = $schema->resultset('Jobs'); my $scheduled_products = $schema->resultset('ScheduledProducts'); @@ -77,17 +78,16 @@ # later on is found as important and handled accordingly $jobs->find(99928)->comments->create({text => 'any text', user_id => 99901}); +my @job_template_params = ( + machine => {name => '64bit'}, + test_suite => {name => 'textmode-2'}, + prio => 42, + group_id => 1002, +); + subtest 'group filter and priority override' => sub { # add a job template for group 1002 - my $job_template = $job_templates->create( - { - machine => {name => '64bit'}, - test_suite => {name => 'textmode-2'}, - prio => 42, - group_id => 1002, - product_id => 1, - }); - + my $job_template = $job_templates->create({@job_template_params, product_id => 1}); my $res = schedule_iso($t, {%iso, PRECEDENCE => 'original', _GROUP => 'invalid group name'}); is($res->json->{count}, 0, 'no jobs created if group invalid'); @@ -1054,4 +1054,17 @@ $schema->txn_rollback; }; +subtest 'fallback to version "*"' => sub { + my %prod_params = (distri => 'opensuse', version => '*', flavor => 'DVD', arch => 'i586', name => 'generic'); + my $product = $products->create(\%prod_params); + ok $product->id, 'generic product created ' . $product->id; + my $job_template = $job_templates->create({@job_template_params, product_id => $product->id}); + my $res = schedule_iso($t, {%iso, VERSION => 'foobar', _GROUP => 'opensuse test'}); + my $scheduled_product = $scheduled_products->find($res->json->{scheduled_product_id}); + my $results = $scheduled_product->results; + is @{$results->{successful_job_ids}}, 1, 'job successfully scheduled'; + is $results->{notes}->[0], 'no products found for version "foobar", falling back to "*"', 'note present' + or always_explain $results; +}; + done_testing(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1768856318.847e4fc7/t/ui/18-tests-details.t new/openQA-5.1768919350.40d92537/t/ui/18-tests-details.t --- old/openQA-5.1768856318.847e4fc7/t/ui/18-tests-details.t 2026-01-19 21:58:38.000000000 +0100 +++ new/openQA-5.1768919350.40d92537/t/ui/18-tests-details.t 2026-01-20 15:29:10.000000000 +0100 @@ -234,7 +234,7 @@ like($url[1], qr{(?:\?|&)product=openSUSE\+Distribution(?:&|$)}, 'kernel product bug sets product'); like( $url[1], - qr{(?:\?|&)short_desc=%5BBuild\+0091%5D\+Kernel\+test\+fails\+in\+bootloader}, + qr{(?:\?|&)short_desc=%5BQE%5D%5BBuild\+0091%5D\+Kernel\+test\+fails\+in\+bootloader}, 'kernel short_desc correct' ); like($url[1], qr{(?:\?|&)comment=}, 'kernel product bug has comment template'); ++++++ openQA.obsinfo ++++++ --- /var/tmp/diff_new_pack.mXvc22/_old 2026-01-21 14:17:47.920009096 +0100 +++ /var/tmp/diff_new_pack.mXvc22/_new 2026-01-21 14:17:47.932009598 +0100 @@ -1,5 +1,5 @@ name: openQA -version: 5.1768856318.847e4fc7 -mtime: 1768856318 -commit: 847e4fc7f7c46ec6ca38a7f2cea9a89a68f503db +version: 5.1768919350.40d92537 +mtime: 1768919350 +commit: 40d92537397df4eca165e7fe85a057842a1dd2a6
