[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Failing unit test on RHEL 6



As an addendum for future investigators, I found the commit where the test was added.

https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fcommit%2Ff357938dd9f32afa7a5a6983ef7beb9fae911264&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=FcIgldEERJEwaHaVHeHkw89BgOcqXQLKjClCnRFC9mg%3D&reserved=0

kk

On 11 Oct 2018, at 12:38 pm, Karl Goetz via Eprints-tech <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>> wrote:

Hi all,
After quite a bit of trial and error I?ve managed to get EPrints tests running on RHEL 6.10 (approximately as described on https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FUnit_tests&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=A%2B%2BtBt8RDJtIOoCnfE7CRoj5bDyRZ4dtredAWewWJHo%3D&amp;reserved=0<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FUnit_tests&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=A%2B%2BtBt8RDJtIOoCnfE7CRoj5bDyRZ4dtredAWewWJHo%3D&amp;reserved=0>) . All tests are now passing, bar one which I can?t find a solution to.

Environment:
RHEL 6.10
Eprints 3.3.15


This issue has been mentioned before (See the history of Unit_tests page above, or http://threader.ecs.soton.ac.uk/lists/eprints_tech/20860.html<http://threader.ecs.soton.ac.uk/lists/eprints_tech/20860.html> and http://threader.ecs.soton.ac.uk/lists/eprints_tech/20996.html<http://threader.ecs.soton.ac.uk/lists/eprints_tech/20996.html>) but no solutions are offered to this specific issue.


Error looks like this:

/usr/share/eprints/tests/25_mysql.pl ............. ok
/usr/share/eprints/tests/30_search.pl ............ 12/35
#   Failed test 'compound type field query'
#   at /usr/share/eprints/tests/30_search.pl line 358.
# Looks like you failed 1 test of 35.
/usr/share/eprints/tests/30_search.pl ............ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/35 subtests
(less 3 skipped subtests: 31 okay)
/usr/share/eprints/tests/31_simple_search.pl ..... ok

[?]

Test Summary Report
-------------------
/usr/share/eprints/tests/30_search.pl          (Wstat: 256 Tests: 35 Failed: 1)
  Failed test:  29
  Non-zero exit status: 1
Files=41, Tests=2142, 37 wallclock secs ( 0.17 usr  0.17 sys + 30.32 cusr  3.65 csys = 34.31 CPU)
Result: FAIL
Failed 1/41 test programs. 1/2142 subtests failed.


It comes from 30_search.pl, starting at line 347 and going to 359 ($sample_doc is defined on line 85). https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Ftests%2F30_search.pl%23L347&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=4A5b2PckQFT4KZojCVGsj0HiMV7sT3yyc39Hkg%2BBBP8%3D&amp;reserved=0<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Ftests%2F30_search.pl%23L347&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=4A5b2PckQFT4KZojCVGsj0HiMV7sT3yyc39Hkg%2BBBP8%3D&amp;reserved=0>

$searchexp = EPrints::Search->new(
        session => $session,
        dataset => $sample_doc->dataset,
        satisfy_all => 0 );

        $searchexp->add_field( $sample_doc->dataset->field( "relation" ), "http%3A//eprints.org/relation/islightboxThumbnailVersionOf:/id/document/1<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Frelation%2FislightboxThumbnailVersionOf%3A%2Fid%2Fdocument%2F1&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=6%2BM263kPJKgx3Cr21LilpMUTzcjm2381FxyrOLvAF5U%3D&amp;reserved=0>", "EX" );

        #print STDERR $searchexp->get_conditions->sql( dataset => $sample_doc->dataset, session => $session );

        $list = $searchexp->perform_search;

        ok($list->count > 0, "compound type field query");


I?m guessing the searchexp has broken by the eprints website changing, or its a test that only works internally at eprints services (which results in $list-> count being zero and the test failing).

Before I either comment it out or invest more time in determining the cause (as time permits), is anyone able to offer an insight as to what might be causing this failure?

Thanks,

--
Karl Goetz,  Senior Library Officer (Library Systems)
University of Tasmania, Private Bag 25, Hobart 7001
Available Tuesday, Wednesday, Thursday



University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=BBNtGQv8BAyHYuB86MNXh8AfVOBkwCob9NQaPfyAU%2Fo%3D&amp;reserved=0
*** EPrints community wiki: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=4iaCtyImZ%2FiD%2F2shRI5lfRh6qGHL7LlbZ6usoV8hcT8%3D&amp;reserved=0
*** EPrints developers Forum: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caa162487458e44a3126f08d62f27e664%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=C0zDGqPQfcWWb%2BqbywhKw1fmciHn3N2wab8vvn8knLc%3D&amp;reserved=0

--
Karl Goetz,  Senior Library Officer (Library Systems)
University of Tasmania, Private Bag 25, Hobart 7001
Available Tuesday, Wednesday, Thursday

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20181011/e6f1d6fa/attachment-0001.html