[yast-commit] Build failed in Jenkins: yast-migration-master #25
See http://river.suse.de/job/yast-migration-master/25/changes Changes: [igonzalezsosa] Add snapshots creation during migration just before update [igonzalezsosa] Bump yast2 dependency to version 3.1.130 [igonzalezsosa] Make rubocop happy ------------------------------------------ [...truncated 301 lines...] [ 6s] cp -r 'README.md' '/home/abuild/rpmbuild/BUILDROOT/yast2-migration-3.1.0-1.x86_64/usr/share/doc/packages/yast2-migration/' [ 6s] cp -r 'COPYING' '/home/abuild/rpmbuild/BUILDROOT/yast2-migration-3.1.0-1.x86_64/usr/share/doc/packages/yast2-migration/' [ 6s] cp -r 'CONTRIBUTING.md' '/home/abuild/rpmbuild/BUILDROOT/yast2-migration-3.1.0-1.x86_64/usr/share/doc/packages/yast2-migration/' [ 6s] + /usr/lib/rpm/find-debuginfo.sh /home/abuild/rpmbuild/BUILD/yast2-migration-3.1.0 [ 6s] + /usr/lib/rpm/brp-compress [ 6s] + /usr/lib/rpm/brp-suse [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-05-permissions [ 6s] setting / to root:root 0755. (wrong owner/group abuild:abuild) [ 6s] setting /usr/ to root:root 0755. (wrong owner/group abuild:abuild) [ 6s] setting /var/adm/ to root:root 0755. (wrong owner/group abuild:abuild) [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-20-check-la [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-25-symlink [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-30-desktop [ 6s] WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist [ 6s] WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not exist [ 6s] WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-35-rpath [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-40-rootfs [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-45-tcl [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-50-check-python [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-55-boot-scripts [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-60-hook [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-65-lib64-linux [ 6s] calling /usr/lib/rpm/brp-suse.d/brp-72-extract-appdata [ 6s] Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.up4CSr [ 6s] + umask 022 [ 6s] + cd /home/abuild/rpmbuild/BUILD [ 6s] + cd yast2-migration-3.1.0 [ 6s] + rake test:unit [ 6s] rspec --color --format doc 'test/main_workflow_test.rb' [ 7s] [ 7s] Migration::MainWorkflow [ 7s] .run [ 7s] pass workflow sequence to Yast sequencer [ 7s] sh: ip: command not found [ 7s] returns :next if clicking next [ 7s] reload sources if click next on repositories [ 7s] sh: ip: command not found [ 7s] restores repositories when clicking on Cancel [ 7s] [ 7s] Finished in 0.02612 seconds [ 7s] 4 examples, 0 failures [ 7s] rspec --color --format doc 'test/proposal_store_test.rb' [ 7s] [ 7s] Migration::ProposalStore [ 7s] .headline [ 7s] returns a headline [ 7s] .proposal_names [ 7s] returns an update proposal [ 7s] .presentation_order [ 7s] returns a presentation order [ 7s] .help_text [ 7s] returns the right help text [ 7s] .icon [ 7s] returns 'yast-software' [ 7s] .tabs? [ 7s] returns false [ 7s] [ 7s] Finished in 0.07009 seconds [ 7s] 6 examples, 0 failures [ 7s] + exit 0 [ 7s] Processing files: yast2-migration-3.1.0-1.noarch [ 7s] Provides: application() application(YaST2/migration.desktop) yast2-migration = 3.1.0-1 [ 7s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 [ 7s] Processing files: yast2-migration-debugsource-3.1.0-1.noarch [ 7s] warning: Empty %files file /home/abuild/rpmbuild/BUILD/yast2-migration-3.1.0/debugsources.list [ 7s] Provides: yast2-migration-debugsource = 3.1.0-1 [ 7s] Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 [ 7s] Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/abuild/rpmbuild/BUILDROOT/yast2-migration-3.1.0-1.x86_64 [ 7s] Wrote: /home/abuild/rpmbuild/SRPMS/yast2-migration-3.1.0-1.src.rpm [ 7s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/yast2-migration-3.1.0-1.noarch.rpm [ 7s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/yast2-migration-debugsource-3.1.0-1.noarch.rpm [ 7s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.PbX24z [ 7s] + umask 022 [ 7s] + cd /home/abuild/rpmbuild/BUILD [ 7s] + cd yast2-migration-3.1.0 [ 7s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/yast2-migration-3.1.0-1.x86_64 [ 7s] + exit 0 [ 7s] ... checking for files with abuild user/group [ 7s] ... running 00-check-install-rpms [ 7s] ... installing all built rpms [ 7s] Preparing packages... [ 7s] yast2-migration-3.1.0-1.noarch [ 7s] yast2-migration-debugsource-3.1.0-1.noarch [ 7s] ... running 01-check-debuginfo [ 7s] ... testing for empty debuginfo packages [ 7s] ! [ 7s] ! /var/tmp/build-root-SLE-12-SP1/.build.packages/RPMS/noarch/yast2-migration-debugsource-3.1.0-1.noarch.rpm: empty debuginfo/debugsource package, deleting [ 7s] ! [ 7s] ... running 02-check-gcc-output [ 7s] ... testing for serious compiler warnings [ 7s] (using /usr/lib/build/checks-data/check_gcc_output) [ 7s] (using /var/tmp/build-root-SLE-12-SP1/.build.log) [ 7s] ... running 03-check-binary-kernel-log [ 7s] ... running 04-check-filelist [ 7s] ... checking filelist [ 7s] ... running 05-check-invalid-requires [ 7s] ... running 06-check-installtest [ 7s] ... testing for pre/postinstall scripts that are not idempotent [ 7s] ... running 08-check-permissions [ 7s] ... testing for modified permissions [ 7s] ... running 09-check-packaged-twice [ 7s] ... running 10-check-lanana [ 7s] ... running 12-check-libtool-deps [ 7s] ... testing devel dependencies required by libtool .la files [ 7s] (can be skipped by "skip-check-libtool-deps" anywhere in spec) [ 7s] ... running 13-check-invalid-provides [ 7s] ... running 14-check-gconf-scriptlets [ 7s] ... testing GConf scriptlet presence [ 7s] ... running 72-translate-appdata [ 7s] ... running 80-check-malware-scan-clamav [ 13s] clamav: negative malware scan result. [ 13s] unpacking /.build.packages/RPMS/noarch/yast2-migration-3.1.0-1.noarch.rpm [ 13s] unpacking /.build.packages/SRPMS/yast2-migration-3.1.0-1.src.rpm [ 13s] clamscan -ir /usr/src/packages/BUILD/scan: [ 13s] LibClamAV Warning: ************************************************** [ 13s] LibClamAV Warning: *** The virus database is older than 7 days! *** [ 13s] LibClamAV Warning: *** Please update it as soon as possible. *** [ 13s] LibClamAV Warning: ************************************************** [ 13s] [ 13s] ----------- SCAN SUMMARY ----------- [ 13s] Known viruses: 3766746 [ 13s] Engine version: 0.98.4 [ 13s] Scanned directories: 14 [ 13s] Scanned files: 10 [ 13s] Infected files: 0 [ 13s] Data scanned: 0.14 MB [ 13s] Data read: 0.03 MB (ratio 5.14:1) [ 13s] Time: 5.525 sec (0 m 5 s) [ 13s] test passed. [ 13s] ... running 99-check-remove-rpms [ 13s] ... removing all built rpms [ 13s] (order: reverse yast2-migration) [ 13s] [ 13s] RPMLINT report: [ 13s] =============== [ 14s] yast2-migration.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/packages/yast2-migration/README.md [ 14s] This file has wrong end-of-line encoding, usually caused by creation or [ 14s] modification on a non-Unix system. It could prevent it from being displayed [ 14s] correctly in some circumstances. [ 14s] [ 14s] yast2-migration.noarch: W: desktopfile-without-binary /usr/share/applications/YaST2/migration.desktop xdg-su [ 14s] the .desktop file is for a file not present in the package. You should check [ 14s] the requires or see if this is not a error [ 14s] [ 14s] 2 packages and 0 specfiles checked; 0 errors, 2 warnings. [ 14s] [ 14s] [ 14s] vm-yast-ci-worker3 finished "build yast2-migration.spec" at Thu Jun 11 09:11:22 UTC 2015. [ 14s] Building yast2-migration.spec for SLE-12-SP1/x86_64 Getting buildinfo from server and store to http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/.osc/_buildinfo-SLE-12-SP1-x86_64.xml Getting buildconfig from server and store to http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/.osc/_buildconfig-SLE-12-SP1-x86_64 Updating cache of required packages 0.5% cache miss. 212/213 dependencies cached. 1/1 (Devel:YaST:Head) yast2-installation-3.1.144-1.1.noarch.rpm Skipping verification of package signatures Writing build configuration Running build /var/tmp/build-root-SLE-12-SP1/home/abuild/rpmbuild/SRPMS/yast2-migration-3.1.0-1.src.rpm /var/tmp/build-root-SLE-12-SP1/home/abuild/rpmbuild/RPMS/noarch/yast2-migration-3.1.0-1.noarch.rpm rm -rf Devel:YaST:Head osc -A 'https://api.suse.de/' --traceback --verbose checkout 'Devel:YaST:Head' yast2-migration cleaning makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', '_meta'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration'] {'rev': 'latest'} A Devel:YaST:Head makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} A Devel:YaST:Head/yast2-migration makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration'] {'rev': 'latest'} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration-3.1.0.tar.bz2'] {'rev': '18'} A Devel:YaST:Head/yast2-migration/yast2-migration-3.1.0.tar.bz2 makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration.changes'] {'rev': '18'} A Devel:YaST:Head/yast2-migration/yast2-migration.changes makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration.spec'] {'rev': '18'} A Devel:YaST:Head/yast2-migration/yast2-migration.spec makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', '_meta'] {} At revision 18. /usr/lib/obs/service/format_spec_file --outdir . diff -u package/yast2-migration.spec http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration.spec rm http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration.spec rm http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration-3.1.0.tar.bz2 rm http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration.changes cp package/yast2-migration.spec http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration cp package/yast2-migration-3.1.0.tar.bz2 http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration cp package/yast2-migration.changes http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration osc -A 'https://api.suse.de/' addremove --- package/yast2-migration.spec 2015-06-11 09:11:23.377685595 +0000 +++ http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration.spec 2015-05-25 09:06:38.000000000 +0000 @@ -24,7 +24,7 @@ Source0: %{name}-%{version}.tar.bz2 Url: http://github.com/yast/yast-migration -BuildRequires: yast2 >= 3.1.130 +BuildRequires: yast2 BuildRequires: yast2-buildtools BuildRequires: yast2-packager BuildRequires: yast2-ruby-bindings @@ -32,7 +32,7 @@ BuildRequires: rubygem(yast-rake) # needed in build for testing BuildRequires: yast2-installation >= 3.1.137 -Requires: yast2 >= 3.1.130 +Requires: yast2 Requires: yast2-packager Requires: yast2-pkg-bindings Requires: yast2-ruby-bindings submitting package... osc -A https://api.suse.de/ commit -m Updated to git ref fd89602 Sending yast2-migration-3.1.0.tar.bz2 Sending yast2-migration.spec Transmitting file data .. Committed revision 19. rm -rf Devel:YaST:Head osc -A 'https://api.suse.de/' --traceback --verbose checkout 'Devel:YaST:Head' yast2-migration New package submitted to Devel:YaST:Head cleaning makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', '_meta'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration'] {'rev': 'latest'} A Devel:YaST:Head makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} A Devel:YaST:Head/yast2-migration makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration'] {'rev': 'latest'} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration-3.1.0.tar.bz2'] {'rev': '19'} A Devel:YaST:Head/yast2-migration/yast2-migration-3.1.0.tar.bz2 makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration.changes'] {'rev': '19'} A Devel:YaST:Head/yast2-migration/yast2-migration.changes makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration.spec'] {'rev': '19'} A Devel:YaST:Head/yast2-migration/yast2-migration.spec makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', '_meta'] {} At revision 19. osc -A 'https://api.suse.de/' cat 'SUSE:SLE-12-SP1:GA' 'yast2-migration' 'yast2-migration.spec' > /tmp/yast-rake20150611-4816-19j7onc expanding link... Server returned an error: HTTP Error 404: Not Found SUSE:SLE-12-SP1:GA/yast2-migration rm -rf Devel:YaST:Head rake aborted! Command failed with status (1): [osc -A 'https://api.suse.de/' cat 'SUSE:SL...] Tasks: TOP => osc:sr (See full trace by running task with --trace) cleaning Build step 'Execute shell' marked build as failure
See http://river.suse.de/job/yast-migration-master/26/changes Changes: [Jiri Srain] use snapper directly since fs_snapshot relies on newer version of snapper, which is and will not be available in GA [Jiri Srain] test offenses [Jiri Srain] superfluous [Jiri Srain] offenses, test update [Jiri Srain] test [Jiri Srain] method split [Jiri Srain] rubocop [Jiri Srain] rubocop ------------------------------------------ [...truncated 506 lines...] [ 19s] ... removing all built rpms [ 19s] (order: reverse yast2-migration) [ 19s] [ 19s] RPMLINT report: [ 19s] =============== [ 19s] yast2-migration.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/packages/yast2-migration/README.md [ 19s] This file has wrong end-of-line encoding, usually caused by creation or [ 19s] modification on a non-Unix system. It could prevent it from being displayed [ 19s] correctly in some circumstances. [ 19s] [ 19s] yast2-migration.noarch: W: desktopfile-without-binary /usr/share/applications/YaST2/migration.desktop xdg-su [ 19s] the .desktop file is for a file not present in the package. You should check [ 19s] the requires or see if this is not a error [ 19s] [ 19s] 2 packages and 0 specfiles checked; 0 errors, 2 warnings. [ 19s] [ 19s] [ 19s] vm-yast-ci-worker3 finished "build yast2-migration.spec" at Fri Jun 19 08:16:36 UTC 2015. [ 19s] Building yast2-migration.spec for SLE-12-SP1/x86_64 Getting buildinfo from server and store to http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/.osc/_buildinfo-SLE-12-SP1-x86_64.xml Getting buildconfig from server and store to http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/.osc/_buildconfig-SLE-12-SP1-x86_64 Updating cache of required packages 0.9% cache miss. 211/213 dependencies cached. 1/2 (Devel:YaST:Head) yast2-packager-3.1.71-2.5.x86_64.rpm 2/2 (Devel:YaST:Head) yast2-storage-3.1.57-1.2.x86_64.rpm Skipping verification of package signatures Writing build configuration Running build /var/tmp/build-root-SLE-12-SP1/home/abuild/rpmbuild/SRPMS/yast2-migration-3.1.0-1.src.rpm /var/tmp/build-root-SLE-12-SP1/home/abuild/rpmbuild/RPMS/noarch/yast2-migration-3.1.0-1.noarch.rpm rm -rf Devel:YaST:Head osc -A 'https://api.suse.de/' --traceback --verbose checkout 'Devel:YaST:Head' yast2-migration cleaning makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', '_meta'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration'] {'rev': 'latest'} A Devel:YaST:Head makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} A Devel:YaST:Head/yast2-migration makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration'] {'rev': 'latest'} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration-3.1.0.tar.bz2'] {'rev': '19'} A Devel:YaST:Head/yast2-migration/yast2-migration-3.1.0.tar.bz2 makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration.changes'] {'rev': '19'} A Devel:YaST:Head/yast2-migration/yast2-migration.changes makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration.spec'] {'rev': '19'} A Devel:YaST:Head/yast2-migration/yast2-migration.spec makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', '_meta'] {} At revision 19. /usr/lib/obs/service/format_spec_file --outdir . diff -u package/yast2-migration.spec http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration.spec tar xvf package/yast2-migration-3.1.0.tar.bz2 -C /tmp/unpacked_tarball20150619-13176-o276ej yast2-migration-3.1.0/ yast2-migration-3.1.0/README.md yast2-migration-3.1.0/src/ yast2-migration-3.1.0/src/lib/ yast2-migration-3.1.0/src/lib/migration/ yast2-migration-3.1.0/src/lib/migration/main_workflow.rb yast2-migration-3.1.0/src/lib/migration/proposal_store.rb yast2-migration-3.1.0/src/clients/ yast2-migration-3.1.0/src/clients/migration.rb yast2-migration-3.1.0/src/clients/migration_proposals.rb yast2-migration-3.1.0/src/.gitkeep yast2-migration-3.1.0/src/desktop/ yast2-migration-3.1.0/src/desktop/migration.desktop yast2-migration-3.1.0/package/ yast2-migration-3.1.0/package/yast2-migration.spec yast2-migration-3.1.0/package/yast2-migration.changes yast2-migration-3.1.0/RPMNAME yast2-migration-3.1.0/doc/ yast2-migration-3.1.0/doc/.gitkeep yast2-migration-3.1.0/.coveralls.yml yast2-migration-3.1.0/test/ yast2-migration-3.1.0/test/test_helper.rb yast2-migration-3.1.0/test/main_workflow_test.rb yast2-migration-3.1.0/test/proposal_store_test.rb yast2-migration-3.1.0/.rubocop.yml yast2-migration-3.1.0/.travis.yml yast2-migration-3.1.0/.yardopts yast2-migration-3.1.0/CONTRIBUTING.md yast2-migration-3.1.0/Rakefile yast2-migration-3.1.0/COPYING tar xvf http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration-3.1.0.tar.bz2 -C /tmp/unpacked_tarball20150619-13176-142vwy6 yast2-migration-3.1.0/ yast2-migration-3.1.0/README.md yast2-migration-3.1.0/src/ yast2-migration-3.1.0/src/lib/ yast2-migration-3.1.0/src/lib/migration/ yast2-migration-3.1.0/src/lib/migration/main_workflow.rb yast2-migration-3.1.0/src/lib/migration/proposal_store.rb yast2-migration-3.1.0/src/clients/ yast2-migration-3.1.0/src/clients/migration.rb yast2-migration-3.1.0/src/clients/migration_proposals.rb yast2-migration-3.1.0/src/.gitkeep yast2-migration-3.1.0/src/desktop/ yast2-migration-3.1.0/src/desktop/migration.desktop yast2-migration-3.1.0/package/ yast2-migration-3.1.0/package/yast2-migration.spec yast2-migration-3.1.0/package/yast2-migration.changes yast2-migration-3.1.0/RPMNAME yast2-migration-3.1.0/doc/ yast2-migration-3.1.0/doc/.gitkeep yast2-migration-3.1.0/.coveralls.yml yast2-migration-3.1.0/test/ yast2-migration-3.1.0/test/test_helper.rb yast2-migration-3.1.0/test/main_workflow_test.rb yast2-migration-3.1.0/test/proposal_store_test.rb yast2-migration-3.1.0/.rubocop.yml yast2-migration-3.1.0/.travis.yml yast2-migration-3.1.0/.yardopts yast2-migration-3.1.0/CONTRIBUTING.md yast2-migration-3.1.0/Rakefile yast2-migration-3.1.0/COPYING rm http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration.spec rm http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration-3.1.0.tar.bz2 rm http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration/yast2-migration.changes cp package/yast2-migration.spec http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration cp package/yast2-migration-3.1.0.tar.bz2 http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration cp package/yast2-migration.changes http://river.suse.de/job/yast-migration-master/ws/Devel:YaST:Head/yast2-migration osc -A 'https://api.suse.de/' addremove diff -ur /tmp/unpacked_tarball20150619-13176-o276ej/yast2-migration-3.1.0/src/lib/migration/main_workflow.rb /tmp/unpacked_tarball20150619-13176-142vwy6/yast2-migration-3.1.0/src/lib/migration/main_workflow.rb --- /tmp/unpacked_tarball20150619-13176-o276ej/yast2-migration-3.1.0/src/lib/migration/main_workflow.rb 2015-06-19 08:16:01.501755183 +0000 +++ /tmp/unpacked_tarball20150619-13176-142vwy6/yast2-migration-3.1.0/src/lib/migration/main_workflow.rb 2015-06-11 09:10:57.061682420 +0000 @@ -19,12 +19,12 @@ # ------------------------------------------------------------------------------ require "yast" +require "yast2/fs_snapshot" Yast.import "Mode" Yast.import "Pkg" Yast.import "Sequencer" Yast.import "Update" -Yast.import "Report" module Migration # The goal of the class is to provide main single entry point to start @@ -32,13 +32,6 @@ # class MainWorkflow include Yast::Logger - include Yast::I18n - - FIND_CONFIG_CMD = "/usr/bin/snapper --no-dbus list-configs | " \ - "grep \"^root \" >/dev/null" - CREATE_SNAPSHOT_CMD = "/usr/bin/snapper create --type=%{snapshot_type} " \ - "--cleanup-algorithm=number --print-number " \ - "--description=\"%{description}\"" def self.run workflow = new @@ -46,7 +39,6 @@ end def run - textdomain "migration" Yast::Mode.SetMode("update") Yast::Sequencer.Run(aliases, WORKFLOW_SEQUENCE) end @@ -128,29 +120,9 @@ end def create_snapshot - perform_snapshot if snapper_configured? - :next - end + Yast2::FsSnapshot.create_single("before update on migration") - def snapper_configured? - out = Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), - FIND_CONFIG_CMD) - - log.info("Checking if Snapper is configured: \"#{FIND_CONFIG_CMD}\" " \ - "returned: #{out}") - out["exit"] == 0 - end - - def perform_snapshot - cmd = format(CREATE_SNAPSHOT_CMD, - snapshot_type: :single, - description: "before update on migration") - - out = Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), cmd) - return :next if out["exit"] == 0 - - log.error "Snapshot could not be created: #{cmd} returned: #{out}" - Yast::Report.Error(_("Failed to create filesystem snapshot.")) + :next end end end diff -ur /tmp/unpacked_tarball20150619-13176-o276ej/yast2-migration-3.1.0/test/main_workflow_test.rb /tmp/unpacked_tarball20150619-13176-142vwy6/yast2-migration-3.1.0/test/main_workflow_test.rb --- /tmp/unpacked_tarball20150619-13176-o276ej/yast2-migration-3.1.0/test/main_workflow_test.rb 2015-06-19 08:16:01.501755183 +0000 +++ /tmp/unpacked_tarball20150619-13176-142vwy6/yast2-migration-3.1.0/test/main_workflow_test.rb 2015-06-11 09:10:57.061682420 +0000 @@ -47,12 +47,11 @@ mock_client("inst_kickoff", :next) mock_client("inst_rpmcopy", :next) - cmd_success = { "exit" => 0 } - cmd_fail = { "exit" => 1 } allow(Yast::Update).to receive(:clean_backup) allow(Yast::Update).to receive(:create_backup) allow(Yast::Update).to receive(:restore_backup) - allow(Yast::SCR).to receive(:Execute).and_return(cmd_success, cmd_fail) + allow(Yast2::FsSnapshot).to receive(:create_single) + .with("before update on migration") end it "pass workflow sequence to Yast sequencer" do submitting package... osc -A https://api.suse.de/ commit -m Updated to git ref 5f370ec Sending yast2-migration-3.1.0.tar.bz2 Transmitting file data . Committed revision 20. rm -rf Devel:YaST:Head osc -A 'https://api.suse.de/' --traceback --verbose checkout 'Devel:YaST:Head' yast2-migration New package submitted to Devel:YaST:Head cleaning makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', '_meta'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration'] {'rev': 'latest'} A Devel:YaST:Head makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} A Devel:YaST:Head/yast2-migration makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration'] {'rev': 'latest'} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration-3.1.0.tar.bz2'] {'rev': '20'} A Devel:YaST:Head/yast2-migration/yast2-migration-3.1.0.tar.bz2 makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration.changes'] {'rev': '20'} A Devel:YaST:Head/yast2-migration/yast2-migration.changes makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', 'yast2-migration.spec'] {'rev': '20'} A Devel:YaST:Head/yast2-migration/yast2-migration.spec makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-migration', '_meta'] {} At revision 20. osc -A 'https://api.suse.de/' cat 'SUSE:SLE-12-SP1:GA' 'yast2-migration' 'yast2-migration.spec' > /tmp/yast-rake20150619-13176-f8f7sx expanding link... Server returned an error: HTTP Error 404: Not Found SUSE:SLE-12-SP1:GA/yast2-migration rm -rf Devel:YaST:Head rake aborted! Command failed with status (1): [osc -A 'https://api.suse.de/' cat 'SUSE:SL...] Tasks: TOP => osc:sr (See full trace by running task with --trace) cleaning Build step 'Execute shell' marked build as failure
participants (1)
-
hudson@suse.de