Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Jenkins job failed with ERROR: Cannot delete workspace :Malformed input or input contains unmappable characters on some machines #2630

Closed
sophia-guo opened this issue Jun 22, 2022 · 29 comments

Comments

@sophia-guo
Copy link

We have seen this failure a few times. Jenkins job failed with ERROR: Cannot delete workspace :Malformed input or input contains unmappable characters at post stage.

https://ci.adoptopenjdk.net/job/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_1/45/console

[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
ERROR: Cannot delete workspace :Malformed input or input contains unmappable characters: /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_1/aqa-tests/TKG/output_16555602234151/jdk_tools_1/work/scratch/1/���@��@8
[Pipeline] }
[Pipeline] // timeout
[Pipeline] echo
Exception: hudson.AbortException: Cannot delete workspace: Malformed input or input contains unmappable characters: /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_1/aqa-tests/TKG/output_16555602234151/jdk_tools_1/work/scratch/1/���@��@8

The failed job above is on test-docker-ubuntu2204-x64-1.

Recorded another time is on aarch64 adoptium/aqa-tests#3594 (comment).

According to https://support.cloudbees.com/hc/en-us/articles/360004397911-How-to-address-issues-with-unmappable-characters- the build agent’s JVM is most likely the culprit.

Set the agent JVM options as suggested and restart the agent might help.

@sophia-guo
Copy link
Author

same failure on test-docker-ubuntu2004-armv7l-2

@sophia-guo
Copy link
Author

Feels most recent sanity.openjdk builds on aarch64 and arm32 are affected. This also happened to compliance builds. Is there a way to escalate this issue's priority?

@sxa sxa added this to the 2022-07 (July) milestone Jul 13, 2022
@sophia-guo
Copy link
Author

If the problem doesn't resolve it will happen at the start cleanup stage , which means job failed before tests are running. Hence tag this with critical as suggested @sxa

test-docker-ubuntu2004-armv7l-2

(https://ci.adoptopenjdk.net/job/Test_openjdk17_hs_sanity.openjdk_arm_linux/158/console)

@sxa
Copy link
Member

sxa commented Jul 14, 2022

That's interesting ... The default encoding on the first one I checked (the Ubuntu 22.04 machine) is ANSI_X3.4-1968
It can be reset either by setting LANG in the environment to a suitable UTF-8 value, or with the -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 properties mentioned in the article you linked to.

@sxa
Copy link
Member

sxa commented Jul 14, 2022

@sophia-guo Can you see if this is the result of a test that has been unexcluded in the last few months? I want to fix it regardless but it would just be good to know why it's occurred, since it's going to be a bit of work to get this changed on every possible machine.

@sxa
Copy link
Member

sxa commented Jul 14, 2022

Verified that the problem does not occur if I add in the encoding defines to the agent JVM, or if LANG=C.UTF-8 in the environment. Assuming the latter does not cause any side effects for other tests, that would likely be my preferred solution (It's easy to put in the dockerfiles) but I think in the short term I can look at modifying the jenkins configurations.

It looks like this is only affecting docker containers so the ultimate solution should be something that can be put into the static dockerfiles

@sxa
Copy link
Member

sxa commented Jul 14, 2022

All except [test-docker-alpine314-x64-2](https://ci.adoptopenjdk.net/computer/test%2Ddocker%2Dalpine314%2Dx 64%2D2), test-docker-alpine314-x64-1 test-docker-alpine311-x64-1 should now be ok (Those three currently have jobs running on them so I cannot restart the agent yet)

@sxa
Copy link
Member

sxa commented Jul 14, 2022

Last three done.

@sophia-guo
Copy link
Author

@sophia-guo
Copy link
Author

sophia-guo commented Jul 14, 2022

test-docker-fedora35-armv8l-1 is the one without issue with latest run. Might be helpful to see the configuration or docker files difference. https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_sanity.openjdk_aarch64_linux/129/

@sophia-guo
Copy link
Author

sophia-guo commented Jul 14, 2022

More information about one of the problematic tests java/lang/invoke/lambda/LambdaFileEncodingSerialization.java, which was added specifically to verifying deserializeLambda containing a non-ASCII mappable char is correctly handled as UTF-8 https://bugs.openjdk.org/browse/JDK-8248231 by @andrew-m-leonard and then problemlisted on linux-x64 due to https://bugs.openjdk.org/browse/JDK-8249079. ( Note, not the same issue as this one).

In Adoptium the test was disabled with 18+ on arm as same issue as https://bugs.openjdk.org/browse/JDK-8249079, that is the reason we saw this issue on arm jdk17 and aarch64 17+ only. Based on those information I will disable the tests with 17+ on all platforms.

@sxa
Copy link
Member

sxa commented Jul 15, 2022

Since it hasn't been lsited anywhere else in here the grinder recreate options for this are:

  • BUILD_LIST=openjdk
  • TARGET=jdk_custom
  • CUSTOM_TARGET=java/lang/invoke/lambda/LambdaFileEncodingSerialization.java

(Or use TARGET=jdk_lang_0 sine that's the group this test is in)

@sophia-guo
Copy link
Author

@sxa
Copy link
Member

sxa commented Jul 18, 2022

test-docker-ubuntu2004-armv7l-1 still have same issues. Last Friday July15 's run https://ci.adoptopenjdk.net/job/Test_openjdk17_hs_sanity.openjdk_arm_linux/160/console

Not sure what happened there - the configuration had been updated for that machine and the agent was showing as having been restarted on the 14th of July. I've just restarted it again and it's definitely got the new parameters so should be ok now. I'll go through them all and verify that they have been correctly started with the new options and restart any that haven't.

@sxa
Copy link
Member

sxa commented Jul 18, 2022

@sxa sxa removed the critical label Jul 19, 2022
@sophia-guo
Copy link
Author

test-docker-ubuntu2004-armv7l-1 still has the issue
https://ci.adoptopenjdk.net/job/Test_openjdk17_hs_sanity.openjdk_arm_linux/162/console

@sxa sxa removed their assignment Sep 1, 2022
@sophia-guo
Copy link
Author

@sophia-guo
Copy link
Author

sophia-guo commented Mar 13, 2023

java/lang/invoke/lambda/LambdaFileEncodingSerialization.java isn't excluded in jdk20 and casued this problem. Will exclude and test-docker-ubuntu2004-armv8l-3 need to reconfigure and restart as before @sxa ?

@smlambert
Copy link
Contributor

I had presumed that going forward, this PR adoptium/aqa-tests#4344 should avoid this problem ?

@sophia-guo
Copy link
Author

I had presumed that going forward, this PR adoptium/aqa-tests#4344 should avoid this problem ?

According to https://ci.adoptium.net/job/Test_openjdk20_hs_sanity.openjdk_aarch64_linux/76/ & https://ci.adoptium.net/job/Test_openjdk20_hs_sanity.openjdk_aarch64_linux/77/, the issue still stays.

@sophia-guo
Copy link
Author

sophia-guo commented Mar 14, 2023

@sophia-guo
Copy link
Author

sophia-guo commented Mar 15, 2023

https://ci.adoptium.net/job/Test_openjdk20_hs_sanity.openjdk_aarch64_linux/78/console using this branch https://github.com/adoptium/aqa-tests/compare/master...sophia-guo:openjdk-tests:rm?expand=1 to rerun on the machine test-docker-ubuntu2004-armv8l-3 and didn't hit the issue ERROR: can not delete workspace , did the cleanup has been done on this machine?

@andrew-m-leonard
Copy link
Contributor

andrew-m-leonard commented Mar 16, 2023

@sophia-guo I wonder if the wsCleanup attempt needs this?:

notFailBuild: true,

@sophia-guo
Copy link
Author

@andrew-m-leonard that definitely helps when cleanWs() at the end of the test build. But for this specific issue the error happened at the beginning of the test build, which we need the clean workspace to do the test build.

@sxa
Copy link
Member

sxa commented Apr 11, 2023

Closing as a workaround has been implemented

@sxa sxa closed this as completed Apr 11, 2023
@sophia-guo sophia-guo self-assigned this Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants