Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # dev >> PHP test suite failing


Copy link to this message
-
Re: PHP test suite failing
Hmm. I downgraded to PHP 5.3.23, but still get the same test failures. Does
anyone know their way around the PHP test suite?

Doug, would you mind applying the patch from
https://issues.apache.org/jira/browse/AVRO-1287 and running the interop
tests, to see if the PHP tests still pass? (The patch extends the Java
implementation to generate a deflate-compressed data file as well as the
existing null-codec file, but I don't know if the PHP implementation can
read deflated data files.)

Thanks!
Martin
On 10 April 2013 11:44, Doug Cutting <[EMAIL PROTECTED]> wrote:

> PHP tests pass for me, but I'm using a slightly older version of PHP.
>
> % php --version
> PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013
> 14:31:48)
> Copyright (c) 1997-2012 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
>
> % ./build.sh test
> PHPUnit 3.6.12 by Sebastian Bergmann.
>
> ...............................................................  63 / 404 (
> 15%)
> .......................................III..................... 126 / 404 (
> 31%)
> ............................................................... 189 / 404 (
> 46%)
> ............................................................... 252 / 404 (
> 62%)
> ............................................................... 315 / 404 (
> 77%)
> ............................................................... 378 / 404 (
> 93%)
> ..........................
>
> Time: 1 second, Memory: 11.50Mb
>
> OK, but incomplete or skipped tests!
> Tests: 404, Assertions: 764, Incomplete: 3.
>
> Doug
>
>
> On Tue, Apr 9, 2013 at 11:18 PM, Martin Kleppmann <[EMAIL PROTECTED]
> >wrote:
>
> > Hello,
> >
> > I'm trying to get the tests in all languages working on my machine,
> before
> > making changes to the interop tests (
> > https://issues.apache.org/jira/browse/AVRO-1287). All tests referenced
> > from
> > `./build.sh test` (in the repository root) pass for me, except for the
> PHP
> > tests, which fail — see below.
> >
> > They look like genuine test failures, but it's possible that there's
> > something wrong with my setup (though I've not used PHP in many years,
> so I
> > wouldn't know). Are the PHP tests expected to be passing at the moment?
> >
> > Thanks,
> > Martin
> >
> >
> > $ php --version
> > PHP 5.4.13 (cli) (built: Apr  6 2013 19:26:53)
> > Copyright (c) 1997-2013 The PHP Group
> > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
> >
> > $ ./build.sh test
> > PHPUnit 3.7.19 by Sebastian Bergmann.
> >
> > EEEEEEEEE......................................................  63 /
> 404 (
> > 15%)
> > .......................................III..................... 126 /
> 404 (
> > 31%)
> > .................................SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 189 /
> 404 (
> > 46%)
> > SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 252 /
> 404 (
> > 62%)
> > SSSSSSSSSSS...........SSSSSSSSSSS...........SSSSSSSSSSS.F..F... 315 /
> 404 (
> > 77%)
> > ............................................................... 378 /
> 404 (
> > 93%)
> > ..........................
> >
> > Time: 0 seconds, Memory: 9.00Mb
> >
> > There were 9 errors:
> >
> > 1) DataFileTest::test_write_read_nothing_round_trip
> > Non-static method AvroDataIO::open_writer() should not be called
> statically
> >
> > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132
> > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132
> > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:68
> >
> > 2) DataFileTest::test_write_read_null_round_trip
> > Non-static method AvroDataIO::open_writer() should not be called
> statically
> >
> > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132
> > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132
> > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:82
> >
> > 3) DataFileTest::test_write_read_string_round_trip
> > Non-static method AvroDataIO: