Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 3617 invoked from network); 25 Dec 2007 04:12:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Dec 2007 04:12:22 -0000 Received: (qmail 17717 invoked by uid 500); 25 Dec 2007 04:12:10 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 17683 invoked by uid 500); 25 Dec 2007 04:12:09 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 17674 invoked by uid 99); 25 Dec 2007 04:12:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Dec 2007 20:12:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nbeyer@gmail.com designates 64.233.178.247 as permitted sender) Received: from [64.233.178.247] (HELO hs-out-2122.google.com) (64.233.178.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Dec 2007 04:11:45 +0000 Received: by hs-out-2122.google.com with SMTP id 4so1358027hsl.4 for ; Mon, 24 Dec 2007 20:11:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=wvjG8iFS5+3XMKlWs2o1gPKyRjB5NdU61b9f+Rtr5B4=; b=MySh158lSMO6Lg2Q4t5eEhebHAos5+cUIG38Wh1sldYcOG7MsROezwgIsmu+McAPRi/mGL3cMq8hsgkmOv/sqY9BpVZlHQu7VsMVetsFUj51jgul92Ol3nhTUa9OsfV+7pJOpTv42LCJFgguGqnvlg1Twp1hARUYlTkk8+WXoXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Wn5BCDplenwJuM2hhuEecSepNSh+jYQ3CVBxTyfNYuIOL47+2W5kDvOpzaKMjAziGPXuue/WkcuBjfIritCTL8dl2UCKES7cGY/ibxoetpspeKWqWGy/tob7ihyWraFOKqoKgyetFAQQEEHCla6NZT+B4Q0hAwtlUdsx0kXBhYA= Received: by 10.150.186.12 with SMTP id j12mr1381523ybf.124.1198555906597; Mon, 24 Dec 2007 20:11:46 -0800 (PST) Received: by 10.150.215.12 with HTTP; Mon, 24 Dec 2007 20:11:46 -0800 (PST) Message-ID: <3b3f27c60712242011n45512f94q6860bfd9c197e312@mail.gmail.com> Date: Mon, 24 Dec 2007 22:11:46 -0600 From: "Nathan Beyer" To: dev@harmony.apache.org Subject: Re: [buildtest] does the buildtest 2.0 work with an 1.7 In-Reply-To: <94d710af0712232148t1f5fa5cfo8c9f610a8d953628@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3b3f27c60712201900y72a4ebbexd5437bfc5b325f2b@mail.gmail.com> <94d710af0712201946u1dcfe4dbp3cd097ab5e766406@mail.gmail.com> <3b3f27c60712201957n55ece1far2d9a1e13fce968c3@mail.gmail.com> <94d710af0712210126s74d8b1e4jf8b00b7ca4bf9633@mail.gmail.com> <94d710af0712210208j68398373yfb6f4463a2fdab24@mail.gmail.com> <6e47b64f0712210244r1b049f60p12abaae0dcbf4af2@mail.gmail.com> <94d710af0712232148t1f5fa5cfo8c9f610a8d953628@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org That fix seems to be helping, but I'm back to the same error I was seeing before with the maven_test. [java] [exec] [INFO] BUILD SUCCESSFUL [java] [exec] [INFO] ------------------------------------------------------------------------ [java] [exec] [INFO] Total time: 50 seconds [java] [exec] [INFO] Finished at: Mon Dec 24 21:42:49 CST 2007 [java] [exec] [INFO] Final Memory: 32M/152M [java] [exec] [INFO] ------------------------------------------------------------------------ [java] [echo] work.dir:/home/nathan/harmony/bt/build/checkouts/maven_test [java] [java] restore.maven.pom: [java] [copy] Copying 1 file to /home/nathan/harmony/bt/build/checkouts/maven_test/maven-2.0.7-src [java] [java] compose.report: [java] [delete] Deleting directory /home/nathan/harmony/bt/build/checkouts/maven_test/logs [java] [delete] Deleting: /home/nathan/harmony/bt/build/checkouts/maven_test/report.txt [java] [mkdir] Created dir: /home/nathan/harmony/bt/build/checkouts/maven_test/logs [java] [copy] Copying 49 files to /home/nathan/harmony/bt/build/checkouts/maven_test/logs [java] [copy] Copying 49 files to /home/nathan/harmony/bt/build/results/maven_test/results/reports [java] [concat] No existing resources and no nested text, doing nothing [java] [concat] No existing resources and no nested text, doing nothing [java] [copy] Copying 2 files to /home/nathan/harmony/bt/build/results/maven_test/results [java] [mkdir] Created dir: /home/nathan/harmony/bt/build/results/maven_test/20071224_0941 [java] [copy] Warning: Could not find file /home/nathan/harmony/bt/build/checkouts/maven_test/tmpfile.results.txt to copy. [java] [replaceregexp] The following file is missing: '/home/nathan/harmony/bt/build/checkouts/maven_test/tmpfile.results.failed.error.txt' [java] [copy] Warning: Could not find file /home/nathan/harmony/bt/build/checkouts/maven_test/tmpfile.results.failed.error.txt to copy. [java] [length] /home/nathan/harmony/bt/build/checkouts/maven_test/tmpfile.results.failed.txt does not exist [java] [copy] Warning: Could not find file /home/nathan/harmony/bt/build/checkouts/maven_test/tmpfile.results.failed.error.txt to copy. [java] [length] /home/nathan/harmony/bt/build/checkouts/maven_test/tmpfile.results.error.txt does not exist [java] [concat] /home/nathan/harmony/bt/build/checkouts/maven_test/tmpfile.results.failed.error.txt does not exist. [java] [copy] Copying 51 files to /home/nathan/harmony/bt/build/results/maven_test/20071224_0941 [java] [java] check.status: [java] [java] BUILD FAILED [java] /home/nathan/harmony/bt/tests/maven_test/build.xml:311: Maven run failed: there are test failures [java] On Dec 23, 2007 11:48 PM, Sean Qiu wrote: > Yes. The root of the problem is that the behavior of task > **is changed in ANT > 1.7.0. > > Loading parameters.xml [1] property file with ant, the value of " > parameter.required.noupdate" is different between version 1.6.5 and 1.7.0 of > ANT. In the case of 1.6.5, value of the property is *unset *but *"" *in > 1.7.0. > > So the expression in framework.xml [2] will always return false,It makes > that the "*do-svn-update-bt*" unreachable and the script cannot find the > tests directory before checking it out. > > I have reported a jira [3] and supplied the patch. > > 1. parameters.xml > > > > > > > 2. framework.xml > > > > substring="|${tmp.relative.path > }|"/> > > > > > > > 3.https://issues.apache.org/jira/browse/HARMONY-5337 > > 2007/12/21, Stepan Mishura : > > > On 12/21/07, Sean Qiu wrote: > > > It seems that > > > cannot check out the tests. > > > > Do you mean fail with ANT 1.7? I assume it works OK with 1.6.5. > > > > -Stepan. > > > > > The gut adaptor has the same problem and fails for the same error. > > > > > > I will dive into this issues to find out a solution later. > > > > > > 2007/12/21, Sean Qiu : > > > > > > > > "#>./buildtest.sh install" will call target update-framework[1] of > > > > build.xml. > > > > Update-framework only update the /scripts and /adaptors in > > > > BTI, > > > > while many tests as well as configurations are in /tests > directory. > > > > Missing /tests cause the build error. > > > > > > > > The reason we do not update /tests directly in install step is > if we > > > > just want to run a single test suite, > > > > it will be unnecessary to check out all of the tests, since it is > > > > time-comsuming. > > > > > > > > So the "setup" target of adaptor of each test suite is supposed to > check > > > > out individual tests themselves > > > > within . > > > > And it is missing in maven adaptor, so i guess it is my fault. > > > > > > > > Generally, i will using "svn co" rather than "svn co -N" to develop a > new > > > > adaptor. > > > > This will download the whole tests directly, so i overlook this > problem. > > > > I will supply a patch for maven test as well as all the other > adaptors i > > > > raised. > > > > > > > > Thanks very much to point it out. > > > > > > > > 1. update-framework of build.xml > > > > > > > > > > > unless="framework.parameters.repository.noupdate"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2007/12/21, Nathan Beyer < nbeyer@gmail.com>: > > > > > > > > > > The README doesn't say I need to checkout that folder and it's very > > > > > specific about the checkout command using the "-N" to NOT check out > > > > > any sub-folder. Is the documentation wrong? I'm specifically try to > > > > > get this thing to work out of the box because we need to get > buildtest > > > > > 2.0 out of permanent branch and back into the trunk. > > > > > > > > > > On my Windows machine, I switched to Ant 1.6.5 and ran the same > > > > > commands and a lot more is happening now; it checked out the > > > > > 'tests/maven_test' folder and began a build. > > > > > > > > > > -Nathan > > > > > > > > > > On Dec 20, 2007 9:46 PM, Sean Qiu wrote: > > > > > > I have tried this adaptor, it works fine here. > > > > > > > > > > > > And once i rename the /tests/maven_tests to other name, it > will > > > > > fail > > > > > > with the same error message as you. > > > > > > The reason should be that the adaptor cannot find this directory. > > > > > > So I guess you may have not checked out the directory of > > > > > > /tests/maven_test . > > > > > > > > > > > > Could you please check it out first and try again? > > > > > > > > > > > > 2007/12/21, Nathan Beyer : > > > > > > > > > > > > > > > > > > > > I'm having all sorts of issues with buildtest 2.0. Here's what > I'm > > > > > > > running, is there anything that's out of whack? > > > > > > > > > > > > > > Ubuntu 7.10 on x86_64 (AMD dual core) > > > > > > > Sun Java 1.6 > > > > > > > Ant 1.7 > > > > > > > SVN 1.4.4 > > > > > > > > > > > > > > Windows XP on x86 > > > > > > > Sun Java 1.6 > > > > > > > MSVC 2003 > > > > > > > Ant 1.7 > > > > > > > SVN 1.4.5 > > > > > > > > > > > > > > Here's what I'm doing, per the README [1]. > > > > > > > > > > > > > > * svn checkout -N > > > > > > > > > > > > > https://svn.apache.org/repos/asf/harmony/enhanced/buildtest/branches/2.0/ > > > > > > > * Tweak the buildtest.sh to setup the environment variables and > then > > > > > > > run these commands. > > > > > > > * ./buildtest.sh install > > > > > > > * ./buildtest.sh setup -Dtest.suites="classlib,drlvm,maven_test" > > > > > > > * ./buildtest.sh run > > > > > > > > > > > > > > Here's the failure I get -- > > > > > > > > > > > > > > > > > > > > > -install: > > > > > > > [echo] > > > > > > > [echo] -------- > > > > > > > [echo] WARNING: Target setup of adaptor for Test Suite > > > > > 'maven_test' > > > > > > > FAILED > > > > > > > [echo] -------- with the following exception: > > > > > > > [echo] The following error occurred while executing this > line: > > > > > > > [echo] /home/nathan/harmony/bti/scripts/framework.xml:1079: > > > > > > > /home/nathan/harmony/bti/tests/maven_test is not a valid > directory > > > > > > > [delete] Deleting: > > > > > /home/nathan/harmony/bti/build/temp/null1764598389 > > > > > > > > > > > > > > check-status: > > > > > > > [echo] > > > > > > > [echo] ------ > > > > > > > [echo] ERROR: Setup of Test Suite 'maven_test' FAILED. > > > > > > > [echo] ------ > > > > > > > > > > > > > > BUILD FAILED > > > > > > > > > > > > > > The same failure happened on windows; the paths were just a bit > > > > > different. > > > > > > > > > > > > > > I thought this was supposed to work out of the box. > > > > > > > > > > > > > > -Nathan > > > > > > > > > > > > > > [1] > > > > > > > > > > > > > https://svn.apache.org/repos/asf/harmony/enhanced/buildtest/branches/2.0/README.txt > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Sean Qiu > > > > > > http://xiaoxia.turendui.com > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Sean Qiu > > > > http://xiaoxia.turendui.com > > > > > > > > > > > > > > > > -- > > > Sean Qiu > > > http://xiaoxia.turendui.com > > > > > > -- > > Sean Qiu > http://xiaoxia.turendui.com >