[yast-devel] Re: [yast-commit] Build failed in Jenkins: yast-autoinstallation-master #153
Hi all, It seems that these tests are failing because xsltproc is not available (provided by libxslt-tools). Here comes the relevant section:
[ 34s] 1) #<Yast::AutoinstClassClass:0x00000000ae8378> #MergeClasses executes xsltproc and returns a hash with info about the result [ 34s] Failure/Error: expect(out).to eq({ 'exit' => 0, 'stderr' => '', 'stdout' => '' }) [ 34s] [ 34s] expected: {"exit"=>0, "stderr"=>"", "stdout"=>""} [ 34s] got: {"exit"=>127, "stderr"=>"sh: /usr/bin/xsltproc: No such file or directory\n", "stdout"=>""} [ 34s] [ 34s] (compared using ==) [ 34s] [ 34s] Diff: [ 34s] @@ -1,4 +1,4 @@ [ 34s] -"exit" => 0, [ 34s] -"stderr" => "", [ 34s] +"exit" => 127, [ 34s] +"stderr" => "sh: /usr/bin/xsltproc: No such file or directory\n", [ 34s] "stdout" => "", [ 34s] # ./AutoinstClass_test.rb:252:in `block (3 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:238:in `block (3 levels) in <top (required)>' [ 34s] [ 34s] 2) #<Yast::AutoinstClassClass:0x00000000ae8378> #MergeClasses when all elements must be merged merges elements from profile and configuration [ 34s] Failure/Error: let(:output_xml) { File.read(output_path) } [ 34s] Errno::ENOENT: [ 34s] No such file or directory @ rb_sysopen - /home/abuild/rpmbuild/BUILD/autoyast2-3.1.76/tmp/output.xml [ 34s] # ./AutoinstClass_test.rb:220:in `read' [ 34s] # ./AutoinstClass_test.rb:220:in `block (3 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:262:in `block (4 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:238:in `block (3 levels) in <top (required)>' [ 34s] [ 34s] 3) #<Yast::AutoinstClassClass:0x00000000ae8378> #MergeClasses when some elements are not intended to be merged does not merge those elements [ 34s] Failure/Error: let(:output_xml) { File.read(output_path) } [ 34s] Errno::ENOENT: [ 34s] No such file or directory @ rb_sysopen - /home/abuild/rpmbuild/BUILD/autoyast2-3.1.76/tmp/output.xml [ 34s] # ./AutoinstClass_test.rb:220:in `read' [ 34s] # ./AutoinstClass_test.rb:220:in `block (3 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:281:in `block (4 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:238:in `block (3 levels) in <top (required)>' [ 34s] [ 34s] Finished in 0.10792 seconds (files took 0.60881 seconds to load) [ 34s] 28 examples, 3 failures [ 34s] [ 34s] Failed examples:
-- Imobach González Sosa YaST Team at SUSE LINUX GmbH
On Tue, 05 May 2015 17:26:24 +0100 Imobach González Sosa <igonzalezsosa@suse.de> wrote:
Hi all,
It seems that these tests are failing because xsltproc is not available (provided by libxslt-tools). Here comes the relevant section:
[ 34s] 1) #<Yast::AutoinstClassClass:0x00000000ae8378> #MergeClasses executes xsltproc and returns a hash with info about the result [ 34s] Failure/Error: expect(out).to eq({ 'exit' => 0, 'stderr' => '', 'stdout' => '' }) [ 34s] [ 34s] expected: {"exit"=>0, "stderr"=>"", "stdout"=>""} [ 34s] got: {"exit"=>127, "stderr"=>"sh: /usr/bin/xsltproc: No such file or directory\n", "stdout"=>""} [ 34s] [ 34s] (compared using ==) [ 34s] [ 34s] Diff: [ 34s] @@ -1,4 +1,4 @@ [ 34s] -"exit" => 0, [ 34s] -"stderr" => "", [ 34s] +"exit" => 127, [ 34s] +"stderr" => "sh: /usr/bin/xsltproc: No such file or directory\n", [ 34s] "stdout" => "", [ 34s] # ./AutoinstClass_test.rb:252:in `block (3 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:238:in `block (3 levels) in <top (required)>' [ 34s] [ 34s] 2) #<Yast::AutoinstClassClass:0x00000000ae8378> #MergeClasses when all elements must be merged merges elements from profile and configuration [ 34s] Failure/Error: let(:output_xml) { File.read(output_path) } [ 34s] Errno::ENOENT: [ 34s] No such file or directory @ rb_sysopen - /home/abuild/rpmbuild/BUILD/autoyast2-3.1.76/tmp/output.xml [ 34s] # ./AutoinstClass_test.rb:220:in `read' [ 34s] # ./AutoinstClass_test.rb:220:in `block (3 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:262:in `block (4 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:238:in `block (3 levels) in <top (required)>' [ 34s] [ 34s] 3) #<Yast::AutoinstClassClass:0x00000000ae8378> #MergeClasses when some elements are not intended to be merged does not merge those elements [ 34s] Failure/Error: let(:output_xml) { File.read(output_path) } [ 34s] Errno::ENOENT: [ 34s] No such file or directory @ rb_sysopen - /home/abuild/rpmbuild/BUILD/autoyast2-3.1.76/tmp/output.xml [ 34s] # ./AutoinstClass_test.rb:220:in `read' [ 34s] # ./AutoinstClass_test.rb:220:in `block (3 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:281:in `block (4 levels) in <top (required)>' [ 34s] # ./AutoinstClass_test.rb:238:in `block (3 levels) in <top (required)>' [ 34s] [ 34s] Finished in 0.10792 seconds (files took 0.60881 seconds to load) [ 34s] 28 examples, 3 failures [ 34s] [ 34s] Failed examples:
If it failed in jenkins it means, that it missing in build requires. If it fail on your pc, then it is problem with missing dependency. Josef -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On 5.5.2015 19:42, Josef Reidinger wrote:
If it failed in jenkins it means, that it missing in build requires. If it fail on your pc, then it is problem with missing dependency.
I'm working on the fix right now. Lukas -- Lukas Ocilka, Systems Management (Yast) Team Leader SLE Department, SUSE Linux -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
El Miércoles, 6 de mayo de 2015 10:49:33 Lukas Ocilka escribió:
On 5.5.2015 19:42, Josef Reidinger wrote:
If it failed in jenkins it means, that it missing in build requires. If it fail on your pc, then it is problem with missing dependency.
I'm working on the fix right now.
Also I was taking a look at that (it's something new for me). I guess that the package/autoyast2.spec is missing "BuildRequires: libxslt" (it has a Requires: libxslt). Or is it more complex than that?
Lukas
-- Imobach González Sosa YaST Team at SUSE LINUX GmbH
El Miércoles, 6 de mayo de 2015 09:52:19 Imobach González Sosa escribió:
El Miércoles, 6 de mayo de 2015 10:49:33 Lukas Ocilka escribió:
On 5.5.2015 19:42, Josef Reidinger wrote:
If it failed in jenkins it means, that it missing in build requires. If it fail on your pc, then it is problem with missing dependency.
I'm working on the fix right now.
Also I was taking a look at that (it's something new for me). I guess that the package/autoyast2.spec is missing "BuildRequires: libxslt" (it has a Requires: libxslt). Or is it more complex than that?
Oh, you've just submitted a PR :)
Lukas
-- Imobach González Sosa YaST Team at SUSE LINUX GmbH
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 6.5.2015 10:53, Imobach González Sosa wrote:
El Miércoles, 6 de mayo de 2015 09:52:19 Imobach González Sosa escribió:
El Miércoles, 6 de mayo de 2015 10:49:33 Lukas Ocilka escribió:
On 5.5.2015 19:42, Josef Reidinger wrote:
If it failed in jenkins it means, that it missing in build requires. If it fail on your pc, then it is problem with missing dependency.
I'm working on the fix right now.
Also I was taking a look at that (it's something new for me). I guess that the package/autoyast2.spec is missing "BuildRequires: libxslt" (it has a Requires: libxslt). Or is it more complex than that?
Oh, you've just submitted a PR :)
Yes, to explain it... 'BuildRequires' defines what is installed in the build system while building the package. And part of the build process is also running test cases, so anything you need for testcases to pass, needs to be in BuildRequires. 'Requires' defines the RPM dependency of the resulting RPM when it's installed. Please, check that libxslt is really needed there. And that's it :) Lukas - -- Lukas Ocilka, Systems Management (Yast) Team Leader SLE Department, SUSE Linux -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlVJ15YACgkQVSqMdRCqTiznBACaAw1DVVQczBXzToMcMg0NSuBB zIsAn3vXKFaqaip4ovPSEMm9hpbHO/lX =btVx -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (3)
-
Imobach González Sosa
-
Josef Reidinger
-
Lukas Ocilka