Alpine: jdk/jshell/ExternalEditorTest.java: Cannot run program .../scratch/0/editor.sh
- Dominant language
- HTML
- Stars
- 155
- Forks
- 346
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
**Summary**
ExternalEditorTest does not work on any any JDK version when running on Alpine.
**Full error message**
```
11:32:33 test EditorTestBase.testAccept(): failure
11:32:33 java.lang.AssertionError: Socket timeout exception.
11:32:33 Output: | Edit Error: process IO failure: Cannot run program "/home/jenkins/workspace/Grinder/aqa-tests/TKG/output_17527459436770/langtools_all_0/work/scratch/0/editor.sh": error=8, Exec format error
11:32:33
11:32:33 , error:
11:32:33 at org.testng.Assert.fail(Assert.java:99)
11:32:33 at ExternalEditorTest.lambda$assertEdit$0(ExternalEditorTest.java:211)
11:32:33 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
11:32:33 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
11:32:33 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095)
11:32:33 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619)
11:32:33 at java.base/java.lang.Thread.run(Thread.java:1447)
```
**Example**
https://ci.adoptium.net/job/Grinder/13626/console
**Grinder link**
[Link](https://ci.adoptium.net/job/Grinder/parambuild/?SDK_RESOURCE=upstream&TARGET=langtools_custom&TEST_FLAG=&UPSTREAM_TEST_JOB_NAME=&DOCKER_REQUIRED=false&ACTIVE_NODE_TIMEOUT=5&VENDOR_TEST_DIRS=&EXTRA_DOCKER_ARGS=&TKG_OWNER_BRANCH=adoptium%3Amaster&OPENJ9_SYSTEMTEST_OWNER_BRANCH=eclipse%3Amaster&PLATFORM=aarch64_alpine-linux&GENERATE_JOBS=true&KEEP_REPORTDIR=true&PERSONAL_BUILD=false&ADOPTOPENJDK_REPO=https%3A%2F%2Fgithub.com%2Fadoptium%2Faqa-tests.git&RERUN_ITERATIONS=0&LABEL=&EXTRA_OPTIONS=&CUSTOMIZED_SDK_URL=&BUILD_IDENTIFIER=&ADOPTOPENJDK_BRANCH=v1.0.8-release&LIGHT_WEIGHT_CHECKOUT=false&NON_AQA_TEST_REPOS=&USE_JRE=false&ARTIFACTORY_SERVER=&KEEP_WORKSPACE=false&USER_CREDENTIALS_ID=&JDK_VERSION=24&ITERATIONS=1&VENDOR_TEST_REPOS=&JDK_REPO=https%3A%2F%2Fgithub.com%2Fadoptium%2Fjdk24u&OPENJ9_BRANCH=master&OPENJ9_SHA=&JCK_GIT_REPO=&VENDOR_TEST_BRANCHES=&OPENJ9_REPO=https%3A%2F%2Fgithub.com%2Feclipse-openj9%2Fopenj9.git&UPSTREAM_JOB_NAME=build-scripts%2Fjobs%2Frelease%2Fjobs%2Fjdk24u%2Fjdk24u-release-alpine-linux-aarch64-temurin&CLOUD_PROVIDER=&PLATFORM_AND_MACHINE=&CUSTOM_TARGET=jdk%2Fjshell%2FExternalEditorTest.java&VENDOR_TEST_SHAS=&JDK_BRANCH=jdk-24.0.2%2B12_adopt&TEST_IMAGES_REQUIRED=true&LABEL_ADDITION=&ARTIFACTORY_REPO=&ARTIFACTORY_ROOT_DIR=&UPSTREAM_TEST_JOB_NUMBER=&DOCKERIMAGE_TAG=&JDK_IMPL=hotspot&TEST_TIME=120&SSH_AGENT_CREDENTIAL=&AUTO_DETECT=true&SLACK_CHANNEL=aqavit-bot&DYNAMIC_COMPILE=false&ADOPTOPENJDK_SYSTEMTEST_OWNER_BRANCH=adoptium%3Amaster&APPLICATION_OPTIONS=&CUSTOMIZED_SDK_URL_CREDENTIAL_ID=eclipse_temurin_bot_email_and_token&ARCHIVE_TEST_RESULTS=false&OPENJDK_SHA=&NUM_MACHINES=&RERUN_FAILURE=false&BUILD_LIST=openjdk&USE_TESTENV_PROPERTIES=true&UPSTREAM_JOB_NUMBER=3&STF_OWNER_BRANCH=adoptium%3Amaster&TIME_LIMIT=25&JVM_OPTIONS=&PARALLEL=None)
**Further info**
Data can be found in all of the aqa-test triage issues for the last few releases, like [this one](https://github.com/adoptium/aqa-tests/issues/6420).
Contributor guide
Research direction
Start with jdk/jshell/ExternalEditorTest.java, especially ExternalEditorTest.testAccept(), and reproduce the failure using the linked Grinder configuration on Alpine. Trace how editor.sh is created and launched, then confirm that ExternalEditorTest passes on Alpine without the reported Exec format error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, linux, shell
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100