[Bug 1107253] New: yast2-rmt fails in the unit test
http://bugzilla.suse.com/show_bug.cgi?id=1107253 Bug ID: 1107253 Summary: yast2-rmt fails in the unit test Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: mlin@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- yast2-rmt fails to build in Leap 15.1 [ 40s] + rake test:unit [ 40s] rspec [ 41s] ....................................................................FF......................F................. [ 41s] [ 41s] Failures: [ 41s] [ 41s] 1) RMT::WizardMariaDBPage#start_database raises an error when mysql can't be started [ 41s] Failure/Error: expect(Yast::SystemdService).to receive(:find!).with('mysql').and_return(service_double) [ 41s] [ 41s] NameError: [ 41s] uninitialized constant Yast::SystemdService [ 41s] Did you mean? SystemExit [ 41s] # ./spec/rmt/wizard_maria_db_page_spec.rb:174:in `block (3 levels) in <top (required)>' [ 41s] [ 41s] 2) RMT::WizardMariaDBPage#start_database returns true when mysql is started [ 41s] Failure/Error: expect(Yast::SystemdService).to receive(:find!).with('mysql').and_return(service_double) [ 41s] [ 41s] NameError: [ 41s] uninitialized constant Yast::SystemdService [ 41s] Did you mean? SystemExit [ 41s] # ./spec/rmt/wizard_maria_db_page_spec.rb:174:in `block (3 levels) in <top (required)>' [ 41s] [ 41s] 3) RMT::Wizard runs and goes through the sequence [ 41s] Failure/Error: subject(:wizard) { described_class.new } [ 41s] [ 41s] NameError: [ 41s] component cannot import namespace 'SystemdService' [ 41s] # ./src/lib/rmt/wizard.rb:38:in `initialize' [ 41s] # ./spec/rmt/wizard_spec.rb:26:in `new' [ 41s] # ./spec/rmt/wizard_spec.rb:26:in `block (2 levels) in <top (required)>' [ 41s] # ./spec/rmt/wizard_spec.rb:58:in `block (2 levels) in <top (required)>' [ 41s] [ 41s] Finished in 0.14208 seconds (files took 0.4578 seconds to load) [ 41s] 110 examples, 3 failures [ 41s] [ 41s] Failed examples: [ 41s] [ 41s] rspec ./spec/rmt/wizard_maria_db_page_spec.rb:178 # RMT::WizardMariaDBPage#start_database raises an error when mysql can't be started [ 41s] rspec ./spec/rmt/wizard_maria_db_page_spec.rb:184 # RMT::WizardMariaDBPage#start_database returns true when mysql is started [ 41s] rspec ./spec/rmt/wizard_spec.rb:35 # RMT::Wizard runs and goes through the sequence [ 41s] [ 41s] rake aborted! [ 41s] Command failed with status (1): [rspec...] [ 41s] /home/abuild/rpmbuild/BUILD/yast2-rmt-1.0.0/Rakefile:32:in `block in <top (required)>' [ 41s] Tasks: TOP => test:unit [ 41s] (See full trace by running task with --trace) [ 41s] error: Bad exit status from /var/tmp/rpm-tmp.CtEswu (%check) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 Max Lin <mlin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tschmidt@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c1 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #1 from Ludwig Nussel <lnussel@suse.com> --- 1.0.3 in TW has the same issue: https://build.opensuse.org/package/live_build_log/openSUSE:Factory/yast2-rmt... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Other |YaST2 Assignee|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | QA Contact|qa-bugs@suse.de |jsrain@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c2 Stefan Schubert <schubi@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schubi@suse.com Component|YaST2 |Other Assignee|yast2-maintainers@suse.de |fschnizlein@suse.com QA Contact|jsrain@suse.com |qa-bugs@suse.de --- Comment #2 from Stefan Schubert <schubi@suse.com> --- This package will we maint. by the SCC team. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 Felix Schnizlein <fschnizlein@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lslezak@suse.com Assignee|fschnizlein@suse.com |scc-bugs@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 Felix Schnizlein <fschnizlein@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fschnizlein@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c6 Lukas Ocilka <locilka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |igonzalezsosa@suse.com Flags|needinfo?(yast2-maintainers |needinfo?(igonzalezsosa@sus |@suse.de) |e.com) --- Comment #6 from Lukas Ocilka <locilka@suse.com> --- Imo, we seem to have an API change (we do), could you PLS point the team to the right documentation/PR/something? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c7 Imobach Gonzalez Sosa <igonzalezsosa@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS Flags|needinfo?(igonzalezsosa@sus | |e.com) | --- Comment #7 from Imobach Gonzalez Sosa <igonzalezsosa@suse.com> --- I've open a PR that fixes the issue: https://github.com/SUSE/yast2-rmt/pull/35/files The problem was that we changed our System library and we did not know about this module. You can find further details in this document: https://github.com/yast/yast-yast2/blob/master/library/system/doc/system_ser... Regards, Imo -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c8 Thomas Schmidt <tschmidt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(igonzalezsosa@sus | |e.com) --- Comment #8 from Thomas Schmidt <tschmidt@suse.com> --- Thank you for the patch Imobach! Would it be possible to fix it in a way that it also continues working with the SLES15 Yast? Because else we would need to branch the RMT codebase just because of this API change. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c9 --- Comment #9 from Imobach Gonzalez Sosa <igonzalezsosa@suse.com> --- @Thomas yes, it is possible. I will write a patch which works with both versions. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 Imobach Gonzalez Sosa <igonzalezsosa@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|scc-bugs@suse.de |igonzalezsosa@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c10 Imobach Gonzalez Sosa <igonzalezsosa@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(igonzalezsosa@sus | |e.com) | --- Comment #10 from Imobach Gonzalez Sosa <igonzalezsosa@suse.com> --- @Thomas I've updated the patch to work in both situations. Please, have a look when you have time. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c11 Thomas Schmidt <tschmidt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #11 from Thomas Schmidt <tschmidt@suse.com> --- Thanks Imobach! PR is merged and all targets green: https://build.opensuse.org/package/show/systemsmanagement:SCC:RMT/yast2-rmt -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c15 --- Comment #15 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2018:3843-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 1107253 CVE References: Sources used: SUSE Linux Enterprise Module for Server Applications 15 (src): yast2-rmt-1.1.1-3.8.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 http://bugzilla.suse.com/show_bug.cgi?id=1107253#c16 --- Comment #16 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-RU-2018:3904-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 1107253 CVE References: Sources used: openSUSE Leap 15.0 (src): yast2-rmt-1.1.1-lp150.2.9.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1107253 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| maint:planned:update | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com