Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package yast2-ntp-client for
openSUSE:Factory checked in at 2022-01-25 17:35:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ntp-client (Old)
and /work/SRC/openSUSE:Factory/.yast2-ntp-client.new.1938 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-ntp-client"
Tue Jan 25 17:35:51 2022 rev:127 rq:947931 version:4.4.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-ntp-client/yast2-ntp-client.changes
2021-05-07 16:44:57.148451858 +0200
+++
/work/SRC/openSUSE:Factory/.yast2-ntp-client.new.1938/yast2-ntp-client.changes
2022-01-25 17:36:45.678048717 +0100
@@ -1,0 +2,6 @@
+Fri Jan 21 11:55:46 UTC 2022 - Ladislav Slez??k <[email protected]>
+
+- Unify YaST module mocking in unit tests (related to bsc#1194784)
+- 4.4.2
+
+-------------------------------------------------------------------
Old:
----
yast2-ntp-client-4.4.1.tar.bz2
New:
----
yast2-ntp-client-4.4.2.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ntp-client.spec ++++++
--- /var/tmp/diff_new_pack.AYnqnN/_old 2022-01-25 17:36:47.210038166 +0100
+++ /var/tmp/diff_new_pack.AYnqnN/_new 2022-01-25 17:36:47.214038138 +0100
@@ -1,7 +1,7 @@
#
# spec file for package yast2-ntp-client
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: yast2-ntp-client
-Version: 4.4.1
+Version: 4.4.2
Release: 0
Summary: YaST2 - NTP Client Configuration
License: GPL-2.0-or-later
@@ -41,6 +41,8 @@
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)
# Y2Network::NtpServer
BuildRequires: yast2-network >= 4.2.55
+# yast/rspec/helpers.rb
+BuildRequires: yast2-ruby-bindings >= 4.4.7
# proper acting TargetFile when scr is switched
Requires: augeas-lenses
++++++ yast2-ntp-client-4.4.1.tar.bz2 -> yast2-ntp-client-4.4.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ntp-client-4.4.1/.github/workflows/ci.yml
new/yast2-ntp-client-4.4.2/.github/workflows/ci.yml
--- old/yast2-ntp-client-4.4.1/.github/workflows/ci.yml 2021-05-04
12:50:26.000000000 +0200
+++ new/yast2-ntp-client-4.4.2/.github/workflows/ci.yml 2022-01-21
13:29:16.000000000 +0100
@@ -8,7 +8,14 @@
jobs:
Tests:
runs-on: ubuntu-latest
- container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ distro: [ "tumbleweed", "leap_latest" ]
+
+ container:
+ image:
registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby
steps:
@@ -27,13 +34,22 @@
# send the coverage report to coveralls.io
- name: Coveralls Report
+ # send it only from the TW build to avoid duplicate submits
+ if: ${{ matrix.distro == 'tumbleweed' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Rubocop:
runs-on: ubuntu-latest
- container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ distro: [ "leap_latest" ]
+
+ container:
+ image:
registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby
steps:
@@ -45,7 +61,14 @@
Package:
runs-on: ubuntu-latest
- container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ distro: [ "tumbleweed", "leap_latest" ]
+
+ container:
+ image:
registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby
steps:
@@ -57,7 +80,14 @@
Yardoc:
runs-on: ubuntu-latest
- container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ distro: [ "leap_latest" ]
+
+ container:
+ image:
registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby
steps:
@@ -71,7 +101,14 @@
# checks into one job avoids that overhead
Checks:
runs-on: ubuntu-latest
- container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ distro: [ "leap_latest" ]
+
+ container:
+ image:
registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby
steps:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ntp-client-4.4.1/package/yast2-ntp-client.changes
new/yast2-ntp-client-4.4.2/package/yast2-ntp-client.changes
--- old/yast2-ntp-client-4.4.1/package/yast2-ntp-client.changes 2021-05-04
12:50:26.000000000 +0200
+++ new/yast2-ntp-client-4.4.2/package/yast2-ntp-client.changes 2022-01-21
13:29:16.000000000 +0100
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Jan 21 11:55:46 UTC 2022 - Ladislav Slez??k <[email protected]>
+
+- Unify YaST module mocking in unit tests (related to bsc#1194784)
+- 4.4.2
+
+-------------------------------------------------------------------
Tue May 4 10:22:49 UTC 2021 - Knut Anderssen <[email protected]>
- Adapted proposal client returning the dhcp ntp servers as strings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ntp-client-4.4.1/package/yast2-ntp-client.spec
new/yast2-ntp-client-4.4.2/package/yast2-ntp-client.spec
--- old/yast2-ntp-client-4.4.1/package/yast2-ntp-client.spec 2021-05-04
12:50:26.000000000 +0200
+++ new/yast2-ntp-client-4.4.2/package/yast2-ntp-client.spec 2022-01-21
13:29:16.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-ntp-client
-Version: 4.4.1
+Version: 4.4.2
Release: 0
Summary: YaST2 - NTP Client Configuration
License: GPL-2.0-or-later
@@ -41,6 +41,8 @@
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)
# Y2Network::NtpServer
BuildRequires: yast2-network >= 4.2.55
+# yast/rspec/helpers.rb
+BuildRequires: yast2-ruby-bindings >= 4.4.7
# proper acting TargetFile when scr is switched
Requires: augeas-lenses
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ntp-client-4.4.1/test/test_helper.rb
new/yast2-ntp-client-4.4.2/test/test_helper.rb
--- old/yast2-ntp-client-4.4.1/test/test_helper.rb 2021-05-04
12:50:26.000000000 +0200
+++ new/yast2-ntp-client-4.4.2/test/test_helper.rb 2022-01-21
13:29:16.000000000 +0100
@@ -20,24 +20,6 @@
end
end
-# stub module to prevent its Import
-# Useful for modules from different yast packages, to avoid build dependencies
-def stub_module(name, fake_class = nil)
- fake_class = Class.new { def self.fake_method; end } if fake_class.nil?
- Yast.const_set name.to_sym, fake_class
-end
-
-# stub classes from other modules to speed up a build
-lan = Class.new do
- def dhcp_ntp_servers
- []
- end
-end
-stub_module("Lan", lan)
-stub_module("Language")
-stub_module("Pkg")
-stub_module("PackageCallbacks")
-
if ENV["COVERAGE"]
require "simplecov"
SimpleCov.start do
@@ -65,3 +47,9 @@
]
end
end
+
+# stub classes from other modules to avoid build dependencies
+Yast::RSpec::Helpers.define_yast_module("Lan", methods: [:dhcp_ntp_servers])
+Yast::RSpec::Helpers.define_yast_module("Language")
+Yast::RSpec::Helpers.define_yast_module("PackageCallbacks")
+Yast::RSpec::Helpers.define_yast_module("Pkg")