harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hindess <mark.hind...@googlemail.com>
Subject [classlib][testing] test domains/address (was: Re: [continuum] BUILD FAILURE: Classlib/linux.ia32 Build/Test)
Date Mon, 04 Jun 2007 09:40:04 GMT

Perhaps we should be more consistent in our use of domain names and IP
addresses in tests?  I notice for instance that running our test causes
DNS lookups for the following (all of which have valid name servers):

  superdns.com
  www.google.com
  a.b.c.x.y.z.com
  www.intel.com
  another.host.com
  jcltest.apache.org

We also look up odd addresses like "-", "unresolved address", and
"any-other-site-which-is-not-siteName.com".

Do we really need to query these - particularly those that we don't
control[0]?  It doesn't really seem polite to run automated tests that
result in queries against machines we don't own[1].

Similarly, we do PTR lookups for things like:

  1.0.0.0

which is currently reserved but could be given away at any time.

I'd suggest that any test that results a DNS lookup should use an
apache.org name/address where possible.  We should also pick two names
(and two address for reverse lookups) to use consistently for lookup
requiring valid and invalid lookups.

Any test that merely references an name or ip address should use the
conventions described in RFC-2606 or RFC-1918 respectively.

I'm sure there will be exceptions - for instance, sometimes it might be
better to use a 127.0.0.0/8 address - but I still think some consistency
would be a good idea.  Comments?

Regards,
 Mark.

[0] z.com is actually owned by IBM but almost certainly not controlled
    by anyone on this list.

[1] Of course, there are some - like root servers - that we can't
sensibly avoid.

On 4 June 2007 at 10:04, "Tony Wu" <wuyuehao@gmail.com> wrote:
> Hi Alexei,
> 
> This test fails because the address 239.255.2.3 is baned by firewall.
> I've added it to accpet list.
> 
> test2276 Error Operation not permitted
> 
> java.net.SocketException: Operation not permitted at
> org.apache.harmony.luni.platform.OSNetworkSystem.sendDatagramImpl(Native
> Method) at org.apache.harmony.luni.platform.OSNetworkSystem.sendDatagram(OSNe
> tworkSystem.java:155)
> at org.apache.harmony.luni.net.PlainDatagramSocketImpl.send(PlainDatagramSock
> etImpl.java:275)
> at java.net.DatagramSocket.send(DatagramSocket.java:448) at
> tests.api.java.net.DatagramSocketTest.test2276(DatagramSocketTest.java:90)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> 
> 
> On 6/3/07, Alexei Zakharov <alexei.zakharov@gmail.com> wrote:
> > Hi all,
> >
> > >      [exec]     [junit] Tests run: 35, Failures: 0, Errors: 1, Time elaps
> ed: 15.173 sec
> > >      [exec]     [junit] TEST tests.api.java.net.DatagramSocketTest FAILED
> >
> > I can't reproduce it neither on Windows nor on Linux. Can anyone from
> > IBM guys send more detailed information about this failure? Thanks!
> >
> > Alexei
> >
> > 7/6/3, nomail@hursley.ibm.com <nomail@hursley.ibm.com>:
> > > Online report : http://people.apache.org/~hindessm/continuum/classlib/lin
> ux.ia32/2007/06/02/20070602-232418.failure.log.gz
> > > Build statistics:
> > >   State: Failed
> > >   Previous State: Ok
> > >   Started at: Sat, 2 Jun 2007 23:09:21 +0100
> > >   Finished at: Sun, 3 Jun 2007 00:24:15 +0100
> > >   Total time: 1h 14m 53s
> > >   Build Trigger: Schedule
> > >   Exit code: 1
> > >   Building machine hostname: hy2
> > >   Operating system : Linux(unknown)
> > >   Java version : 1.5.0_06(Sun Microsystems Inc.)
> > >
> > > Changes
> > >                             classlib/modules/luni/src/test/java/tests/api
> /java/net/MulticastSocketTest.java
> > >             classlib/modules/luni/src/test/java/tests/api/java/net/Datagr
> amSocketTest.java
> > >             classlib/modules/luni/src/main/java/java/net/DatagramPacket.j
> ava
> > >             classlib/modules/luni/src/main/java/java/net/DatagramSocket.j
> ava
> > >
> > > *************************************************************************
> ***
> > > Output:
> > > *************************************************************************
> ***
> > > Buildfile: build.xml
> > >
> > > svn-prop:
> > >
> > > build:
> > >    [delete] Deleting directory /home/hybld/continuum-working-directory/6/
> classlib/deploy
> > >      [echo] Classlib revision is 543791
> > >      [echo] Post process: true
> > >      [echo] JAPI: true
> > >      [echo] Building with reference jdk/javac
> > >      [exec] Buildfile: build.xml
> > >
> > >      [exec] -init-hdk-for-clean:
> > >      [exec]     [mkdir] Created dir: /home/hybld/continuum-working-direct
> ory/6/classlib/deploy/build/ant
> > >      [exec]      [copy] Copying 1 file to /home/hybld/continuum-working-d
> irectory/6/classlib/deploy/build/ant
> > >
> > >      [exec] clean-java:
> > >
> > >      [exec] -modules-clean-bin:
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 30 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 12 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/accessibility/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 13 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 5 files from /home/hybld/continuum-worki
> ng-directory/6/classlib/modules/annotation/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 35 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 1 files from /home/hybld/continuum-worki
> ng-directory/6/classlib/modules/applet/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 42 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 36 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/archive/bin/test
> > >
> > >      [exec] clean-native-includes:
> > >      [exec]    [delete] /home/hybld/continuum-working-directory/6/classli
> b/deploy/include not found.
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 112 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 226 files from /home/hybld/continuum-wor
> king-directory/6/classlib/modules/auth/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 908 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 540 files from /home/hybld/continuum-wor
> king-directory/6/classlib/modules/awt/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 107 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 256 files from /home/hybld/continuum-wor
> king-directory/6/classlib/modules/beans/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 125 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] /home/hybld/continuum-working-directory/6/classli
> b/modules/concurrent/bin/test not found.
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 48 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 90 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/crypto/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 93 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 3 files from /home/hybld/continuum-worki
> ng-directory/6/classlib/modules/imageio/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 9 files from /home/hybld/continuum-worki
> ng-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 20 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/instrument/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 177 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 195 files from /home/hybld/continuum-wor
> king-directory/6/classlib/modules/jndi/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 43 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 18 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/lang-management/bin/api
> > >      [exec]    [delete] Deleting 16 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/lang-management/bin/impl
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 34 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 100 files from /home/hybld/continuum-wor
> king-directory/6/classlib/modules/logging/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 967 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 955 files from /home/hybld/continuum-wor
> king-directory/6/classlib/modules/luni/bin/test
> > >
> > >      [exec] clean-native-includes:
> > >      [exec]    [delete] /home/hybld/continuum-working-directory/6/classli
> b/deploy/include not found.
> > >      [exec]    [delete] /home/hybld/continuum-working-directory/6/classli
> b/deploy/jdk/include not found.
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 29 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 14 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 25 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/math/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 14 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 1 files from /home/hybld/continuum-worki
> ng-directory/6/classlib/modules/misc/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 142 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleted 5 directories from /home/hybld/continuum-
> working-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 157 files from /home/hybld/continuum-wor
> king-directory/6/classlib/modules/nio/bin/test
> > >      [exec]    [delete] Deleted 19 directories from /home/hybld/continuum
> -working-directory/6/classlib/modules/nio/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 20 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 79 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/nio_char/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 44 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 19 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/pack200/bin/test
> > >
> > >      [exec] clean-native-includes:
> > >      [exec]    [delete] /home/hybld/continuum-working-directory/6/classli
> b/deploy/include not found.
> > >
> > >      [exec] clean:
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 32 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 34 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/prefs/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 205 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 60 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/print/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 177 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 14 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/regex/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 230 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 53 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/rmi/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 429 files from /home/hybld/continuum-wor
> king-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 622 files from /home/hybld/continuum-wor
> king-directory/6/classlib/modules/security/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 2 files from /home/hybld/continuum-worki
> ng-directory/6/classlib/build/classes
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 74 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 54 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/sound/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 84 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 75 files from /home/hybld/continuum-work
> ing-directory/6/classlib/modules/sql/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 6 files from /home/hybld/continuum-worki
> ng-directory/6/classlib/build/classes
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 1666 files from /home/hybld/continuum-wo
> rking-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 4 files from /home/hybld/continuum-worki
> ng-directory/6/classlib/build/classes
> > >      [exec]    [delete] Deleting 1880 files from /home/hybld/continuum-wo
> rking-directory/6/classlib/modules/swing/bin/test
> > >
> > >      [exec] clean:
> > >      [exec]    [delete] Deleting 40 files from /home/hybld/continuum-work
> ing-directory/6/classlib/build/classes
> > >
> > > ...
> > >
> > >      [exec]     [javac] ----------
> > >      [exec]     [javac] 1. WARNING in /home/hybld/continuum-working-direc
> tory/6/classlib/modules/annotation/src/test/java/org/apache/harmony/annotatio
> n/tests/java/lang/annotation/IncompleteAnnotationExceptionTest.java
> > >      [exec]     [javac]  (at line 53)
> > >      [exec]     [javac]         clazz, elementName);
> > >      [exec]     [javac]         ^^^^^
> > >      [exec]     [javac] Type safety: The expression of type Class needs u
> nchecked conversion to conform to Class<? extends Annotation>
> > >      [exec]     [javac] ----------
> > >      [exec]     [javac] 1 problem (1 warning)
> > >
> > >      [exec] prepare-exclude:
> > >
> > > ...
> > >
> > >      [exec]     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapse
> d: 0.005 sec
> > >      [exec]     [junit] Tests run: 18, Failures: 0, Errors: 0, Time elaps
> ed: 0.014 sec
> > >      [exec]     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapse
> d: 0.005 sec
> > >      [exec]     [junit] Tests run: 35, Failures: 0, Errors: 1, Time elaps
> ed: 15.173 sec
> > >      [exec]     [junit] TEST tests.api.java.net.DatagramSocketTest FAILED
> > >      [exec]     [junit] 2007-06-02 23:26:24.263::INFO:  Logging to STDERR
>  via org.mortbay.log.StdErrLog
> > >      [exec]     [junit] 2007-06-02 23:26:24.363::INFO:  jetty-6.0.x
> > >      [exec]     [junit] 2007-06-02 23:26:24.448::INFO:  Started SocketCon
> nector @ 0.0.0.0:48469
> > >      [exec]     [junit] Tests run: 21, Failures: 0, Errors: 0, Time elaps
> ed: 0.251 sec
> > >      [exec]     [junit] Tests run: 13, Failures: 0, Errors: 0, Time elaps
> ed: 0.037 sec
> > >
> > > ...
> > >
> > >      [exec]     [junit] Tests run: 24, Failures: 0, Errors: 0, Time elaps
> ed: 0.124 sec
> > >      [exec]     [junit] Tests run: 20, Failures: 0, Errors: 0, Time elaps
> ed: 0.048 sec
> > >      [exec]     [junit] Tests run: 48, Failures: 0, Errors: 0, Time elaps
> ed: 0.276 sec
> > >      [exec]     [junit] Tests run: 17, Failures: 0, Errors: 0, Time elaps
> ed: 0.363 sec
> > >      [exec]     [junit] Tests FAILED
> > >
> > >      [exec] touch-failures-file:
> > >
> > >      [exec] touch-errors-file:
> > >
> > >
> > > ...
> > >
> > >      [exec]     [junit] org.apache.harmony.rmi.test.MyException: MyRemote
> Object.test_Exception
> > >      [exec]     [junit] Done.
> > >
> > >      [exec]     [junit] Testing test_Error...
> > >      [exec]     [junit] java.rmi.ServerError: Error occurred while remote
>  method invocation; nested exception is:
> > >      [exec]     [junit]         java.lang.Error: MyRemoteObject.test_Erro
> r
> > >      [exec]     [junit] Done.
> > >
> > >      [exec]     [junit] Testing test_RuntimeException...
> > >      [exec]     [junit] java.lang.RuntimeException: MyRemoteObject.text_R
> untimeException
> > >      [exec]     [junit] Done.
> > >
> > > ...
> > >
> > >      [exec]     [junit] org.apache.harmony.rmi.test.MyException: MyRemote
> Object.test_Exception
> > >      [exec]     [junit] Done.
> > >
> > >      [exec]     [junit] Testing test_Error...
> > >      [exec]     [junit] java.rmi.ServerError: Error occurred while remote
>  method invocation; nested exception is:
> > >      [exec]     [junit]         java.lang.Error: MyRemoteObject.test_Erro
> r
> > >      [exec]     [junit] Done.
> > >
> > >      [exec]     [junit] Testing test_RuntimeException...
> > >      [exec]     [junit] java.lang.RuntimeException: MyRemoteObject.text_R
> untimeException
> > >      [exec]     [junit] Done.
> > >
> > > ...
> > >
> > >      [exec] gen-report:
> > >
> > >      [exec] check-test-result:
> > >
> > >      [exec] BUILD FAILED
> > >      [exec] /home/hybld/continuum-working-directory/6/classlib/build.xml:
> 169: The following error occurred while executing this line:
> > >      [exec] /home/hybld/continuum-working-directory/6/classlib/make/build
> -test.xml:147: There were test errors.
> > >
> > >      [exec] Total time: 56 minutes 50 seconds
> > >      [exec] Result: 1
> > >      [echo] Tests.failed is set to true
> > >
> > > japi:
> > >
> > >      [exec] Processing class java.lang,Object:+
> > >      [exec] Processing package java.lang,:===============================
> ==============================================+-+++++++++++-+++++++++++++-+++
> ++++++++++++++-+++++-+++++++++++++++++++++++-++++--^+^+++++++++--++++++++++
> > >
> > > ...
> > >
> > >      [exec] Processing package java.lang.management,:====================
> =========================================================++++-+++++++++++
> > >      [exec] Processing package java.lang.ref,:===========================
> ==================================================+++++
> > >      [exec] Processing package java.lang.reflect,:=======================
> ======================================================+++++++++++++++++++++
> > >      [exec] Processing class ,java:
> > >      [exec] Failed to Japize java: java.lang.RuntimeException: NoClassDef
> FoundError: java
> > >      [exec] java.lang.RuntimeException: NoClassDefFoundError: java
> > >      [exec]     at net.wuffies.japi.ClassFile.forName(ClassFile.java:163)
> > >      [exec]     at net.wuffies.japi.Japize.getClassWrapper(Japize.java:14
> 25)
> > >      [exec]     at net.wuffies.japi.Japize.japizeClass(Japize.java:748)
> > >      [exec]     at net.wuffies.japi.Japize.processClass(Japize.java:516)
> > >
> > > ...
> > >
> > >      [exec]     at net.wuffies.japi.Japize.doJapize(Japize.java:443)
> > >      [exec]     at net.wuffies.japi.Japize.main(Japize.java:316)
> > >
> > >      [exec] Processing class ,javax:
> > >      [exec] Failed to Japize javax: java.lang.RuntimeException: NoClassDe
> fFoundError: javax
> > >      [exec] java.lang.RuntimeException: NoClassDefFoundError: javax
> > >      [exec]     at net.wuffies.japi.ClassFile.forName(ClassFile.java:163)
> > >      [exec]     at net.wuffies.japi.Japize.getClassWrapper(Japize.java:14
> 25)
> > >      [exec]     at net.wuffies.japi.Japize.japizeClass(Japize.java:748)
> > >      [exec]     at net.wuffies.japi.Japize.processClass(Japize.java:516)
> > >
> > > ...
> > >
> > >      [exec]     at net.wuffies.japi.Japize.doJapize(Japize.java:443)
> > >      [exec]     at net.wuffies.japi.Japize.main(Japize.java:316)
> > >
> > >      [exec] Processing class ,org:
> > >      [exec] Failed to Japize org: java.lang.RuntimeException: NoClassDefF
> oundError: org
> > >      [exec] java.lang.RuntimeException: NoClassDefFoundError: org
> > >      [exec]     at net.wuffies.japi.ClassFile.forName(ClassFile.java:163)
> > >      [exec]     at net.wuffies.japi.Japize.getClassWrapper(Japize.java:14
> 25)
> > >      [exec]     at net.wuffies.japi.Japize.japizeClass(Japize.java:748)
> > >      [exec]     at net.wuffies.japi.Japize.processClass(Japize.java:516)
> > >
> > > ...
> > >
> > > update-index:
> > >
> > > test-result:
> > >
> > > BUILD FAILED
> > > /home/hybld/continuum-working-directory/6/build.xml:204: There were test 
> errors.
> > >
> > > Total time: 74 minutes 52 seconds
> > >
> > > *************************************************************************
> ***
> >
> 
> 
> -- 
> Tony Wu
> China Software Development Lab, IBM
> 



Mime
View raw message