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-08-09 19:59:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openQA (Old) and /work/SRC/openSUSE:Factory/.openQA.new.1085 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openQA" Sat Aug 9 19:59:42 2025 rev:727 rq:1298472 version:5.1754665747.0074044f Changes: -------- --- /work/SRC/openSUSE:Factory/openQA/openQA.changes 2025-08-08 15:15:08.580380809 +0200 +++ /work/SRC/openSUSE:Factory/.openQA.new.1085/openQA.changes 2025-08-09 20:06:06.614005796 +0200 @@ -1,0 +2,7 @@ +Sat Aug 09 03:12:02 UTC 2025 - [email protected] + +- Update to version 5.1754665747.0074044f: + * Revert "Rewrote client script from perl to bash to fix heavy tests" + * Revert "Remove test related to deprecated client script" + +------------------------------------------------------------------- Old: ---- openQA-5.1754567283.cc45a4c0.obscpio New: ---- openQA-5.1754665747.0074044f.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openQA-client-test.spec ++++++ --- /var/tmp/diff_new_pack.ckkZA3/_old 2025-08-09 20:06:09.878141456 +0200 +++ /var/tmp/diff_new_pack.ckkZA3/_new 2025-08-09 20:06:09.894142121 +0200 @@ -18,7 +18,7 @@ %define short_name openQA-client Name: %{short_name}-test -Version: 5.1754567283.cc45a4c0 +Version: 5.1754665747.0074044f Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA-devel-test.spec ++++++ --- /var/tmp/diff_new_pack.ckkZA3/_old 2025-08-09 20:06:10.110151098 +0200 +++ /var/tmp/diff_new_pack.ckkZA3/_new 2025-08-09 20:06:10.118151431 +0200 @@ -18,7 +18,7 @@ %define short_name openQA-devel Name: %{short_name}-test -Version: 5.1754567283.cc45a4c0 +Version: 5.1754665747.0074044f Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA-test.spec ++++++ --- /var/tmp/diff_new_pack.ckkZA3/_old 2025-08-09 20:06:10.370161905 +0200 +++ /var/tmp/diff_new_pack.ckkZA3/_new 2025-08-09 20:06:10.382162403 +0200 @@ -18,7 +18,7 @@ %define short_name openQA Name: %{short_name}-test -Version: 5.1754567283.cc45a4c0 +Version: 5.1754665747.0074044f Release: 0 Summary: Test package for openQA License: GPL-2.0-or-later ++++++ openQA-worker-test.spec ++++++ --- /var/tmp/diff_new_pack.ckkZA3/_old 2025-08-09 20:06:10.818180525 +0200 +++ /var/tmp/diff_new_pack.ckkZA3/_new 2025-08-09 20:06:10.826180857 +0200 @@ -18,7 +18,7 @@ %define short_name openQA-worker Name: %{short_name}-test -Version: 5.1754567283.cc45a4c0 +Version: 5.1754665747.0074044f Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ openQA.spec ++++++ --- /var/tmp/diff_new_pack.ckkZA3/_old 2025-08-09 20:06:11.250198479 +0200 +++ /var/tmp/diff_new_pack.ckkZA3/_new 2025-08-09 20:06:11.278199644 +0200 @@ -97,7 +97,7 @@ %define devel_requires %devel_no_selenium_requires chromedriver Name: openQA -Version: 5.1754567283.cc45a4c0 +Version: 5.1754665747.0074044f Release: 0 Summary: The openQA web-frontend, scheduler and tools License: GPL-2.0-or-later ++++++ openQA-5.1754567283.cc45a4c0.obscpio -> openQA-5.1754665747.0074044f.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1754567283.cc45a4c0/script/client new/openQA-5.1754665747.0074044f/script/client --- old/openQA-5.1754567283.cc45a4c0/script/client 2025-08-07 13:48:03.000000000 +0200 +++ new/openQA-5.1754665747.0074044f/script/client 2025-08-08 17:09:07.000000000 +0200 @@ -1,18 +1,25 @@ -#!/usr/bin/env bash +#!/usr/bin/env perl # Copyright 2014-2020 SUSE LLC # SPDX-License-Identifier: GPL-2.0-or-later -# NAME -# openqa-client - obsolete script for talking to an openQA server -# -# SYNOPSIS -# This script is obsolete, use openqa-cli instead -# -# openqa-client +=head1 NAME -echo "NOTICE: openqa-client is obsolete. Use openqa-cli instead" >&2 +openqa-client - obsolete script for talking to an openQA server -[[ $1 == "--help" || $1 == "-h" ]] && exit 0 +=head1 SYNOPSIS -exit 1 +This script is obsolete, use openqa-cli instead + + openqa-client + +=cut + +use strict; +use warnings; + +print STDERR "NOTICE: openqa-client is obsolete. Use openqa-cli instead\n"; + +exit 0 if (@ARGV && ($ARGV[0] eq '--help' || $ARGV[0] eq '-h')); + +exit 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openQA-5.1754567283.cc45a4c0/t/31-client.t new/openQA-5.1754665747.0074044f/t/31-client.t --- old/openQA-5.1754567283.cc45a4c0/t/31-client.t 1970-01-01 01:00:00.000000000 +0100 +++ new/openQA-5.1754665747.0074044f/t/31-client.t 2025-08-08 17:09:07.000000000 +0200 @@ -0,0 +1,53 @@ +# Copyright 2018-2021 SUSE LLC +# SPDX-License-Identifier: GPL-2.0-or-later + +use Test::Most; + +use FindBin; +use lib "$FindBin::Bin/lib", "$FindBin::Bin/../external/os-autoinst-common/lib"; +use OpenQA::Test::TimeLimit '6'; + +use Test::Mojo; +use Test::MockModule; +use Test::MockObject; +use Test::Output; +use Test::Warnings ':report_warnings'; +use OpenQA::WebAPI; +use OpenQA::Test::Case; +use OpenQA::Scheduler::Client; +use OpenQA::WebSockets::Client; +use Mojo::File qw(tempdir); + +subtest 'hostnames configurable' => sub { + my $config_dir = tempdir; + $config_dir->child('client.conf')->spew("[foo]\nkey = fookey\nsome = config\n[bar]\nkey = barkey"); + ($ENV{OPENQA_CONFIG}, $ENV{OPENQA_SCHEDULER_HOST}, $ENV{OPENQA_WEB_SOCKETS_HOST}) = ($config_dir, qw(foo bar)); + my $scheduler_client = OpenQA::Scheduler::Client->new; + is $scheduler_client->host, 'foo', 'scheduler hostname configurable'; + is $scheduler_client->client->apikey, 'fookey', 'scheduler hostname passed to client'; + my $ws_client = OpenQA::WebSockets::Client->new; + is $ws_client->host, 'bar', 'websockets hostname configurable'; + is $ws_client->client->apikey, 'barkey', 'websockets hostname passed to client'; +}; + +subtest 'client instantiation prevented from the daemons itself' => sub { + OpenQA::WebSockets::Client::mark_current_process_as_websocket_server; + throws_ok( + sub { + OpenQA::WebSockets::Client->singleton; + }, + qr/is forbidden/, + 'can not create ws server client from ws server itself' + ); + + OpenQA::Scheduler::Client::mark_current_process_as_scheduler; + throws_ok( + sub { + OpenQA::Scheduler::Client->singleton; + }, + qr/is forbidden/, + 'can not create scheduler client from scheduler itself' + ); +}; + +done_testing(); ++++++ openQA.obsinfo ++++++ --- /var/tmp/diff_new_pack.ckkZA3/_old 2025-08-09 20:06:28.902932142 +0200 +++ /var/tmp/diff_new_pack.ckkZA3/_new 2025-08-09 20:06:28.906932307 +0200 @@ -1,5 +1,5 @@ name: openQA -version: 5.1754567283.cc45a4c0 -mtime: 1754567283 -commit: cc45a4c05c8a45cab7af755e4b25af3fcb175c20 +version: 5.1754665747.0074044f +mtime: 1754665747 +commit: 0074044f3ab33a9752197e13a5d07c3c47a249a3
