Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-nfs-server for openSUSE:Factory checked in at 2021-02-26 21:58:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-nfs-server (Old) and /work/SRC/openSUSE:Factory/.yast2-nfs-server.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-nfs-server" Fri Feb 26 21:58:08 2021 rev:62 rq:872351 version:4.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-nfs-server/yast2-nfs-server.changes 2020-08-14 13:09:20.477210476 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-nfs-server.new.2378/yast2-nfs-server.changes 2021-02-26 21:58:12.927755690 +0100 @@ -1,0 +2,7 @@ +Mon Feb 15 07:34:12 UTC 2021 - Ancor Gonzalez Sosa <an...@suse.com> + +- Adapted unit test to recent changes in Yast::Report (related to + bsc#1179893). +- 4.3.2 + +------------------------------------------------------------------- Old: ---- yast2-nfs-server-4.3.1.tar.bz2 New: ---- yast2-nfs-server-4.3.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-nfs-server.spec ++++++ --- /var/tmp/diff_new_pack.9s7sMp/_old 2021-02-26 21:58:13.423756126 +0100 +++ /var/tmp/diff_new_pack.9s7sMp/_new 2021-02-26 21:58:13.423756126 +0100 @@ -1,7 +1,7 @@ # # spec file for package yast2-nfs-server # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -20,7 +20,7 @@ Summary: YaST2 - NFS Server Configuration License: GPL-2.0-or-later Group: System/YaST -Version: 4.3.1 +Version: 4.3.2 Release: 0 URL: https://github.com/yast/yast-nfs-server ++++++ yast2-nfs-server-4.3.1.tar.bz2 -> yast2-nfs-server-4.3.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-4.3.1/.github/workflows/ci.yml new/yast2-nfs-server-4.3.2/.github/workflows/ci.yml --- old/yast2-nfs-server-4.3.1/.github/workflows/ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-nfs-server-4.3.2/.github/workflows/ci.yml 2021-02-15 08:39:56.000000000 +0100 @@ -0,0 +1,70 @@ + +# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions + +name: CI + +on: [push, pull_request] + +jobs: + Tests: + runs-on: ubuntu-latest + container: registry.opensuse.org/yast/head/containers/yast-ruby:latest + + steps: + + - name: Git Checkout + uses: actions/checkout@v2 + + # just for easier debugging... + - name: Inspect Installed Packages + run: rpm -qa | sort + + - name: Unit Tests + run: rake test:unit + # enable code coverage reporting + env: + COVERAGE: 1 + + # send the coverage report to coveralls.io + - name: Coveralls Report + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + Package: + runs-on: ubuntu-latest + container: registry.opensuse.org/yast/head/containers/yast-ruby:latest + + steps: + + - name: Git Checkout + uses: actions/checkout@v2 + + - name: Package Build + run: yast-ci-ruby -o package + + Yardoc: + runs-on: ubuntu-latest + container: registry.opensuse.org/yast/head/containers/yast-ruby:latest + + steps: + + - name: Git Checkout + uses: actions/checkout@v2 + + - name: Yardoc + run: rake check:doc + + # downloading the Docker image takes some time so bundling several fast + # checks into one job avoids that overhead + Checks: + runs-on: ubuntu-latest + container: registry.opensuse.org/yast/head/containers/yast-ruby:latest + + steps: + + - name: Git Checkout + uses: actions/checkout@v2 + + - name: POT Check + run: rake check:pot diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-4.3.1/.travis.yml new/yast2-nfs-server-4.3.2/.travis.yml --- old/yast2-nfs-server-4.3.1/.travis.yml 2020-08-12 12:08:53.000000000 +0200 +++ new/yast2-nfs-server-4.3.2/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -sudo: required -language: bash -services: - - docker - -before_install: - - docker build -t yast-nfs-server-image . -script: - # the "yast-travis-ruby" script is included in the base yastdevel/ruby image - # see https://github.com/yast/docker-yast-ruby/blob/master/yast-travis-ruby - # exclude the yardoc step, we run the more strict check:doc late - - docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-nfs-server-image yast-travis-ruby -x yardoc - - docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-nfs-server-image rake check:doc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-4.3.1/Dockerfile new/yast2-nfs-server-4.3.2/Dockerfile --- old/yast2-nfs-server-4.3.1/Dockerfile 2020-08-12 12:08:53.000000000 +0200 +++ new/yast2-nfs-server-4.3.2/Dockerfile 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ -FROM registry.opensuse.org/yast/head/containers/yast-ruby:latest -COPY . /usr/src/app - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-4.3.1/README.md new/yast2-nfs-server-4.3.2/README.md --- old/yast2-nfs-server-4.3.1/README.md 2020-08-12 12:08:53.000000000 +0200 +++ new/yast2-nfs-server-4.3.2/README.md 2021-02-15 08:39:56.000000000 +0100 @@ -1,8 +1,12 @@ YaST NFS Server Module ====================== -[![Travis Build](https://travis-ci.org/yast/yast-nfs-server.svg?branch=master)](https://travis-ci.org/yast/yast-nfs-server) -[![Jenkins Build](http://img.shields.io/jenkins/s/https/ci.opensuse.org/yast-nfs-server-master.svg)](https://ci.opensuse.org/view/Yast/job/yast-nfs-server-master/) +[![Workflow Status](https://github.com/yast/yast-nfs-server/workflows/CI/badge.svg?branch=master)]( +https://github.com/yast/yast-nfs-server/actions?query=branch%3Amaster) +[![Jenkins Status](https://ci.opensuse.org/buildStatus/icon?job=yast-yast-nfs-server-master)]( +https://ci.opensuse.org/view/Yast/job/yast-yast-nfs-server-master/) +[![Coverage Status](https://img.shields.io/coveralls/yast/yast-nfs-server.svg)](https://coveralls.io/r/yast/yast-nfs-server?branch=master) +[![inline docs](http://inch-ci.org/github/yast/yast-nfs-server.svg?branch=master)](http://inch-ci.org/github/yast/yast-nfs-server) The YaST NFS Server module manages configuration of an [NFS](https://en.wikipedia.org/wiki/Network_File_System) server. It's a part of diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-4.3.1/package/yast2-nfs-server.changes new/yast2-nfs-server-4.3.2/package/yast2-nfs-server.changes --- old/yast2-nfs-server-4.3.1/package/yast2-nfs-server.changes 2020-08-12 12:08:53.000000000 +0200 +++ new/yast2-nfs-server-4.3.2/package/yast2-nfs-server.changes 2021-02-15 08:39:56.000000000 +0100 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon Feb 15 07:34:12 UTC 2021 - Ancor Gonzalez Sosa <an...@suse.com> + +- Adapted unit test to recent changes in Yast::Report (related to + bsc#1179893). +- 4.3.2 + +------------------------------------------------------------------- Mon Aug 10 17:31:10 CEST 2020 - sch...@suse.de - AutoYaST: Added supplements: autoyast(nfs-server) into the spec file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-4.3.1/package/yast2-nfs-server.spec new/yast2-nfs-server-4.3.2/package/yast2-nfs-server.spec --- old/yast2-nfs-server-4.3.1/package/yast2-nfs-server.spec 2020-08-12 12:08:53.000000000 +0200 +++ new/yast2-nfs-server-4.3.2/package/yast2-nfs-server.spec 2021-02-15 08:39:56.000000000 +0100 @@ -18,7 +18,7 @@ Name: yast2-nfs-server Summary: YaST2 - NFS Server Configuration -Version: 4.3.1 +Version: 4.3.2 Release: 0 URL: https://github.com/yast/yast-nfs-server Group: System/YaST diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-4.3.1/test/nfs_server_test.rb new/yast2-nfs-server-4.3.2/test/nfs_server_test.rb --- old/yast2-nfs-server-4.3.1/test/nfs_server_test.rb 2020-08-12 12:08:53.000000000 +0200 +++ new/yast2-nfs-server-4.3.2/test/nfs_server_test.rb 2021-02-15 08:39:56.000000000 +0100 @@ -69,6 +69,11 @@ end describe ".Write" do + before do + allow(Yast::Service).to receive(:Enable).and_return true + allow(Yast::Service).to receive(:Disable).and_return true + end + it "writes nfs4 enablement" do subject.enable_nfsv4 = false @@ -101,14 +106,18 @@ subject.exports = [{"mountpoint" => "/test1"}] expect(Yast::SCR).to receive(:Execute).with(path(".target.mkdir"), "/test1") + .and_return true subject.Write end it "writes exports" do subject.exports = [{"mountpoint" => "/test1"}] + allow(Yast::SCR).to receive(:Execute).with(path(".target.mkdir"), "/test1") + .and_return true expect(Yast::SCR).to receive(:Write).with(path(".etc.exports"), subject.exports) + .and_return true subject.Write end @@ -140,6 +149,9 @@ context "start flag is set to true" do before do subject.start = true + + # As last step, #write checks if the server was indeed started + allow(Yast::Service).to receive(:active?).with("nfs-server").and_return(true) end it "enables rpcbind service" do @@ -161,7 +173,7 @@ it "stops rpc-svcgssd if running" do allow(Yast::Service).to receive(:active?).with("rpc-svcgssd").and_return(true) - expect(Yast::Service).to receive(:Stop).with("rpc-svcgssd") + expect(Yast::Service).to receive(:Stop).with("rpc-svcgssd").and_return true subject.Write end @@ -174,14 +186,14 @@ it "restarts rpc-svcgssd if running" do allow(Yast::Service).to receive(:active?).with("rpc-svcgssd").and_return(true) - expect(Yast::Service).to receive(:Restart).with("rpc-svcgssd") + expect(Yast::Service).to receive(:Restart).with("rpc-svcgssd").and_return true subject.Write end it "starts rpc-svcgssd if not running" do allow(Yast::Service).to receive(:active?).with("rpc-svcgssd").and_return(false) - expect(Yast::Service).to receive(:Start).with("rpc-svcgssd") + expect(Yast::Service).to receive(:Start).with("rpc-svcgssd").and_return true subject.Write end @@ -194,7 +206,7 @@ it "ensures rpcbind is running" do allow(Yast::Service).to receive(:active?).with("rpcbind").and_return(false) - expect(Yast::Service).to receive(:Start).with("rpcbind") + expect(Yast::Service).to receive(:Start).with("rpcbind").and_return true subject.Write end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-4.3.1/test/test_helper.rb new/yast2-nfs-server-4.3.2/test/test_helper.rb --- old/yast2-nfs-server-4.3.1/test/test_helper.rb 2020-08-12 12:08:53.000000000 +0200 +++ new/yast2-nfs-server-4.3.2/test/test_helper.rb 2021-02-15 08:39:56.000000000 +0100 @@ -33,12 +33,20 @@ # track all ruby files under src SimpleCov.track_files("#{src_location}/**/*.rb") - # use coveralls for on-line code coverage reporting at Travis CI - if ENV["TRAVIS"] - require "coveralls" + # additionally use the LCOV format for on-line code coverage reporting at CI + if ENV["CI"] || ENV["COVERAGE_LCOV"] + require "simplecov-lcov" + + SimpleCov::Formatter::LcovFormatter.config do |c| + c.report_with_single_file = true + # this is the default Coveralls GitHub Action location + # https://github.com/marketplace/actions/coveralls-github-action + c.single_report_path = "coverage/lcov.info" + end + SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, - Coveralls::SimpleCov::Formatter + SimpleCov::Formatter::LcovFormatter ] end end