Hrm, passing -DJAVA6/7_HOME=XXX still runs java6 when it should run java7 (and fails) ....
Mike McCandless http://blog.mikemccandless.com On Mon, Nov 5, 2012 at 1:51 PM, Michael McCandless <[email protected]> wrote: > I was able to reproduce this! > > All I did was login as myself to lucene.zones.a.o, checked out lucene > trunk, set my env vars: > > JAVA6_HOME=/home/hudson/tools/java/openjdk6 > JAVA7_HOME=/home/hudson/tools/java/openjdk7 > > And ran "ant nightly-smoke". > > While it was on the "generate javadocs w/ Java 7" part, I ran ps, and > indeed it was using openjdk6 not 7! > > Yet, oddly, the script does confirm that java versions "match" (it > runs java -version and checks for 1.6/1.7 in the output) ... > > My shell is /usr/local/bin/bash. > > Baffled ... > > Maybe something is wrong w/ the ant logic that pulls from env vars? > I'll try running with -DJAVA6_HOME/-DJAVA7_HOME ... > > Mike McCandless > > http://blog.mikemccandless.com > > > On Mon, Nov 5, 2012 at 11:55 AM, Robert Muir <[email protected]> wrote: >> This is the kind of failures you get if there is java6-generated html. >> So i feel like there is leftover java6-generated docs in the output >> directory somehow! >> >> On Sun, Nov 4, 2012 at 11:11 PM, Apache Jenkins Server >> <[email protected]> wrote: >>> Build: https://builds.apache.org/job/Lucene-Solr-SmokeRelease-trunk/29/ >>> >>> No tests ran. >>> >>> Build Log: >>> [...truncated 30392 lines...] >>> prepare-release-no-sign: >>> [mkdir] Created dir: >>> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeRelease >>> [copy] Copying 396 files to >>> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeRelease/lucene >>> [copy] Copying 4 files to >>> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeRelease/lucene/changes >>> [get] Getting: http://people.apache.org/keys/group/lucene.asc >>> [get] To: >>> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeRelease/lucene/KEYS >>> [copy] Copying 189 files to >>> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeRelease/solr >>> [copy] Copying 1 file to >>> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeRelease/solr >>> [copy] Copying 4 files to >>> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeRelease/solr/changes >>> [exec] NOTE: output encoding is US-ASCII >>> [exec] >>> [exec] Load release URL >>> "file:/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeRelease/"... >>> [exec] >>> [exec] Test Lucene... >>> [exec] test basics... >>> [exec] get KEYS >>> [exec] 0.1 MB >>> [exec] check changes HTML... >>> [exec] download lucene-5.0.0-src.tgz... >>> [exec] 26.2 MB >>> [exec] verify md5/sha1 digests >>> [exec] download lucene-5.0.0.tgz... >>> [exec] 47.2 MB >>> [exec] verify md5/sha1 digests >>> [exec] download lucene-5.0.0.zip... >>> [exec] 56.6 MB >>> [exec] verify md5/sha1 digests >>> [exec] unpack lucene-5.0.0.tgz... >>> [exec] verify JAR/WAR metadata... >>> [exec] test demo with 1.6... >>> [exec] got 5285 hits for query "lucene" >>> [exec] test demo with 1.7... >>> [exec] got 5285 hits for query "lucene" >>> [exec] check Lucene's javadoc JAR >>> [exec] unpack lucene-5.0.0.zip... >>> [exec] verify JAR/WAR metadata... >>> [exec] test demo with 1.6... >>> [exec] got 5285 hits for query "lucene" >>> [exec] test demo with 1.7... >>> [exec] got 5285 hits for query "lucene" >>> [exec] check Lucene's javadoc JAR >>> [exec] unpack lucene-5.0.0-src.tgz... >>> [exec] make sure no JARs/WARs in src dist... >>> [exec] run "ant validate" >>> [exec] run tests w/ Java 6... >>> [exec] test demo with 1.6... >>> [exec] got 202 hits for query "lucene" >>> [exec] generate javadocs w/ Java 6... >>> [exec] run tests w/ Java 7... >>> [exec] test demo with 1.7... >>> [exec] got 202 hits for query "lucene" >>> [exec] generate javadocs w/ Java 7... >>> [exec] >>> [exec] Crawl/parse... >>> [exec] Traceback (most recent call last): >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/smokeTestRelease.py", >>> line 1342, in <module> >>> [exec] main() >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/smokeTestRelease.py", >>> line 1288, in main >>> [exec] smokeTest(baseURL, version, tmpDir, isSigned) >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/smokeTestRelease.py", >>> line 1324, in smokeTest >>> [exec] unpackAndVerify('lucene', tmpDir, 'lucene-%s-src.tgz' % >>> version, version) >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/smokeTestRelease.py", >>> line 563, in unpackAndVerify >>> [exec] verifyUnpacked(project, artifact, unpackPath, version, >>> tmpDir) >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/smokeTestRelease.py", >>> line 673, in verifyUnpacked >>> [exec] checkJavadocpathFull('%s/build/docs' % unpackPath) >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/smokeTestRelease.py", >>> line 854, in checkJavadocpathFull >>> [exec] if checkJavadocLinks.checkAll(path): >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/checkJavadocLinks.py", >>> line 160, in checkAll >>> [exec] allFiles[fullPath] = parse(fullPath, open('%s/%s' % (root, >>> f), encoding='UTF-8').read()) >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/checkJavadocLinks.py", >>> line 110, in parse >>> [exec] parser.feed(html) >>> [exec] File "/usr/local/lib/python3.2/html/parser.py", line 142, in >>> feed >>> [exec] self.goahead(0) >>> [exec] File "/usr/local/lib/python3.2/html/parser.py", line 188, in >>> goahead >>> [exec] k = self.parse_endtag(i) >>> [exec] File "/usr/local/lib/python3.2/html/parser.py", line 454, in >>> parse_endtag >>> [exec] self.handle_endtag(elem.lower()) >>> [exec] File >>> "/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/dev-tools/scripts/checkJavadocLinks.py", >>> line 92, in handle_endtag >>> [exec] raise RuntimeError('%s %s:%s: saw </%s> but expected </%s>' >>> % (self.baseURL, self.getpos()[0], self.getpos()[1], tag, self.stack[-1])) >>> [exec] RuntimeError: >>> file:///usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/lucene/build/fakeReleaseTmp/unpack/lucene-5.0.0/build/docs/analyzers-morfologik/constant-values.html >>> 111:0: saw </font> but expected </table> >>> >>> BUILD FAILED >>> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-SmokeRelease-trunk/build.xml:279: >>> exec returned: 1 >>> >>> Total time: 47 minutes 38 seconds >>> Build step 'Invoke Ant' marked build as failure >>> Email was triggered for: Failure >>> Sending email for trigger: Failure >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
