See https://ci.opensuse.org/job/yast-yast-yast2-master/377/display/redirect?page...
Changes:
[Josef Reidinger] add transactional system method to Package module
[Josef Reidinger] implement check for transactional system
[Josef Reidinger] Changes according to review
[Josef Reidinger] changes
[Josef Reidinger] happy rubocop
[Josef Reidinger] update from review
------------------------------------------
[...truncated 297.26 KB...]
[ 102s] returns empty array with type list
[ 102s] raises XMLDeserializationError with type symbol
[ 102s] raises XMLDeserializationError with type integer
[ 102s] raises XMLDeserializationError with type boolean
[ 102s] workaround with empty cdata still works
[ 102s] validate
[ 102s] returns empty array for valid xml
[ 102s] returns error string in array when xml is not valid for given schema
[ 102s] raises XMLDeserializationError for a not well formed XML
[ 102s] can read the input from files
[ 102s] #XMLToYCPFile
[ 102s] raises ArgumentError when nil is passed
[ 102s]
[ 102s] yast2 script
[ 103s] passes properly all arguments
[ 103s]
[ 103s] Pending: (Failures listed here are expected and do not affect your suite's status)
[ 103s]
[ 103s] 1) CWM::ReplacePoint#handle Passes handle to CWM on active widget
[ 103s] # Temporarily skipped with xit
[ 103s] # ./library/cwm/test/replace_point_test.rb:88
[ 103s]
[ 103s] 2) .etc.fstab .Read is able to parse comments
[ 103s] # need to be fixed
[ 103s] Failure/Error: expect(content).to include("#comment")
[ 103s]
[ 103s] expected [{"file" => "/", "freq" => 1, "mntops" => "noatime,data=writeback,acl,user_xattr", "passno" => 1, "spec" => "UU..."/tmp", "freq" => 0, "mntops" => "defaults,size=25%", "passno" => 0, "spec" => "tmpfs", "vfstype" => "tmpfs"}] to include "#comment"
[ 103s] Diff:
[ 103s] @@ -1,36 +1,71 @@
[ 103s] -["#comment"]
[ 103s] +[{"file"=>"/",
[ 103s] + "freq"=>1,
[ 103s] + "mntops"=>"noatime,data=writeback,acl,user_xattr",
[ 103s] + "passno"=>1,
[ 103s] + "spec"=>"UUID=b66c1028-cd4a-4c08-b92d-fc4b9840845d",
[ 103s] + "vfstype"=>"ext4"},
[ 103s] + {"file"=>"/home",
[ 103s] + "freq"=>1,
[ 103s] + "mntops"=>"noatime,data=writeback,acl",
[ 103s] + "passno"=>2,
[ 103s] + "spec"=>"UUID=d2811ace-66e0-4ef2-9b68-9b2758359391",
[ 103s] + "vfstype"=>"ext4"},
[ 103s] + {"file"=>"/home/kv2",
[ 103s] + "freq"=>0,
[ 103s] + "mntops"=>"defaults",
[ 103s] + "passno"=>0,
[ 103s] + "spec"=>"192.168.1.2:/home/kv",
[ 103s] + "vfstype"=>"nfs"},
[ 103s] + {"file"=>"/media/new2",
[ 103s] + "freq"=>0,
[ 103s] + "mntops"=>"defaults",
[ 103s] + "passno"=>0,
[ 103s] + "spec"=>"192.168.1.2:/media/new2",
[ 103s] + "vfstype"=>"nfs"},
[ 103s] + {"file"=>"/media/new",
[ 103s] + "freq"=>0,
[ 103s] + "mntops"=>"defaults",
[ 103s] + "passno"=>0,
[ 103s] + "spec"=>"192.168.1.2:/media/new",
[ 103s] + "vfstype"=>"nfs"},
[ 103s] + {"file"=>"/tmp",
[ 103s] + "freq"=>0,
[ 103s] + "mntops"=>"defaults,size=25%",
[ 103s] + "passno"=>0,
[ 103s] + "spec"=>"tmpfs",
[ 103s] + "vfstype"=>"tmpfs"}]
[ 103s] # ./library/general/test/agents_test/fstab_agent_test.rb:46:in `block (3 levels) in '
[ 103s] # ./library/general/test/agents_test/fstab_agent_test.rb:9:in `block (2 levels) in '
[ 103s]
[ 103s] 3) Y2Issues::Presenter#to_html groups elements from the same location
[ 103s] # Not yet implemented
[ 103s] # ./library/general/test/y2issues/presenter_test.rb:59
[ 103s]
[ 103s] 4) Y2Firewall::Firewalld::ServiceReader#read when the service is not present raises a NotFound exception
[ 103s] # Temporarily skipped with xit
[ 103s] # ./library/network/test/y2firewall/firewalld/service_reader_test.rb:57
[ 103s]
[ 103s] Failures:
[ 103s]
[ 103s] 1) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages displays a pop-up asking for confirmation
[ 103s] Failure/Error: subject.PackageDialog(packages, true, nil)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:374:in `block (4 levels) in '
[ 103s]
[ 103s] 2) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages and the user confirms installs the packages
[ 103s] Failure/Error: subject.PackageDialog(packages, true, nil)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:387:in `block (5 levels) in '
[ 103s]
[ 103s] 3) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages and the user confirms and the packages are installed returns true
[ 103s] Failure/Error: expect(subject.PackageDialog(packages, true, nil)).to eq(true)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:392:in `block (6 levels) in '
[ 103s]
[ 103s] 4) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages and the user confirms and the packages could not be installed returns false
[ 103s] Failure/Error: expect(subject.PackageDialog(packages, true, nil)).to eq(false)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:400:in `block (6 levels) in '
[ 103s]
[ 103s] 5) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages and the user cancels does not try to install the packages
[ 103s] Failure/Error: subject.PackageDialog(packages, true, nil)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:410:in `block (5 levels) in '
[ 103s]
[ 103s] 6) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and not running on command line mode displays a pop-up asking for confirmation
[ 103s] Failure/Error: subject.PackageDialog(packages, false, nil)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:424:in `block (5 levels) in '
[ 103s]
[ 103s] 7) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and running on interactive command line mode displays a message asking for confirmation
[ 103s] Failure/Error: subject.PackageDialog(packages, false, nil)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:435:in `block (5 levels) in '
[ 103s]
[ 103s] 8) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and the user confirms removes the packages
[ 103s] Failure/Error: subject.PackageDialog(packages, false, nil)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:449:in `block (5 levels) in '
[ 103s]
[ 103s] 9) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and the user confirms and the packages are removed returns true
[ 103s] Failure/Error: expect(subject.PackageDialog(packages, false, nil)).to eq(true)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:454:in `block (6 levels) in '
[ 103s]
[ 103s] 10) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and the user confirms and the packages could not be removed returns false
[ 103s] Failure/Error: expect(subject.PackageDialog(packages, false, nil)).to eq(false)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:463:in `block (6 levels) in '
[ 103s]
[ 103s] 11) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and the user cancels does not try to remove the packages
[ 103s] Failure/Error: subject.PackageDialog(packages, false, nil)
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:473:in `block (5 levels) in '
[ 103s]
[ 103s] 12) #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when a custom message is given displays the given message
[ 103s] Failure/Error: subject.PackageDialog(packages, true, "Should I install random packages?")
[ 103s]
[ 103s] RuntimeError:
[ 103s] Failed to find / at /proc/mounts
[ 103s] # ./library/packages/src/modules/Package.rb:468:in `IsTransactionalSystem'
[ 103s] # ./library/packages/src/modules/Package.rb:539:in `check_transactional_system!'
[ 103s] # ./library/packages/src/modules/Package.rb:342:in `PackageDialog'
[ 103s] # ./library/packages/test/package_test.rb:483:in `block (4 levels) in '
[ 103s]
[ 103s] Finished in 13.82 seconds (files took 2.29 seconds to load)
[ 103s] 2481 examples, 12 failures, 4 pending
[ 103s]
[ 103s] Failed examples:
[ 103s]
[ 103s] rspec ./library/packages/test/package_test.rb:369 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages displays a pop-up asking for confirmation
[ 103s] rspec ./library/packages/test/package_test.rb:385 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages and the user confirms installs the packages
[ 103s] rspec ./library/packages/test/package_test.rb:391 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages and the user confirms and the packages are installed returns true
[ 103s] rspec ./library/packages/test/package_test.rb:399 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages and the user confirms and the packages could not be installed returns false
[ 103s] rspec ./library/packages/test/package_test.rb:408 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when installing packages and the user cancels does not try to install the packages
[ 103s] rspec ./library/packages/test/package_test.rb:419 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and not running on command line mode displays a pop-up asking for confirmation
[ 103s] rspec ./library/packages/test/package_test.rb:432 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and running on interactive command line mode displays a message asking for confirmation
[ 103s] rspec ./library/packages/test/package_test.rb:447 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and the user confirms removes the packages
[ 103s] rspec ./library/packages/test/package_test.rb:453 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and the user confirms and the packages are removed returns true
[ 103s] rspec ./library/packages/test/package_test.rb:462 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and the user confirms and the packages could not be removed returns false
[ 103s] rspec ./library/packages/test/package_test.rb:471 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when removing packages and the user cancels does not try to remove the packages
[ 103s] rspec ./library/packages/test/package_test.rb:479 # #Yast::PackageClass:0x00007fba75e18e80 #PackageDialog when a custom message is given displays the given message
[ 103s]
[ 103s] rake aborted!
[ 103s] Command failed with status (1): [rspec --color --format doc 'library/comman...]
[ 103s]
[ 103s] Tasks: TOP => test:unit
[ 103s] (See full trace by running task with --trace)
[ 103s] error: Bad exit status from /var/tmp/rpm-tmp.Y6PBFm (%check)
[ 103s]
[ 103s] RPM build warnings:
[ 103s] line 129: It's not recommended to have unversioned Obsoletes: Obsoletes: yast2-devel-doc
[ 103s]
[ 103s] RPM build errors:
[ 103s] Bad exit status from /var/tmp/rpm-tmp.Y6PBFm (%check)
[ 103s]
[ 103s] yast-jenkins failed "build yast2.spec" at Fri Aug 26 19:50:23 UTC 2022.
[ 103s]
The buildroot was: /var/tmp/build-root/openSUSE_Factory-x86_64
rm -rf YaST:Head
rake aborted!
Command failed with status (1): [echo -e 'y\ny\ny\n' | osc -A 'https://api....]
Tasks: TOP => osc:sr => osc:commit => osc:build
(See full trace by running task with --trace)
cleaning
Result: PID 1776 exited with value 1
Scanning for a pull request...
Found pull request #1265
Adding comment ":x: Public Jenkins [job #377](https://ci.opensuse.org/job/yast-yast-yast2-master/377/) failed"
to pull request https://github.com/yast/yast-yast2/pull/1265
Sending Net::HTTP::Post request to https://api.github.com/repos/yast/yast-yast2/issues/1265/comments... OK
Success
Build step 'Execute shell' marked build as failure