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

Grinder contains output - unexpected argument '2048' #4334

Open
pshipton opened this issue Feb 13, 2023 · 5 comments
Open

Grinder contains output - unexpected argument '2048' #4334

pshipton opened this issue Feb 13, 2023 · 5 comments

Comments

@pshipton
Copy link
Contributor

pshipton commented Feb 13, 2023

Describe the bug
Running an internal grinder I noticed the following weird output, which didn't cause any failure.

13:04:35  expr: non-integer argument
13:04:35  expr: syntax error: unexpected argument '2048'
13:04:35  expr: syntax error: missing argument after '>'

With more context

13:04:29  Running jdk_custom_0 ...
13:04:29  There are 1 test targets in jdk_custom_0
13:04:29  "C:/Users/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image\\bin\\java" -version
13:04:31  openjdk version "11.0.18" 2023-01-17
13:04:31  IBM Semeru Runtime Open Edition 11.0.18.0 (build 11.0.18+10)
13:04:31  Eclipse OpenJ9 VM 11.0.18.0 (build openj9-0.36.0, JRE 11 Windows Server 2019 amd64-64-Bit Compressed References 20230207_562 (JIT enabled, AOT enabled)
13:04:31  OpenJ9   - e68fb241f
13:04:31  OMR      - f491bbf6f
13:04:31  JCL      - b732de1eee based on jdk-11.0.18+10)
13:04:32  make[2]: Entering directory '/cygdrive/c/Users/jenkins/workspace/Grinder/aqa-tests'
13:04:32  make[3]: Entering directory '/cygdrive/c/Users/jenkins/workspace/Grinder/aqa-tests/openjdk'
13:04:35  expr: non-integer argument
13:04:35  expr: syntax error: unexpected argument '2048'
13:04:35  expr: syntax error: missing argument after '>'
13:04:36  
13:04:37  ===============================================
13:04:37  Running test jdk_custom_0 ...
13:04:37  ===============================================

To Reproduce
I'm running on Windows building openjdk running jdk_custom_0 with java/security/SecureRandom/ApiTest.java on a custom build of jdk11 (I don't expect the build matters). TKG_ITERATIONS is 3 and EXIT_FAILURE true. A machine label is set.

https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/parambuild/?TARGET=jdk_custom_0&SDK_RESOURCE=customized&TEST_FLAG=&UPSTREAM_TEST_JOB_NAME=&DOCKER_REQUIRED=false&ACTIVE_NODE_TIMEOUT=15&EXTRA_DOCKER_ARGS=-v+%24%7BTEST_JDK_HOME%7D%3A%2Fopt%2Fjava%2Fopenjdk&VENDOR_TEST_DIRS=&TKG_OWNER_BRANCH=adoptium%3Amaster&OPENJ9_SYSTEMTEST_OWNER_BRANCH=eclipse%3Amaster&PLATFORM=x86-64_windows&GENERATE_JOBS=false&KEEP_REPORTDIR=false&PERSONAL_BUILD=true&DOCKER_REGISTRY_DIR=&ADOPTOPENJDK_REPO=https%3A%2F%2Fgithub.com%2Fadoptium%2Faqa-tests.git&RERUN_ITERATIONS=0&DOCKER_REGISTRY_URL_CREDENTIAL_ID=&LABEL=win19x86-rt2-1.fyre.ibm.com&EXTRA_OPTIONS=&CUSTOMIZED_SDK_URL=https%3A%2F%2Fna.artifactory.swg-devops.com%2Fartifactory%2Fsys-rt-generic-local%2Fhyc-runtimes-jenkins.swg-devops.com%2Fbuild-scripts%2Fjobs%2Fjdk11u%2Fjdk11u-windows-x64-openj9%2F562%2Fibm-semeru-open-jdk_x64_windows_11.0.18_10_openj9-0.36.1.zip&ADOPTOPENJDK_BRANCH=master&LIGHT_WEIGHT_CHECKOUT=false&ARTIFACTORY_SERVER=na.artifactory.swg-devops&KEEP_WORKSPACE=false&CURL_OPTS=&JDK_VERSION=11&USER_CREDENTIALS_ID=&DOCKER_REGISTRY_URL=&ITERATIONS=1&EXIT_FAILURE=true&EXIT_SUCCESS=false&VENDOR_TEST_REPOS=&JCK_GIT_BRANCH=main&JDK_REPO=&OPENJ9_BRANCH=master&OPENJ9_SHA=&JCK_GIT_REPO=git%40github.ibm.com%3Aruntimes%2FJCKnext-unzipped.git&RELEASE_TAG=&VENDOR_TEST_BRANCHES=&OPENJ9_REPO=https%3A%2F%2Fgithub.com%2Feclipse-openj9%2Fopenj9.git&UPSTREAM_JOB_NAME=&CLOUD_PROVIDER=&CUSTOM_TARGET=java%2Fsecurity%2FSecureRandom%2FApiTest.java&DEBUG_IMAGES_REQUIRED=false&CODE_COVERAGE=false&VENDOR_TEST_SHAS=&JDK_BRANCH=&TEST_IMAGES_REQUIRED=true&LABEL_ADDITION=ci.project.openj9&UPSTREAM_TEST_JOB_NUMBER=&DOCKERIMAGE_TAG=nightly&JDK_IMPL=openj9&TEST_TIME=&SSH_AGENT_CREDENTIAL=83181e25-eea4-4f55-8b3e-e79615733226&AUTO_DETECT=true&SLACK_CHANNEL=%23rt-jenkins&DYNAMIC_COMPILE=true&RELATED_NODES=&ADOPTOPENJDK_SYSTEMTEST_OWNER_BRANCH=adoptium%3Amaster&TKG_ITERATIONS=3&CUSTOMIZED_SDK_URL_CREDENTIAL_ID=4e18ffe7-b1b1-4272-9979-99769b68bcc2&ARCHIVE_TEST_RESULTS=false&NUM_MACHINES=1&TRSS_URL=http%3A%2F%2Ftrss1.fyre.ibm.com&BUILD_LIST=openjdk&USE_TESTENV_PROPERTIES=false&UPSTREAM_JOB_NUMBER=&STF_OWNER_BRANCH=adoptium%3Amaster&BUILDS_TO_KEEP=100&TIME_LIMIT=10&JVM_OPTIONS=&PARALLEL=NodesByIterations

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@llxia
Copy link
Contributor

llxia commented Feb 13, 2023

Test with ITERATIONS=3: Grinder

Update: I see the same issue with ITERATIONS. This is not specific to TKG_ITERATIONS

02:01:24.460  "C:/Users/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image\\bin\\java" -version
02:01:25.954  openjdk version "11.0.18" 2023-01-17
02:01:25.954  IBM Semeru Runtime Open Edition 11.0.18.0 (build 11.0.18+10)
02:01:25.954  Eclipse OpenJ9 VM 11.0.18.0 (build openj9-0.36.0, JRE 11 Windows Server 2019 amd64-64-Bit Compressed References 20230207_562 (JIT enabled, AOT enabled)
02:01:25.954  OpenJ9   - e68fb241f
02:01:25.954  OMR      - f491bbf6f
02:01:25.954  JCL      - b732de1eee based on jdk-11.0.18+10)
02:01:26.504  make[2]: Entering directory '/cygdrive/c/Users/jenkins/workspace/Grinder/aqa-tests'
02:01:27.934  make[3]: Entering directory '/cygdrive/c/Users/jenkins/workspace/Grinder/aqa-tests/openjdk'
02:01:29.925  expr: non-integer argument
02:01:30.336  expr: syntax error: unexpected argument '2048'
02:01:30.336  expr: syntax error: missing argument after '>'

@llxia
Copy link
Contributor

llxia commented Feb 14, 2023

@sxa
Copy link
Member

sxa commented Nov 19, 2024

FYI I'm seeing this on the Temurin windows systems too at the time of writing e.g. https://ci.adoptium.net/job/Grinder/11520/console which used a custom target (not necessarily relevant)

15:08:02  "c:/jenkins/workspace/Grinder/jdkbinary/j2sdk-image\\bin\\java" -version
15:08:02  openjdk version "21.0.6-beta" 2025-01-21
15:08:02  OpenJDK Runtime Environment Temurin-21.0.6+3-202411171535 (build 21.0.6-beta+3-ea)
15:08:02  OpenJDK 64-Bit Server VM Temurin-21.0.6+3-202411171535 (build 21.0.6-beta+3-ea, mixed mode, sharing)
15:08:02  make[2]: Entering directory '/cygdrive/c/jenkins/workspace/Grinder/aqa-tests'
15:08:03  make[3]: Entering directory '/cygdrive/c/jenkins/workspace/Grinder/aqa-tests/openjdk'
15:08:03  expr: non-integer argument
15:08:03  expr: syntax error: unexpected argument '2048'
15:08:03  expr: syntax error: missing argument after '>'

@sophia-guo
Copy link
Contributor

sophia-guo commented Nov 20, 2024

This seems a common windows issue, not related with the parameters. not for grinder only. https://ci.adoptium.net/job/Test_openjdk21_hs_extended.openjdk_x86-64_windows_testList_1/32/consoleFull,
https://ci.adoptium.net/view/Test_openjdk/job/Test_openjdk21_hs_sanity.openjdk_x86-64_windows_testList_0/33/console
https://ci.adoptium.net/view/Test_openjdk/job/Test_openjdk20_hs_sanity.openjdk_x86-64_windows/148/console

It happened to ubuntu before and was fixed #5350

The whole error message

17:41:51  /bin/sh: line 1: [: C:Program: unary operator expected
17:41:51  ...
17:41:51  set SPEC to win_x86-64
17:41:51  set TEST_FLAG to
...
17:41:52  expr: non-integer argument
17:41:52  expr: syntax error: unexpected argument '2048'
17:41:52  expr: syntax error: missing argument after '>'

@sxa
Copy link
Member

sxa commented Nov 20, 2024

The whole error message

17:41:51  /bin/sh: line 1: [: C:Program: unary operator expected
17:41:51  ...
17:41:51  set SPEC to win_x86-64
17:41:51  set TEST_FLAG to
...
17:41:52  expr: non-integer argument
17:41:52  expr: syntax error: unexpected argument '2048'
17:41:52  expr: syntax error: missing argument after '>'

At a guess I'd say it looks like bash specific syntax being used when the shell isn't bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

4 participants