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-11-24 17:03:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openQA (Old) and /work/SRC/openSUSE:Factory/.openQA.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openQA" Tue Nov 24 17:03:01 2026 rev:912 rq:1400290 version:5.1795520239.e4d21551 Changes: -------- --- /work/SRC/openSUSE:Factory/openQA/openQA.changes 2026-11-24 12:45:38.660294621 +0100 +++ /work/SRC/openSUSE:Factory/.openQA.new.1340718/openQA.changes 2026-11-24 17:03:11.830431627 +0100 @@ -1,0 +2,14 @@ +Tue Nov 24 11:37:31 UTC 2026 - [email protected] + +- Update to version 5.1795520239.e4d21551: + * fix(cacheservice): report downloading on retry + * fix(tasks): delay retry on termination signals + +------------------------------------------------------------------- +Mon Nov 23 20:57:26 UTC 2026 - [email protected] + +- Update to version 5.1795465603.f6eb1d74: + * chore(deps): bump azure/setup-helm (#8152) + * fix(apparmor): allow webui access to fixed assets + +------------------------------------------------------------------- Old: ---- openQA-5.1795441465.39dc1745.obscpio New: ---- openQA-5.1795520239.e4d21551.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openQA-client-test.spec ++++++ --- /var/tmp/diff_new_pack.Gz8bOI/_old 2026-11-24 17:03:15.421583773 +0100 +++ /var/tmp/diff_new_pack.Gz8bOI/_new 2026-11-24 17:03:15.424583900 +0100 @@ -18,7 +18,7 @@ %define short_name openQA-client Name: %{short_name}-test -Version: 5.1795441465.39dc1745 +Version: 5.1795520239.e4d21551 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA-test.spec ++++++ --- /var/tmp/diff_new_pack.Gz8bOI/_old 2026-11-24 17:03:15.481586315 +0100 +++ /var/tmp/diff_new_pack.Gz8bOI/_new 2026-11-24 17:03:15.482586358 +0100 @@ -18,7 +18,7 @@ %define short_name openQA Name: %{short_name}-test -Version: 5.1795441465.39dc1745 +Version: 5.1795520239.e4d21551 Release: 0 Summary: Test package for openQA License: GPL-2.0-or-later ++++++ openQA-worker-test.spec ++++++ --- /var/tmp/diff_new_pack.Gz8bOI/_old 2026-11-24 17:03:15.535588603 +0100 +++ /var/tmp/diff_new_pack.Gz8bOI/_new 2026-11-24 17:03:15.538588730 +0100 @@ -18,7 +18,7 @@ %define short_name openQA-worker Name: %{short_name}-test -Version: 5.1795441465.39dc1745 +Version: 5.1795520239.e4d21551 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA.spec ++++++ --- /var/tmp/diff_new_pack.Gz8bOI/_old 2026-11-24 17:03:15.589590891 +0100 +++ /var/tmp/diff_new_pack.Gz8bOI/_new 2026-11-24 17:03:15.591590976 +0100 @@ -104,7 +104,7 @@ %define devel_requires %devel_no_selenium_requires chromedriver Name: openQA -Version: 5.1795441465.39dc1745 +Version: 5.1795520239.e4d21551 Release: 0 Summary: Framework for automated system-level testing (web-frontend, scheduler and tools) Group: Development/Tools/Other ++++++ openQA-5.1795441465.39dc1745.obscpio -> openQA-5.1795520239.e4d21551.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1795441465.39dc1745/.github/workflows/check-helm-chart.yml new/openQA-5.1795520239.e4d21551/.github/workflows/check-helm-chart.yml --- old/openQA-5.1795441465.39dc1745/.github/workflows/check-helm-chart.yml 2026-11-23 14:44:25.000000000 +0100 +++ new/openQA-5.1795520239.e4d21551/.github/workflows/check-helm-chart.yml 2026-11-24 12:37:19.000000000 +0100 @@ -12,7 +12,7 @@ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install Helm - uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1 + uses: azure/setup-helm@2f5e7bc67f1f9972ab16657bb795f36d8f04de0e # v5.1.0 with: version: v3.8.1 @@ -38,7 +38,7 @@ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install Helm - uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1 + uses: azure/setup-helm@2f5e7bc67f1f9972ab16657bb795f36d8f04de0e # v5.1.0 with: version: v3.8.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1795441465.39dc1745/lib/OpenQA/CacheService/Controller/API.pm new/openQA-5.1795520239.e4d21551/lib/OpenQA/CacheService/Controller/API.pm --- old/openQA-5.1795441465.39dc1745/lib/OpenQA/CacheService/Controller/API.pm 2026-11-23 14:44:25.000000000 +0100 +++ new/openQA-5.1795520239.e4d21551/lib/OpenQA/CacheService/Controller/API.pm 2026-11-24 12:37:19.000000000 +0100 @@ -20,22 +20,29 @@ my $status = {status => 'downloading'}; my $notes = $info->{notes}; if ($info->{state} eq 'finished' && !$self->progress->is_downloading($notes->{lock})) { - $status = { - status => 'processed', - result => $info->{result}, - output => $notes->{output}, - has_download_error => $notes->{has_download_error}}; - # Output from the job that actually did the download - if (my $id = $info->{notes}{downloading_job}) { + if (my $id = $notes->{downloading_job}) { if (my $job = $self->minion->job($id)) { - if (my $info = $job->info) { - return $self->render(json => {error => "Minion job #$id failed: $info->{result}"}, status => 500) - if $info->{state} eq 'failed'; - $status->{output} = $info->{notes}{output} if $info->{state} eq 'finished'; + if (my $dl_info = $job->info) { + return $self->render(json => {error => "Minion job #$id failed: $dl_info->{result}"}, status => 500) + if $dl_info->{state} eq 'failed'; + return $self->render(json => {status => 'downloading'}) + if $dl_info->{state} ne 'finished'; + $status = { + status => 'processed', + result => $info->{result}, + output => $dl_info->{notes}{output}, + has_download_error => $dl_info->{notes}{has_download_error}}; + return $self->render(json => $status); } } } + + $status = { + status => 'processed', + result => $info->{result}, + output => $notes->{output}, + has_download_error => $notes->{has_download_error}}; } $self->render(json => $status); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1795441465.39dc1745/lib/OpenQA/Task/SignalGuard.pm new/openQA-5.1795520239.e4d21551/lib/OpenQA/Task/SignalGuard.pm --- old/openQA-5.1795441465.39dc1745/lib/OpenQA/Task/SignalGuard.pm 2026-11-23 14:44:25.000000000 +0100 +++ new/openQA-5.1795520239.e4d21551/lib/OpenQA/Task/SignalGuard.pm 2026-11-24 12:37:19.000000000 +0100 @@ -17,6 +17,12 @@ # action twice. has abort => 0; +# delay in seconds before retrying the job after receiving a termination signal +# note: Prevents shutting-down worker manager processes from immediately dequeuing +# the retried job and spawning a new child during shutdown, which would miss +# the initial signal and cause systemd to hit its stop timeout and send SIGKILL. +has retry_delay => 30; + my $SIGNALED = 0; # retries the specified Minion job when receiving SIGTERM/SIGINT as long as the returned object exists @@ -50,7 +56,7 @@ # schedule a retry before stopping the job's execution prematurely $job->note(signal_handler => "Received signal $signal, scheduling retry and releasing locks"); - $job->retry; + $job->retry({delay => $self_weak->retry_delay}); exit; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1795441465.39dc1745/profiles/apparmor.d/usr.share.openqa.script.openqa new/openQA-5.1795520239.e4d21551/profiles/apparmor.d/usr.share.openqa.script.openqa --- old/openQA-5.1795441465.39dc1745/profiles/apparmor.d/usr.share.openqa.script.openqa 2026-11-23 14:44:25.000000000 +0100 +++ new/openQA-5.1795520239.e4d21551/profiles/apparmor.d/usr.share.openqa.script.openqa 2026-11-24 12:37:19.000000000 +0100 @@ -82,9 +82,11 @@ /var/lib/openqa/share/factory/hdd/ rw, /var/lib/openqa/share/factory/hdd/* rw, /var/lib/openqa/share/factory/hdd/fixed/ r, + /var/lib/openqa/share/factory/hdd/fixed/* r, /var/lib/openqa/share/factory/iso/ rw, /var/lib/openqa/share/factory/iso/* rw, /var/lib/openqa/share/factory/iso/fixed/ r, + /var/lib/openqa/share/factory/iso/fixed/* r, /var/lib/openqa/share/factory/other/ rw, /var/lib/openqa/share/factory/other/** rw, /var/lib/openqa/share/factory/repo/ r, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1795441465.39dc1745/t/16-utils.t new/openQA-5.1795520239.e4d21551/t/16-utils.t --- old/openQA-5.1795441465.39dc1745/t/16-utils.t 2026-11-23 14:44:25.000000000 +0100 +++ new/openQA-5.1795520239.e4d21551/t/16-utils.t 2026-11-24 12:37:19.000000000 +0100 @@ -500,8 +500,17 @@ $job->called_ok('note'); $job->called_ok('retry'); $job->called_args_pos_is(0, 3, 'Received signal INT, scheduling retry and releasing locks'); + is_deeply scalar(($job->call_args(2))[1]), {delay => 30}, 'retry called with default delay'; $job->clear; }; + subtest 'signal arrives with custom delay' => sub { + my $job_custom = Test::MockObject->new; + $job_custom->set_true($_) for qw(retry finish note); + my $guard = OpenQA::Task::SignalGuard->new($job_custom, retry_delay => 45); + is exit_code { kill INT => $$ }, 0, 'exited'; + $job_custom->called_ok('retry'); + is_deeply scalar(($job_custom->call_args(2))[1]), {delay => 45}, 'retry called with custom delay'; + }; subtest 'signal arrives after retry disabled' => sub { $signal_guard->retry(0); is exit_code { kill INT => $$ }, undef, 'not exited (the job is supposed to be concluded at this point)'; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1795441465.39dc1745/t/25-cache-service.t new/openQA-5.1795520239.e4d21551/t/25-cache-service.t --- old/openQA-5.1795441465.39dc1745/t/25-cache-service.t 2026-11-23 14:44:25.000000000 +0100 +++ new/openQA-5.1795520239.e4d21551/t/25-cache-service.t 2026-11-24 12:37:19.000000000 +0100 @@ -694,6 +694,50 @@ } }; +subtest 'API::status handling of retried or failed downloading_job' => sub { + my $app = $t->app; + my $dl_id = $app->minion->enqueue( + cache_asset => [123, 'hdd', 'test.qcow2', 'host'] => {notes => {lock => 'test_lock_status'}}); + my $dep_id = $app->minion->enqueue(cache_asset => [124, 'hdd', 'test.qcow2', 'host'] => + {notes => {lock => 'test_lock_status', downloading_job => $dl_id}}); + my $worker = $app->minion->worker->register; + my $dep_job = $worker->dequeue(0, {id => $dep_id}); + $dep_job->finish; + + my $dl_job; + subtest 'dependent job reports downloading while downloading job is inactive or active' => sub { + $t->get_ok("/status/$dep_id")->status_is(200)->json_is('/status' => 'downloading'); + + $dl_job = $worker->dequeue(0, {id => $dl_id}); + $t->get_ok("/status/$dep_id")->status_is(200)->json_is('/status' => 'downloading'); + }; + + subtest 'dependent job returns error when downloading job failed' => sub { + $dl_job->fail('Something broke'); + $t->get_ok("/status/$dep_id")->status_is(500) + ->json_like('/error' => qr/Minion job #$dl_id failed: Something broke/); + }; + + subtest 'dependent job reports downloading again when downloading job is retried' => sub { + $dl_job->retry; + $t->get_ok("/status/$dep_id")->status_is(200)->json_is('/status' => 'downloading'); + }; + + subtest 'dependent job is processed once downloading job finishes' => sub { + $dl_job = $worker->dequeue(0, {id => $dl_id}); + $dl_job->note(output => 'Downloaded ok', has_download_error => Mojo::JSON->false); + $dl_job->finish; + $t->get_ok("/status/$dep_id")->status_is(200)->json_is('/status' => 'processed') + ->json_is('/output' => 'Downloaded ok')->json_is('/has_download_error' => Mojo::JSON->false); + $t->get_ok("/status/$dl_id")->status_is(200)->json_is('/status' => 'processed') + ->json_is('/output' => 'Downloaded ok')->json_is('/has_download_error' => Mojo::JSON->false); + }; + + $worker->unregister; + $dep_job->remove; + $dl_job->remove; +}; + done_testing; END { ++++++ openQA.obsinfo ++++++ --- /var/tmp/diff_new_pack.Gz8bOI/_old 2026-11-24 17:03:25.784022799 +0100 +++ /var/tmp/diff_new_pack.Gz8bOI/_new 2026-11-24 17:03:25.788022968 +0100 @@ -1,5 +1,5 @@ name: openQA -version: 5.1795441465.39dc1745 -mtime: 1795441465 -commit: 39dc17450d3024393e825b1e15274f66ad126a30 +version: 5.1795520239.e4d21551 +mtime: 1795520239 +commit: e4d215515ac4d69c28aab41f04b90cb1402e6c86
