Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-network for openSUSE:Factory checked in at 2022-01-25 17:35:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-network (Old) and /work/SRC/openSUSE:Factory/.yast2-network.new.1938 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-network" Tue Jan 25 17:35:52 2022 rev:468 rq:947957 version:4.4.33 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-network/yast2-network.changes 2021-12-18 20:30:09.914239851 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-network.new.1938/yast2-network.changes 2022-01-25 17:36:47.666035024 +0100 @@ -1,0 +2,6 @@ +Fri Jan 21 12:35:43 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Unify YaST module mocking in unit tests (related to bsc#1194784) +- 4.4.33 + +------------------------------------------------------------------- Old: ---- yast2-network-4.4.32.tar.bz2 New: ---- yast2-network-4.4.33.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-network.spec ++++++ --- /var/tmp/diff_new_pack.XwaJLN/_old 2022-01-25 17:36:48.338030396 +0100 +++ /var/tmp/diff_new_pack.XwaJLN/_new 2022-01-25 17:36:48.342030368 +0100 @@ -1,7 +1,7 @@ # # spec file for package yast2-network # -# 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-network -Version: 4.4.32 +Version: 4.4.33 Release: 0 Summary: YaST2 - Network Configuration License: GPL-2.0-only @@ -43,6 +43,8 @@ BuildRequires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.4 # lenses are needed to use cfa BuildRequires: augeas-lenses +# yast/rspec/helpers.rb +BuildRequires: yast2-ruby-bindings >= 4.4.7 PreReq: /bin/rm #netconfig (FaTE #303618) ++++++ yast2-network-4.4.32.tar.bz2 -> yast2-network-4.4.33.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.32/.github/workflows/ci.yml new/yast2-network-4.4.33/.github/workflows/ci.yml --- old/yast2-network-4.4.32/.github/workflows/ci.yml 2021-12-16 16:04:06.000000000 +0100 +++ new/yast2-network-4.4.33/.github/workflows/ci.yml 2022-01-21 15:26:17.000000000 +0100 @@ -8,8 +8,14 @@ jobs: Tests: runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + distro: [ "tumbleweed", "leap_latest" ] + container: - image: registry.opensuse.org/yast/head/containers/yast-ruby:latest + image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby steps: @@ -28,14 +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 + + strategy: + fail-fast: false + matrix: + distro: [ "leap_latest" ] + container: - image: registry.opensuse.org/yast/head/containers/yast-ruby:latest + image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby steps: @@ -47,8 +61,14 @@ Package: runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + distro: [ "tumbleweed", "leap_latest" ] + container: - image: registry.opensuse.org/yast/head/containers/yast-ruby:latest + image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby steps: @@ -60,8 +80,14 @@ Yardoc: runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + distro: [ "leap_latest" ] + container: - image: registry.opensuse.org/yast/head/containers/yast-ruby:latest + image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby steps: @@ -75,8 +101,14 @@ # checks into one job avoids that overhead Checks: runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + distro: [ "leap_latest" ] + container: - image: registry.opensuse.org/yast/head/containers/yast-ruby:latest + image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby steps: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.32/package/yast2-network.changes new/yast2-network-4.4.33/package/yast2-network.changes --- old/yast2-network-4.4.32/package/yast2-network.changes 2021-12-16 16:04:06.000000000 +0100 +++ new/yast2-network-4.4.33/package/yast2-network.changes 2022-01-21 15:26:17.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Jan 21 12:35:43 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Unify YaST module mocking in unit tests (related to bsc#1194784) +- 4.4.33 + +------------------------------------------------------------------- Mon Dec 6 14:37:01 UTC 2021 - Josef Reidinger <jreidin...@suse.com> - Prepare code for ruby3 (bsc#1193192) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.32/package/yast2-network.spec new/yast2-network-4.4.33/package/yast2-network.spec --- old/yast2-network-4.4.32/package/yast2-network.spec 2021-12-16 16:04:06.000000000 +0100 +++ new/yast2-network-4.4.33/package/yast2-network.spec 2022-01-21 15:26:17.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-network -Version: 4.4.32 +Version: 4.4.33 Release: 0 Summary: YaST2 - Network Configuration License: GPL-2.0-only @@ -43,6 +43,8 @@ BuildRequires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.4 # lenses are needed to use cfa BuildRequires: augeas-lenses +# yast/rspec/helpers.rb +BuildRequires: yast2-ruby-bindings >= 4.4.7 PreReq: /bin/rm #netconfig (FaTE #303618) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.32/test/install_inf_convertor_test.rb new/yast2-network-4.4.33/test/install_inf_convertor_test.rb --- old/yast2-network-4.4.32/test/install_inf_convertor_test.rb 2021-12-16 16:04:06.000000000 +0100 +++ new/yast2-network-4.4.33/test/install_inf_convertor_test.rb 2022-01-21 15:26:17.000000000 +0100 @@ -24,8 +24,6 @@ require "yast" require "network/install_inf_convertor" -stub_module "Proxy" - describe "InstallInfConvertor" do context "in case of no network config in /etc/install.inf" do before(:each) do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.32/test/test_helper.rb new/yast2-network-4.4.33/test/test_helper.rb --- old/yast2-network-4.4.32/test/test_helper.rb 2021-12-16 16:04:06.000000000 +0100 +++ new/yast2-network-4.4.33/test/test_helper.rb 2022-01-21 15:26:17.000000000 +0100 @@ -82,25 +82,11 @@ DATA_PATH = File.join(__dir__, "data") -# stub module to prevent its Import -# Useful for modules from different yast packages, to avoid build dependencies -def stub_module(name) - stubbed_class = Class.new do - # fake respond_to? to avoid failure of partial doubles - singleton_class.define_method(:respond_to?) do |_mname, _include_all = nil| - true - end - - # needed to fake at least one class method to avoid Yast.import - singleton_class.define_method(:fake_method) do - end - end - Yast.const_set(name.to_sym, stubbed_class) -end - -# stub classes from other modules to speed up a build -stub_module("AutoInstall") -stub_module("Profile") +# stub classes from other modules to avoid build dependencies +Yast::RSpec::Helpers.define_yast_module("AutoInstall", + methods: [:issues_list, :valid_imported_values]) +Yast::RSpec::Helpers.define_yast_module("Profile", methods: [:current]) +Yast::RSpec::Helpers.define_yast_module("Proxy", methods: [:Export, :Import, :Read, :Write]) # A two level section/key => value store # to remember values of /etc/sysconfig/network/ifcfg-*