Hello community,

here is the log from the commit of package yast2-firstboot for openSUSE:Factory 
checked in at 2020-12-15 12:30:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-firstboot (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-firstboot.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-firstboot"

Tue Dec 15 12:30:41 2020 rev:101 rq:855755 version:4.3.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-firstboot/yast2-firstboot.changes  
2020-12-09 22:11:15.747057376 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-firstboot.new.2328/yast2-firstboot.changes    
    2020-12-15 12:32:56.608124022 +0100
@@ -1,0 +2,9 @@
+Mon Dec 14 12:54:19 UTC 2020 - Knut Anderssen <kanders...@suse.com>
+
+- Map the current static hostname only to the primary IP address
+  of the connections without a hostname.
+- Do not write network changes that are not related with the
+  hostname client (bsc#1178834)
+- 4.3.10
+
+-------------------------------------------------------------------

Old:
----
  yast2-firstboot-4.3.9.tar.bz2

New:
----
  yast2-firstboot-4.3.10.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-firstboot.spec ++++++
--- /var/tmp/diff_new_pack.qaaFJ3/_old  2020-12-15 12:32:57.112124428 +0100
+++ /var/tmp/diff_new_pack.qaaFJ3/_new  2020-12-15 12:32:57.112124428 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-firstboot
-Version:        4.3.9
+Version:        4.3.10
 Release:        0
 Summary:        YaST2 - Initial System Configuration
 License:        GPL-2.0-only
@@ -42,7 +42,7 @@
 Requires:       yast2-installation >= 4.1.2
 # Use Yast::Lan.write_config to write hostname changes
 Requires:       yast2-configuration-management >= 4.1.3
-Requires:       yast2-network >= 4.3.13
+Requires:       yast2-network >= 4.3.34
 Requires:       yast2-ruby-bindings >= 1.0.0
 
 # bsc #1165646

++++++ yast2-firstboot-4.3.9.tar.bz2 -> yast2-firstboot-4.3.10.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-firstboot-4.3.9/.github/workflows/ci.yml 
new/yast2-firstboot-4.3.10/.github/workflows/ci.yml
--- old/yast2-firstboot-4.3.9/.github/workflows/ci.yml  1970-01-01 
01:00:00.000000000 +0100
+++ new/yast2-firstboot-4.3.10/.github/workflows/ci.yml 2020-12-14 
14:21:29.000000000 +0100
@@ -0,0 +1,92 @@
+
+# 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
+
+    - name: Install Dependencies
+      run: zypper --non-interactive install --no-recommends 
yast2-configuration-management
+
+    # 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
+
+    - name: Install Dependencies
+      run: zypper --non-interactive install --no-recommends 
docbook-xsl-stylesheets
+
+    # just for easier debugging...
+    - name: Inspect Installed Packages
+      run: rpm -qa | sort
+
+    - 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-firstboot-4.3.9/.travis.yml 
new/yast2-firstboot-4.3.10/.travis.yml
--- old/yast2-firstboot-4.3.9/.travis.yml       2020-12-07 09:59:34.000000000 
+0100
+++ new/yast2-firstboot-4.3.10/.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-firstboot-image .
-  # list the installed packages (just for easier debugging)
-  - docker run --rm -it yast-firstboot-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 --privileged -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" 
yast-firstboot-image yast-travis-ruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-firstboot-4.3.9/Dockerfile 
new/yast2-firstboot-4.3.10/Dockerfile
--- old/yast2-firstboot-4.3.9/Dockerfile        2020-12-07 09:59:34.000000000 
+0100
+++ new/yast2-firstboot-4.3.10/Dockerfile       1970-01-01 01:00:00.000000000 
+0100
@@ -1,5 +0,0 @@
-FROM registry.opensuse.org/yast/head/containers/yast-ruby:latest
-RUN zypper --gpg-auto-import-keys --non-interactive in --no-recommends \
-  docbook-xsl-stylesheets yast2-configuration-management
-COPY . /usr/src/app
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-firstboot-4.3.9/README.md 
new/yast2-firstboot-4.3.10/README.md
--- old/yast2-firstboot-4.3.9/README.md 2020-12-07 09:59:34.000000000 +0100
+++ new/yast2-firstboot-4.3.10/README.md        2020-12-14 14:21:29.000000000 
+0100
@@ -1,8 +1,13 @@
 YaST - System Configuration at First-Boot
 =========================================
 
-[![Travis 
Build](https://travis-ci.org/yast/yast-firstboot.svg?branch=master)](https://travis-ci.org/yast/yast-firstboot)
-[![Jenkins 
Build](http://img.shields.io/jenkins/s/https/ci.opensuse.org/yast-firstboot-master.svg)](https://ci.opensuse.org/view/Yast/job/yast-firstboot-master/)
+[![Workflow 
Status](https://github.com/yast/yast-firstboot/workflows/CI/badge.svg?branch=master)](
+https://github.com/yast/yast-firstboot/actions?query=branch%3Amaster)
+[![Jenkins 
Status](https://ci.opensuse.org/buildStatus/icon?job=yast-yast-firstboot-master)](
+https://ci.opensuse.org/view/Yast/job/yast-yast-firstboot-master/)
+[![Coverage 
Status](https://coveralls.io/repos/github/yast/yast-firstboot/badge.svg?branch=master)](
+https://coveralls.io/github/yast/yast-firstboot?branch=master)
+
 
 Description
 ===========
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-firstboot-4.3.9/package/yast2-firstboot.changes 
new/yast2-firstboot-4.3.10/package/yast2-firstboot.changes
--- old/yast2-firstboot-4.3.9/package/yast2-firstboot.changes   2020-12-07 
09:59:34.000000000 +0100
+++ new/yast2-firstboot-4.3.10/package/yast2-firstboot.changes  2020-12-14 
14:21:29.000000000 +0100
@@ -1,4 +1,13 @@
 -------------------------------------------------------------------
+Mon Dec 14 12:54:19 UTC 2020 - Knut Anderssen <kanders...@suse.com>
+
+- Map the current static hostname only to the primary IP address
+  of the connections without a hostname.
+- Do not write network changes that are not related with the
+  hostname client (bsc#1178834)
+- 4.3.10
+
+-------------------------------------------------------------------
 Fri Dec  4 16:12:43 UTC 2020 - Stefan Schubert <sch...@suse.de>
 
 - Fix: Starting YaST2 Control Center if the flag SHOW_Y2CC_CHECKBOX
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-firstboot-4.3.9/package/yast2-firstboot.spec 
new/yast2-firstboot-4.3.10/package/yast2-firstboot.spec
--- old/yast2-firstboot-4.3.9/package/yast2-firstboot.spec      2020-12-07 
09:59:34.000000000 +0100
+++ new/yast2-firstboot-4.3.10/package/yast2-firstboot.spec     2020-12-14 
14:21:29.000000000 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-firstboot
-Version:        4.3.9
+Version:        4.3.10
 Release:        0
 Summary:        YaST2 - Initial System Configuration
 Group:          System/YaST
@@ -40,7 +40,7 @@
 # Rely on the YaST2-Firstboot.service for halting the system on failure
 Requires:       yast2-installation >= 4.1.2
 # Use Yast::Lan.write_config to write hostname changes
-Requires:       yast2-network >= 4.3.13
+Requires:       yast2-network >= 4.3.34
 Requires:       yast2-ruby-bindings >= 1.0.0
 Requires:       yast2-configuration-management >= 4.1.3
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-firstboot-4.3.9/src/lib/y2firstboot/clients/hostname.rb 
new/yast2-firstboot-4.3.10/src/lib/y2firstboot/clients/hostname.rb
--- old/yast2-firstboot-4.3.9/src/lib/y2firstboot/clients/hostname.rb   
2020-12-07 09:59:34.000000000 +0100
+++ new/yast2-firstboot-4.3.10/src/lib/y2firstboot/clients/hostname.rb  
2020-12-14 14:21:29.000000000 +0100
@@ -39,8 +39,7 @@
     # process
     class Hostname < Yast::Client
       class << self
-        # @!method valid_dns_proposal=(value)
-        #   @param [Boolean] Whether a valid DNS proposal was done
+        # @attr_writer valid_dns_proposal [Boolean] Whether a valid DNS 
proposal was done
         attr_writer :valid_dns_proposal
 
         # Determines whether a valid DNS proposal was done
@@ -169,16 +168,9 @@
       # FIXME: is this correct at all? what if there are multiple static ips
       # without aliases.
       def hostname_to_static_ips
-        ips = static_ips.select { |ip| Yast::Host.names(ip).empty? }
-        ips.each { |i| Yast::Host.Update(DNS.hostname, DNS.hostname, i) }
-      end
-
-      # Convenience method to obtain all the configured static ips
-      #
-      # @return [Array<String>]
-      def static_ips
-        ips = yast_config&.connections&.map { |c| c.all_ips.map { |i| 
i.address&.address&.to_s } }
-        (ips || []).flatten.compact
+        (yast_config&.connections || []).select { |c| c.hostname.to_s.empty? 
}.map do |conn|
+          conn.hostname = DNS.hostname
+        end
       end
 
       # Convenience method to obtain the current network configuration
@@ -190,7 +182,7 @@
 
       # Convenience method to write the config changes
       def write_config
-        Yast::Lan.write_config
+        Yast::Lan.write_config(only: [:dns, :hostname, :connections])
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-firstboot-4.3.9/test/test_helper.rb 
new/yast2-firstboot-4.3.10/test/test_helper.rb
--- old/yast2-firstboot-4.3.9/test/test_helper.rb       2020-12-07 
09:59:34.000000000 +0100
+++ new/yast2-firstboot-4.3.10/test/test_helper.rb      2020-12-14 
14:21:29.000000000 +0100
@@ -19,12 +19,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
_______________________________________________
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org

Reply via email to