Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package openQA for openSUSE:Factory checked in at 2025-09-26 22:24:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openQA (Old) and /work/SRC/openSUSE:Factory/.openQA.new.11973 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openQA" Fri Sep 26 22:24:33 2025 rev:757 rq:1307195 version:5.1758814503.03d923a4 Changes: -------- --- /work/SRC/openSUSE:Factory/openQA/openQA.changes 2025-09-25 18:46:08.944315125 +0200 +++ /work/SRC/openSUSE:Factory/.openQA.new.11973/openQA.changes 2025-09-26 22:25:30.740513963 +0200 @@ -1,0 +2,8 @@ +Thu Sep 25 17:12:45 UTC 2025 - [email protected] + +- Update to version 5.1758814503.03d923a4: + * Use Mojo::File in Worker for is_qemu_running + * Use Mojo::File in Worker for meminfo + * Document archiving of important jobs + +------------------------------------------------------------------- Old: ---- openQA-5.1758729450.b88c0b40.obscpio New: ---- openQA-5.1758814503.03d923a4.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openQA-client-test.spec ++++++ --- /var/tmp/diff_new_pack.ohS8YA/_old 2025-09-26 22:25:32.012567611 +0200 +++ /var/tmp/diff_new_pack.ohS8YA/_new 2025-09-26 22:25:32.012567611 +0200 @@ -18,7 +18,7 @@ %define short_name openQA-client Name: %{short_name}-test -Version: 5.1758729450.b88c0b40 +Version: 5.1758814503.03d923a4 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA-devel-test.spec ++++++ --- /var/tmp/diff_new_pack.ohS8YA/_old 2025-09-26 22:25:32.060569636 +0200 +++ /var/tmp/diff_new_pack.ohS8YA/_new 2025-09-26 22:25:32.064569804 +0200 @@ -18,7 +18,7 @@ %define short_name openQA-devel Name: %{short_name}-test -Version: 5.1758729450.b88c0b40 +Version: 5.1758814503.03d923a4 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA-test.spec ++++++ --- /var/tmp/diff_new_pack.ohS8YA/_old 2025-09-26 22:25:32.100571323 +0200 +++ /var/tmp/diff_new_pack.ohS8YA/_new 2025-09-26 22:25:32.112571829 +0200 @@ -18,7 +18,7 @@ %define short_name openQA Name: %{short_name}-test -Version: 5.1758729450.b88c0b40 +Version: 5.1758814503.03d923a4 Release: 0 Summary: Test package for openQA License: GPL-2.0-or-later ++++++ openQA-worker-test.spec ++++++ --- /var/tmp/diff_new_pack.ohS8YA/_old 2025-09-26 22:25:32.160573853 +0200 +++ /var/tmp/diff_new_pack.ohS8YA/_new 2025-09-26 22:25:32.164574022 +0200 @@ -18,7 +18,7 @@ %define short_name openQA-worker Name: %{short_name}-test -Version: 5.1758729450.b88c0b40 +Version: 5.1758814503.03d923a4 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA.spec ++++++ --- /var/tmp/diff_new_pack.ohS8YA/_old 2025-09-26 22:25:32.220576384 +0200 +++ /var/tmp/diff_new_pack.ohS8YA/_new 2025-09-26 22:25:32.224576553 +0200 @@ -99,7 +99,7 @@ %define devel_requires %devel_no_selenium_requires chromedriver Name: openQA -Version: 5.1758729450.b88c0b40 +Version: 5.1758814503.03d923a4 Release: 0 Summary: The openQA web-frontend, scheduler and tools License: GPL-2.0-or-later ++++++ openQA-5.1758729450.b88c0b40.obscpio -> openQA-5.1758814503.03d923a4.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1758729450.b88c0b40/docs/Client.asciidoc new/openQA-5.1758814503.03d923a4/docs/Client.asciidoc --- old/openQA-5.1758729450.b88c0b40/docs/Client.asciidoc 2025-09-24 17:57:30.000000000 +0200 +++ new/openQA-5.1758814503.03d923a4/docs/Client.asciidoc 2025-09-25 17:35:03.000000000 +0200 @@ -377,7 +377,7 @@ exact output as well as how it escapes control characters will change a bit over time. -== Archive mode +== Archiving individual job results With the `archive` subcommand of `openqa-cli` you can download all the assets and test results of a job for archiving or debugging purposes. @@ -393,3 +393,6 @@ openqa-cli archive --host http://openqa.example.com --with-thumbnails \ 408 ~/openqa_job_408 ---- + +See also <<UsersGuide.asciidoc#archiving,Archiving>> for automatic archiving +of old jobs. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1758729450.b88c0b40/docs/Installing.asciidoc new/openQA-5.1758814503.03d923a4/docs/Installing.asciidoc --- old/openQA-5.1758729450.b88c0b40/docs/Installing.asciidoc 2025-09-24 17:57:30.000000000 +0200 +++ new/openQA-5.1758814503.03d923a4/docs/Installing.asciidoc 2025-09-25 17:35:03.000000000 +0200 @@ -1653,6 +1653,9 @@ * the "project directory" - defined as `$basedir/openqa`, by default `/var/lib/openqa` - referred as `$prjdir` within openQA +* the "archive directory" + - defined as `$prjdir/openqa`, by default `/var/lib/openqa/archive` + - referred as `$archivedir` within openQA * the "share directory": contains directories shared between web UI and (remote) workers - defined as `$prjdir/share`, by default `/var/lib/openqa/share` - referred as `$sharedir` within openQA diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1758729450.b88c0b40/docs/UsersGuide.asciidoc new/openQA-5.1758814503.03d923a4/docs/UsersGuide.asciidoc --- old/openQA-5.1758729450.b88c0b40/docs/UsersGuide.asciidoc 2025-09-24 17:57:30.000000000 +0200 +++ new/openQA-5.1758814503.03d923a4/docs/UsersGuide.asciidoc 2025-09-25 17:35:03.000000000 +0200 @@ -1435,11 +1435,26 @@ section of <<GettingStarted.asciidoc#_configuration,the web UI configuration>>. Jobs outside of any group use the limits configured in the `[no_group_limits]` section of the web UI configuration. -* Archiving of important jobs can be enabled. Checkout the related settings - within the `[archiving]` section of the config file for details. * The <<Installing.asciidoc#auditing,Auditing>> section explains the cleanup of the audit log. +[id="archiving"] +=== Automatic archiving of old jobs === + +Archiving of important jobs can be enabled: +[source,ini] +-------------------------------------------------------------------------------- +[archiving] +## Moves results of important jobs which are preserved during the cleanup +## to OPENQA_ARCHIVEDIR (/var/lib/openqa/archive/ by default) +#archive_preserved_important_jobs = 0 +-------------------------------------------------------------------------------- + +When archiving is enabled important job results are moved to the archive +directory once they reach the expiration for regular job logs. This +happens as part of the normal cleanup. In the web UI an icon indicates that +a job was archived. + [id="asset_cleanup"] === Cleanup strategy for assets === diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1758729450.b88c0b40/lib/OpenQA/Worker.pm new/openQA-5.1758814503.03d923a4/lib/OpenQA/Worker.pm --- old/openQA-5.1758729450.b88c0b40/lib/OpenQA/Worker.pm 2025-09-24 17:57:30.000000000 +0200 +++ new/openQA-5.1758814503.03d923a4/lib/OpenQA/Worker.pm 2025-09-25 17:35:03.000000000 +0200 @@ -181,15 +181,12 @@ } # determine memory limit - open(my $MEMINFO, '<', '/proc/meminfo'); - for my $line (<$MEMINFO>) { - chomp $line; + for my $line (eval { split /\n/, path('/proc/meminfo')->slurp }) { if ($line =~ m/MemTotal:\s+(\d+).+kB/) { my $mem_max = $1 ? $1 : ''; $caps->{mem_max} = int($mem_max / 1024) if $mem_max; } } - close($MEMINFO); # determine worker class ... if (my $worker_class = $global_settings->{WORKER_CLASS}) { @@ -620,11 +617,10 @@ # checks whether a qemu instance using the current pool directory is running and returns its PID if that's the case sub is_qemu_running ($self) { return undef unless my $pool_directory = $self->pool_directory; - return undef unless open(my $fh, '<', my $pid_file = "$pool_directory/qemu.pid"); - - my $pid = <$fh>; - chomp($pid); - close($fh); + my $pid_file = "$pool_directory/qemu.pid"; + my $pid; + try { $pid = path($pid_file)->slurp } + catch ($e) { return undef } return undef unless $pid; return $pid if is_qemu(readlink("/proc/$pid/exe")); ++++++ openQA.obsinfo ++++++ --- /var/tmp/diff_new_pack.ohS8YA/_old 2025-09-26 22:25:55.141543055 +0200 +++ /var/tmp/diff_new_pack.ohS8YA/_new 2025-09-26 22:25:55.149543393 +0200 @@ -1,5 +1,5 @@ name: openQA -version: 5.1758729450.b88c0b40 -mtime: 1758729450 -commit: b88c0b40be838dc5ce0cfe9d1b7f8c7b34caedc0 +version: 5.1758814503.03d923a4 +mtime: 1758814503 +commit: 03d923a4d26c56beca03bfc720974e9ea6ea978c
