eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.26k stars 717 forks source link

jdk_nio_1_FAILED java/nio/file/Files/probeContentType/Basic.java got content type: text/plain; expected: [text/javascript, application/javascript] #14958

Open JasonFengJ9 opened 2 years ago

JasonFengJ9 commented 2 years ago

Failure link

From an internal build job/Test_openjdk17_j9_extended.openjdk_x86-64_windows/55/(win16x64rt3-9):

java version "17.0.3" 2022-04-19
IBM Semeru Runtime Certified Edition 17.0.3.0-rc1 (build 17.0.3+7)
Eclipse OpenJ9 VM 17.0.3.0-rc1 (build openj9-0.32.0-rc1, JRE 17 Windows Server 2016 amd64-64-Bit Compressed References 20220422_130 (JIT enabled, AOT enabled)
OpenJ9   - 9a84ec34e
OMR      - ab24b6666
JCL      - 0e919023eb9 based on jdk-17.0.3+7)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2022-04-22T06:44:14.662Z] variation: Mode650
[2022-04-22T06:44:15.057Z] JVM_OPTIONS:  -XX:-UseCompressedOops 

[2022-04-22T06:55:09.607Z] TEST: java/nio/file/Files/probeContentType/Basic.java

[2022-04-22T06:55:09.608Z] STDERR:
[2022-04-22T06:55:09.608Z] For extension js we got content type: text/plain; expected: [text/javascript, application/javascript]
[2022-04-22T06:55:09.608Z] java.lang.RuntimeException: Test failed!
[2022-04-22T06:55:09.608Z]  at Basic.main(Basic.java:192)
[2022-04-22T06:55:09.608Z]  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-04-22T06:55:09.608Z]  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2022-04-22T06:55:09.609Z]  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-04-22T06:55:09.609Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[2022-04-22T06:55:09.609Z]  at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2022-04-22T06:55:09.609Z]  at java.base/java.lang.Thread.run(Thread.java:889)
[2022-04-22T06:55:09.609Z] 
[2022-04-22T06:55:09.609Z] JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed!

[2022-04-22T07:13:55.102Z] jdk_nio_1_FAILED

50x grinder - job/Grinder/23044/

JasonFengJ9 commented 2 years ago

50x grinder - job/Grinder/23044/

all failed

pshipton commented 2 years ago

@JasonFengJ9 did this test used to pass?

JasonFengJ9 commented 2 years ago

did this test used to pass?

it is a regression between job/Test_openjdk17_j9_extended.openjdk_x86-64_windows/54 (April 21st) and job/Test_openjdk17_j9_extended.openjdk_x86-64_windows/55 (April 22nd). Note jdk_nio_1 only passed twice, another pass was job/Test_openjdk17_j9_extended.openjdk_x86-64_windows/53 (April 16th), before that, it usually failed w/ SocketException: Invalid argument: no further information.

Passed - job/Test_openjdk17_j9_extended.openjdk_x86-64_windows/54

07:30:27  java version "17.0.3" 2022-04-19
07:30:27  IBM Semeru Runtime Certified Edition 17.0.3.0-rc1 (build 17.0.3+7)
07:30:27  Eclipse OpenJ9 VM 17.0.3.0-rc1 (build openj9-0.32.0-rc1, JRE 17 Windows Server 2016 amd64-64-Bit Compressed References 20220421_128 (JIT enabled, AOT enabled)
07:30:27  OpenJ9   - 9a84ec34e
07:30:27  OMR      - ab24b6666
07:30:27  JCL      - 0e919023eb9 based on jdk-17.0.3+7)

JVM shas are same, this is a test issue.

50x grinder w/ passed build 128 - job/Grinder/23118 - also failed Probably related to java/nio/file/Files/probeContentType/Basic.java failed on "Content type" mismatches

pshipton commented 2 years ago

It's weird we could get a test difference between builds when none of the SHAs changed. @llxia any ideas?

Build 54 shas:

  Fetch URL: https://github.com/adoptium/aqa-tests.git
sha: 8c684378d73d20d1a2d746ebd68294d42eb633a7
================================================
  Fetch URL: https://github.com/adoptium/TKG.git
sha: 90e11f674f0e6be78e1497a06e36d1a69340e776
================================================
  Fetch URL: https://github.com/eclipse-openj9/openj9.git
sha: 9a84ec34ed321967cdbe67b29ddcd732b591d051
================================================
  Fetch URL: https://github.com/ibmruntimes/openj9-openjdk-jdk17.git
sha: dc07fd49b926c28c33b17053b11ad3121429239f

Build 55 shas:

  Fetch URL: https://github.com/adoptium/aqa-tests.git
sha: 8c684378d73d20d1a2d746ebd68294d42eb633a7
================================================
  Fetch URL: https://github.com/adoptium/TKG.git
sha: 90e11f674f0e6be78e1497a06e36d1a69340e776
================================================
  Fetch URL: https://github.com/eclipse-openj9/openj9.git
sha: 9a84ec34ed321967cdbe67b29ddcd732b591d051
================================================
  Fetch URL: https://github.com/ibmruntimes/openj9-openjdk-jdk17.git
sha: dc07fd49b926c28c33b17053b11ad3121429239f

Seems grinders don't have a SHA.txt, but Grinder/23118 shas:

09:45:19    Fetch URL: https://github.com/adoptium/aqa-tests.git
09:45:19  sha: 26bb43d5084286ee4822aa218c92a0879d6de44d
09:45:20  ================================================
09:45:20    Fetch URL: https://github.com/adoptium/TKG.git
09:45:20  sha: 90e11f674f0e6be78e1497a06e36d1a69340e776
09:46:21  ================================================
09:46:21    Fetch URL: https://github.com/eclipse-openj9/openj9.git
09:46:21  sha: 9a84ec34ed321967cdbe67b29ddcd732b591d051
09:57:46       [exec] ================================================
09:57:46       [exec]   Fetch URL: https://github.com/ibmruntimes/openj9-openjdk-jdk17.git
09:57:46       [exec] sha: dc07fd49b926c28c33b17053b11ad3121429239f
pshipton commented 2 years ago

It seems it's likely related to machine updates, or the machines used for testing, using the Windows registry to get the file type.

pshipton commented 2 years ago

build 54 - win16x64rt-1-6 build 55 - win16x64rt3-9 Grinder/23118: win16x64rt-1-5, win16x64rt-1-9, win16x64rt2-8, win16x64rt3-3, win16x64rt3-10

llxia commented 2 years ago

Test excluded: https://github.com/adoptium/aqa-tests/pull/3648

JasonFengJ9 commented 2 years ago

Occurred at JDK11, need to be excluded as well.

pshipton commented 2 years ago

It's excluded for 18. If we are excluding for 11 then 17 should also be excluded. @llxia will you take care of this, or should Jason or I or create a PR?

llxia commented 2 years ago

@renfeiw could you take care of this? Thanks

JasonFengJ9 commented 2 years ago

Hopefully https://github.com/ibmruntimes/openj9-openjdk-jdk11/commit/42ba3c756d8e415830f47515384fae889025f776 will fix it which is going to land in openj9 branch after next merging job run.