Re: 答复: 答复: inquiry how to submit a change

David Holmes david.holmes at oracle.com
Tue Dec 19 11:42:45 UTC 2017


cc'ing jtreg-use. Sorry I've no idea how to put these tools together 
externally.

David

On 19/12/2017 9:08 PM, Vic Wang(BJ-RD) wrote:
> Hi David, Ao Qi & Weijun:
> I've downloaded the asmtools.jar and put it in jtreg/lib dir. And set the following environment variables.
> export JT_HOME=/home/vic/Desktop/JVM/sourcecode/tmp/hg/jtreg/jtreg
> export JTHARNESS_HOME=/home/vic/Desktop/JVM/sourcecode/tmp/hg/jtreg/jtharness
> export ASMTOOLSHOME=/home/vic/Desktop/JVM/sourcecode/tmp/hg/jtreg/asmtools-6.0/lib
> 
> however, when running the test command, it still occurred "can't find jasm" error.
> The test command is : make run-test TEST="jtreg:test/jdk:tier1".
> 
> Additional, as I want to submit a change for jdk repository, should I pass the basic run test firstly ?
> The following is the detailed results for the error. Thanks very much.
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> #-----testresult-----
> description=file\:/home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/test/jdk/jdk/internal/reflect/constantPool/ConstantPoolTest.java
> elapsed=1333 0\:00\:01.333
> end=Tue Dec 19 17\:57\:20 CST 2017
> environment=regtest
> execStatus=Error. can't find jasm
> harnessLoaderMode=Classpath Loader
> harnessVariety=Full Bundle
> hostname=vic-os
> javatestOS=Linux 3.16.4 (amd64)
> javatestVersion=5.0
> jtregVersion=jtreg 4.2 dev b09
> modules=java.base/jdk.internal.misc java.base/jdk.internal.reflect
> script=com.sun.javatest.regtest.exec.RegressionScript
> sections=script_messages compile
> start=Tue Dec 19 17\:57\:18 CST 2017
> test=jdk/internal/reflect/constantPool/ConstantPoolTest.java
> testJDK=/home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/linux-x86_64-normal-server-release/images/jdk
> totalTime=1370
> user.name=root
> work=/home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/linux-x86_64-normal-server-release/test-support/jtreg_test_jdk_tier1/jdk/internal/reflect/constantPool
> 
> #section:script_messages
> ----------messages:(7/577)----------
> JDK under test: /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/linux-x86_64-normal-server-release/images/jdk
> openjdk version "10-internal"
> OpenJDK Runtime Environment (build 10-internal+0-adhoc.root.jdk)
> OpenJDK 64-Bit Server VM (build 10-internal+0-adhoc.root.jdk, mixed mode)
> Library /lib/testlibrary; kind: packages
>     source directory: /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/test/jdk/lib/testlibrary
>     class directory: /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/linux-x86_64-normal-server-release/test-support/jtreg_test_jdk_tier1/classes/2/lib/testlibrary
> 
> #section:compile
> ----------messages:(3/232)----------
> command: compile /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/test/jdk/jdk/internal/reflect/constantPool/ConstantPoolTestDummy.jasm
> reason: User specified action: run compile ConstantPoolTestDummy.jasm
> elapsed time (seconds): 1.097
> ----------configuration:(0/0)----------
> ----------rerun:(4/607)*----------
> cd /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/linux-x86_64-normal-server-release/test-support/jtreg_test_jdk_tier1/scratch/0 && \\
>      /home/vic/Desktop/JVM/jdk-9.0.1/bin/java \\
>      -classpath /home/vic/Desktop/JVM/sourcecode/tmp/hg/jtreg/jtreg/lib/asmtools.jar \\
>      org.openjdk.asmtools.jasm.Main -d /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/linux-x86_64-normal-server-release/test-support/jtreg_test_jdk_tier1/classes/2/jdk/internal/reflect/constantPool/ConstantPoolTest.d /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/test/jdk/jdk/internal/reflect/constantPool/ConstantPoolTestDummy.jasm
> result: Error. can't find jasm
> 
> 
> test result: Error. can't find jasm
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> 
> Best Regards!
> VicWang | R&D
> Telephone:+86-01082695388-892477
> 
> 
> -----邮件原件-----
> 发件人: David Holmes [mailto:david.holmes at oracle.com]
> 发送时间: 2017年12月15日 15:52
> 收件人: Ao Qi <aoqi at loongson.cn>; Vic Wang(BJ-RD) <VicWang at zhaoxin.com>
> 抄送: jdk8u-dev at openjdk.java.net
> 主题: Re: 答复: inquiry how to submit a change
> 
> See:
> 
> http://hg.openjdk.java.net/code-tools/
> 
> for all projects.
> 
> David
> 
> On 15/12/2017 2:46 PM, Ao Qi wrote:
>> Hi Vic,
>>
>> Hoping this helps:
>> https://adopt-openjdk.ci.cloudbees.com/view/OpenJDK/job/asmtools/
>>
>> Ao Qi
>> 12.15
>>
>> 2017-12-15 12:34 GMT+08:00 Vic Wang(BJ-RD) <VicWang at zhaoxin.com>:
>>
>>> Hi  Weijun :
>>> There is not a asmtools.jar in jtreg/lib. How can I get it?
>>> The web < http://openjdk.java.net/code-tools/asmtools> can't access
>>> (it return `404 Not Found`).
>>> Thanks very much.
>>>
>>>
>>> Best Regards!
>>> VicWang | R&D
>>> Telephone:+86-01082695388-892477
>>>
>>> -----邮件原件-----
>>> 发件人: Weijun Wang [mailto:weijun.wang at oracle.com]
>>> 发送时间: 2017年12月15日 11:42
>>> 收件人: Vic Wang(BJ-RD) <VicWang at zhaoxin.com>
>>> 抄送: Volker Simonis <volker.simonis at gmail.com>;
>>> jdk8u-dev at openjdk.java.net; Cobe Chen(BJ-RD) <CobeChen at zhaoxin.com>
>>> 主题: Re: inquiry how to submit a change
>>>
>>> Hi Vic
>>>
>>> I do not run test this way (I either run a single one with jtreg
>>> directly or use our internal CI to run a tier) so I am not sure where the problem is.
>>>
>>> As for jasm, There is a asmtools.jar in jtreg/lib. Do you have it?
>>>
>>> Thanks
>>> Max
>>>
>>>> On Dec 15, 2017, at 11:01 AM, Vic Wang(BJ-RD) <VicWang at zhaoxin.com>
>>> wrote:
>>>>
>>>> Dear Volker/Weijun:
>>>> Thanks for your help.
>>>> I've already clone the jdk ,hs ,client repository.
>>>>
>>>> Now I've built jdk success by executing the following command:
>>>> First, I configure JDK9 environment path, Then, bash configure make
>>>> images
>>>>
>>>> when running basic tests by ` make run-test-tier1`, it occurs the
>>> following error:
>>>> 1>.
>>>> ----------configuration:(0/0)----------
>>>> ----------rerun:(4/539)*----------
>>>> cd /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/
>>> linux-x86_64-normal-server-release/test-support/jtreg_test_jdk_tier1/
>>> scratch/2
>>> && \\
>>>>      /home/vic/Desktop/JVM/jdk-9.0.1/bin/java \\
>>>>      -classpath  \\
>>>>      org.openjdk.asmtools.jasm.Main -d
>>>> /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/linux-x86_64-norma
>>>> l-
>>>> server-release/test-support/jtreg_test_jdk_tier1/classes/1/jdk/inter
>>>> na l/reflect/constantPool/ConstantPoolTest.d
>>>> /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/test/jdk/jdk/internal/re
>>>> fl ect/constantPool/ConstantPoolTestDummy.jasm
>>>> result: Error. can't find jasm
>>>> test result: Error. can't find jasm
>>>>
>>>> 2>. can't find jcoder
>>>> tools/javac/T6435291/T6435291.java: javac shouldn't throw NPE while
>>>> compiling invalid RuntimeInvisibleParameterAnnotations
>>>> 3>. Execution failed: `main' threw exception:
>>>> 3>java.lang.reflect.InvocationTargetException
>>>> jdk/javadoc/doclet/testIOException/TestIOException.java: test
>>>> IOException handling
>>>>
>>>> 4>.==============================
>>>> Test summary
>>>> ==============================
>>>>     TEST                                              TOTAL  PASS  FAIL
>>> ERROR
>>>>>> jtreg:test/jdk:tier1                               1657  1656     0
>>>    1 <<
>>>>>> jtreg:test/langtools:tier1                         3826  3814     1
>>> 11 <<
>>>>     jtreg:test/nashorn:tier1                              0     0     0
>>>    0
>>>>     jtreg:test/jaxp:tier1                                 0     0     0
>>>    0
>>>> ==============================
>>>> TEST FAILURE
>>>>
>>>> ps: I've configured the jtreg[1] by seting JT_HOME and jtharness[2]
>>>> by
>>> seting JTHARNESS_HOME.
>>>> I've found the asm lib <http://forge.ow2.org/projects/asm/>,but how
>>>> to
>>> configure it ?
>>>>
>>>> Is there any configuration or dependencies to be set?
>>>>
>>>> [1]
>>>> https://adopt-openjdk.ci.cloudbees.com/job/jtreg/lastSuccessfulBuild
>>>> /a
>>>> rtifact/ [2]
>>>> https://adopt-openjdk.ci.cloudbees.com/job/jtharness/lastSuccessfulB
>>>> ui
>>>> ld/artifact/
>>>>
>>>> Best Regards!
>>>> VicWang | R&D
>>>> Telephone:+86-01082695388-892477
>>>>
>>>>
>>>> -----邮件原件-----
>>>> 发件人: Volker Simonis [mailto:volker.simonis at gmail.com]
>>>> 发送时间: 2017年12月6日 17:30
>>>> 收件人: Weijun Wang
>>>> 抄送: Vic Wang(BJ-RD); jdk8u-dev at openjdk.java.net; Cobe Chen(BJ-RD)
>>>> 主题: Re: inquiry how to submit a change
>>>>
>>>> On Wed, Dec 6, 2017 at 1:10 AM, Weijun Wang <weijun.wang at oracle.com>
>>> wrote:
>>>>>
>>>>>
>>>>>> On Dec 6, 2017, at 4:14 PM, Vic Wang(BJ-RD) <VicWang at zhaoxin.com>
>>> wrote:
>>>>>>
>>>>>>                 requesting all changes
>>>>>>                 adding changesets
>>>>>>                 transaction abort!
>>>>>>                 rollback completed
>>>>>>                 abort: stream ended unexpectedly (got 6 bytes,
>>>>>> expected 80)
>>>>>
>>>>> Looks like a network problem, I've seen this before. Please try again.
>>>>>
>>>>
>>>> Yes, that's usually because of slow network.
>>>>
>>>> You can try to add:
>>>>
>>>> [ui]
>>>> ssh = ssh -C
>>>>
>>>> to your .hgrc. Somtimes it helps :)
>>>>
>>>>>>
>>>>>>         I find it need a username which is configured in ~/.bashrc.
>>>>>> Is
>>> the username is necessary? How to assign a username?
>>>>>
>>>>> I don't think a username is needed to pull the repository.
>>>>>
>>>>> --Max
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> 保密声明:
>>>> 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
>>>> CONFIDENTIAL NOTE:
>>>> This email contains confidential or legally privileged information
>>>> and
>>> is for the sole use of its intended recipient. Any unauthorized
>>> review, use, copying or forwarding of this email or the content of
>>> this email is strictly prohibited.
>>>
>>>
>>>
>>> 保密声明:
>>> 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
>>> CONFIDENTIAL NOTE:
>>> This email contains confidential or legally privileged information
>>> and is for the sole use of its intended recipient. Any unauthorized
>>> review, use, copying or forwarding of this email or the content of
>>> this email is strictly prohibited.
>>>
> 
> 
> 保密声明:
> 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
> CONFIDENTIAL NOTE:
> This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
> 


More information about the jtreg-use mailing list