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

Vic Wang(BJ-RD) VicWang at zhaoxin.com
Wed Dec 20 06:37:12 UTC 2017


Dear Jonathan:

I've downloaded jtreg-4.2-b10.tar.gz, it still occurred "can't find jasm" error.

Can you help me try this? Just run TEST=" test/jdk/jdk/internal/reflect/constantPool/ConstantPoolTest.java ".

First, you have already built jdk images. Then,
$cd the jdk repository dir.
$bash configure --with-jtreg=/home/vic/Desktop/JVM/sourcecode/tmp/hg/jtreg/jtreg --with-boot-jdk=/home/vic/Desktop/JVM/jdk-9.0.1  #please change your jtreg home dir and boot-jdk dir.
$ make run-test TEST="test/jdk/jdk/internal/reflect/constantPool/ConstantPoolTest.java"

Then , it occurs " can't find jasm" error.
Thanks very much.

Best Regards!
VicWang | R&D
Telephone:+86-01082695388-892477


-----邮件原件-----
发件人: Jonathan Gibbons [mailto:jonathan.gibbons at oracle.com]
发送时间: 2017年12月20日 8:21
收件人: David Holmes <david.holmes at oracle.com>; Vic Wang(BJ-RD) <VicWang at zhaoxin.com>; Ao Qi <aoqi at loongson.cn>; Weijun Wang <weijun.wang at oracle.com>
抄送: jdk8u-dev at openjdk.java.net; jtreg-use at openjdk.java.net
主题: Re: 答复: 答复: inquiry how to submit a change

Vic, Ao Qi, et al,

The recommended place to get the latest builds of jtreg is from the Adopt OpenJDK group, here:

https://ci.adoptopenjdk.net/view/Dependencies/job/jtreg/

Of the two builds there, I recommend jtreg-4.2-b10.tar.gz.  This build contains all the necessary components, including asmtools.jar.

(The other build is a build of the development "tip", and is not recommended for general use.)

-- Jon


On 12/19/2017 03:42 AM, David Holmes wrote:
> 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/jtharnes
>> s
>> 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/jd
>> k/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_6
>> 4-normal-server-release/images/jdk
>>
>> totalTime=1370
>> user.name=root
>> work=/home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/build/linux-x86_64-n
>> ormal-server-release/test-support/jtreg_test_jdk_tier1/jdk/internal/r
>> eflect/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/testl
>> ibrary
>>
>> #section:compile
>> ----------messages:(3/232)----------
>> command: compile
>> /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/test/jdk/jdk/internal/ref
>> lect/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/inter
>> nal/reflect/constantPool/ConstantPoolTest.d
>> /home/vic/Desktop/JVM/sourcecode/tmp/hg/jdk/test/jdk/jdk/internal/ref
>> lect/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_tier
>>>> 1/
>>>> 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-nor
>>>>> ma
>>>>> l-
>>>>> server-release/test-support/jtreg_test_jdk_tier1/classes/1/jdk/int
>>>>> er 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/lastSuccessfulBui
>>>>> ld
>>>>> /a
>>>>> rtifact/ [2]
>>>>> https://adopt-openjdk.ci.cloudbees.com/job/jtharness/lastSuccessfu
>>>>> lB
>>>>> 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.
>>



保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
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 jdk8u-dev mailing list