Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-s390 for openSUSE:Factory checked in at 2021-02-25 18:27:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-s390 (Old) and /work/SRC/openSUSE:Factory/.yast2-s390.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-s390" Thu Feb 25 18:27:23 2021 rev:19 rq:874716 version:4.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-s390/yast2-s390.changes 2020-09-10 22:55:23.276424900 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-s390.new.2378/yast2-s390.changes 2021-02-25 18:27:32.302184417 +0100 @@ -1,0 +2,7 @@ +Tue Feb 23 20:40:37 UTC 2021 - Josef Reidinger <jreidin...@suse.com> + +- Adapted unit test to recent changes in Yast::Report (related to + bsc#1179893, bsc#1182624). +- 4.3.3 + +------------------------------------------------------------------- Old: ---- yast2-s390-4.3.2.tar.bz2 New: ---- yast2-s390-4.3.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-s390.spec ++++++ --- /var/tmp/diff_new_pack.jCfv39/_old 2021-02-25 18:27:33.106184939 +0100 +++ /var/tmp/diff_new_pack.jCfv39/_new 2021-02-25 18:27:33.110184942 +0100 @@ -1,7 +1,7 @@ # # spec file for package yast2-s390 # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -17,7 +17,7 @@ Name: yast2-s390 -Version: 4.3.2 +Version: 4.3.3 Release: 0 Summary: YaST2 - S/390 Specific Features Configuration License: GPL-2.0-only ++++++ yast2-s390-4.3.2.tar.bz2 -> yast2-s390-4.3.3.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-s390-4.3.2/.github/workflows/ci.yml new/yast2-s390-4.3.3/.github/workflows/ci.yml --- old/yast2-s390-4.3.2/.github/workflows/ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-s390-4.3.3/.github/workflows/ci.yml 2021-02-23 22:15:34.000000000 +0100 @@ -0,0 +1,81 @@ + +# 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 + + # FIXME: optionally install the missing dependencies + # - name: Install Dependencies + # run: zypper --non-interactive install foobar + + # 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 }} + + Rubocop: + runs-on: ubuntu-latest + container: registry.opensuse.org/yast/head/containers/yast-ruby:latest + + steps: + + - name: Git Checkout + uses: actions/checkout@v2 + + - name: Rubocop + run: rake check:rubocop + + Package: + runs-on: ubuntu-latest + container: registry.opensuse.org/yast/head/containers/yast-ruby:latest + + steps: + + - name: Git Checkout + uses: actions/checkout@v2 + + # a workaround to allow package building on a non-s390 machine + - name: Adapt Spec + run: sed -i "/^ExclusiveArch:/d" package/*.spec + + - name: Mark Spec + run: git add package/*.spec + + - name: Package Build + run: yast-ci-ruby -o package + + # 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-s390-4.3.2/.travis.yml new/yast2-s390-4.3.3/.travis.yml --- old/yast2-s390-4.3.2/.travis.yml 2020-09-08 12:41:38.000000000 +0200 +++ new/yast2-s390-4.3.3/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,14 +0,0 @@ -sudo: required -language: bash -services: - - docker - -before_install: - - docker build -t yast-s390-image . - # list the installed packages (just for easier debugging) - - docker run --rm -it yast-s390-image rpm -qa | sort - -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 - - docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-s390-image yast-travis-ruby diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-s390-4.3.2/Dockerfile new/yast2-s390-4.3.3/Dockerfile --- old/yast2-s390-4.3.2/Dockerfile 2020-09-08 12:41:38.000000000 +0200 +++ new/yast2-s390-4.3.3/Dockerfile 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -FROM registry.opensuse.org/yast/head/containers/yast-ruby:latest -COPY . /usr/src/app -# a workaround to allow package building on a non-s390 machine -RUN sed -i "/^ExclusiveArch:/d" package/*.spec -# add the change so "check:committed" task does not fail -RUN git add package/*.spec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-s390-4.3.2/README.md new/yast2-s390-4.3.3/README.md --- old/yast2-s390-4.3.2/README.md 2020-09-08 12:41:38.000000000 +0200 +++ new/yast2-s390-4.3.3/README.md 2021-02-23 22:15:34.000000000 +0100 @@ -1,8 +1,10 @@ # YaST - The S390 Configuration Module -[![Travis Build](https://travis-ci.org/yast/yast-s390.svg?branch=master)](https://travis-ci.org/yast/yast-s390) -[![Code Coverage Status]( -https://coveralls.io/repos/github/yast/yast-s390/badge.svg?branch=master)](https://coveralls.io/github/yast/yast-s390?branch=master) +[![Workflow Status](https://github.com/yast/yast-s390/workflows/CI/badge.svg?branch=master)]( +https://github.com/yast/yast-s390/actions?query=branch%3Amaster) +[![Jenkins Status](https://ci.opensuse.org/buildStatus/icon?job=yast-yast-s390-master)]( +https://ci.opensuse.org/view/Yast/job/yast-yast-s390-master/) +[![Coverage Status](https://img.shields.io/coveralls/yast/yast-s390.svg)](https://coveralls.io/r/yast/yast-s390?branch=master) ## Resources diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-s390-4.3.2/package/yast2-s390.changes new/yast2-s390-4.3.3/package/yast2-s390.changes --- old/yast2-s390-4.3.2/package/yast2-s390.changes 2020-09-08 12:41:38.000000000 +0200 +++ new/yast2-s390-4.3.3/package/yast2-s390.changes 2021-02-23 22:15:34.000000000 +0100 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Feb 23 20:40:37 UTC 2021 - Josef Reidinger <jreidin...@suse.com> + +- Adapted unit test to recent changes in Yast::Report (related to + bsc#1179893, bsc#1182624). +- 4.3.3 + +------------------------------------------------------------------- Tue Sep 8 09:16:03 CEST 2020 - sch...@suse.de - Using ":" in the autoyast(...) supplements (bsc#1146494). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-s390-4.3.2/package/yast2-s390.spec new/yast2-s390-4.3.3/package/yast2-s390.spec --- old/yast2-s390-4.3.2/package/yast2-s390.spec 2020-09-08 12:41:38.000000000 +0200 +++ new/yast2-s390-4.3.3/package/yast2-s390.spec 2021-02-23 22:15:34.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-s390 -Version: 4.3.2 +Version: 4.3.3 Release: 0 Group: System/YaST License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-s390-4.3.2/test/dasd_controller_test.rb new/yast2-s390-4.3.3/test/dasd_controller_test.rb --- old/yast2-s390-4.3.2/test/dasd_controller_test.rb 2020-09-08 12:41:38.000000000 +0200 +++ new/yast2-s390-4.3.3/test/dasd_controller_test.rb 2021-02-23 22:15:34.000000000 +0100 @@ -234,9 +234,13 @@ describe "#FormatDisks" do it "formats the given disks using dasdfmt" do + allow(Yast::SCR).to receive(:Read).with(path(".process.running"), 100).and_return(true, false) + allow(Yast::SCR).to receive(:Read).with(path(".process.status"), 100).and_return(0) + allow(Yast::SCR).to receive(:Read).with(path(".process.read_line"), 100).and_return("0") + allow(Yast::SCR).to receive(:Read).with(path(".process.read_line_stderr")).and_return(nil) expect(Yast::SCR).to receive(:Execute).with( path(".process.start_shell"), "/sbin/dasdfmt -Y -P 1 -b 4096 -y -r 10 -m 10 -f '/dev/dasda'" - ) + ).and_return(100) subject.FormatDisks(["/dev/dasda"], 8) end end @@ -348,7 +352,7 @@ end end - it "does not format disk for FBA disk" do + it "does not format disk for FBA disk and report error" do allow(Yast::SCR).to receive(:Execute).with(path(".target.bash_output"), /\/sbin\/dasdview/) .and_return("exitstatus" => 0, "stdout" => load_file("dasdview_fba.txt"), "stderr" => "") @@ -356,6 +360,8 @@ expect(Yast::SCR).to_not receive(:Execute).with(path(".process.start_shell"), /dasdfmt.*\/dev\/dasda/) + expect(Yast::Report).to receive(:Error) + expect(subject.Import(data)).to eq(true) expect(subject.Write).to eq(true) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-s390-4.3.2/test/test_helper.rb new/yast2-s390-4.3.3/test/test_helper.rb --- old/yast2-s390-4.3.2/test/test_helper.rb 2020-09-08 12:41:38.000000000 +0200 +++ new/yast2-s390-4.3.3/test/test_helper.rb 2021-02-23 22:15:34.000000000 +0100 @@ -28,16 +28,24 @@ add_filter "/test/" end - src_location = File.expand_path("../../src", __FILE__) + src_location = File.expand_path("../src", __dir__) # 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