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

fix testenvSettings.sh #5306

Merged
merged 1 commit into from
May 9, 2024
Merged

fix testenvSettings.sh #5306

merged 1 commit into from
May 9, 2024

Conversation

llxia
Copy link
Contributor

@llxia llxia commented May 9, 2024

fix: #5305 and #5301

@llxia
Copy link
Contributor Author

llxia commented May 9, 2024

15:43:58  Set values based on ./testenv/testenv_arm32.properties:
15:43:58  =========
15:43:58  TKG_REPO=https://github.com/adoptium/TKG.git
15:43:58  TKG_BRANCH=master
15:43:58  OPENJ9_REPO=https://github.com/eclipse-openj9/openj9.git
15:43:58  OPENJ9_BRANCH=master
15:43:58  STF_REPO=https://github.com/adoptium/STF.git
15:43:58  STF_BRANCH=master
15:43:58  OPENJ9_SYSTEMTEST_REPO=https://github.com/eclipse-openj9/openj9-systemtest.git
15:43:58  OPENJ9_SYSTEMTEST_BRANCH=master
15:43:58  ADOPTOPENJDK_SYSTEMTEST_REPO=https://github.com/adoptium/aqa-systemtest.git
15:43:58  ADOPTOPENJDK_SYSTEMTEST_BRANCH=master
15:43:58  JDK8_REPO=https://github.com/adoptium/aarch32-jdk8u.git
15:43:58  JDK8_BRANCH=dev
15:43:58  AQA_REQUIRED_TARGETS=sanity.functional,extended.functional,special.functional,sanity.openjdk,extended.openjdk,sanity.system,extended.system,sanity.perf,extended.perf
15:43:58  
15:43:58  
15:43:58  =========
15:43:58  
15:43:58  JDK_REPO=https://github.com/adoptium/aarch32-jdk8u.git
15:43:58  JDK_BRANCH=dev
  • ubu22 floatSanityTests_0 USE_TESTENV_PROPERTIES=true: Grinder
00:01:26.508  + . ./scripts/testenv/testenvSettings.sh
00:01:26.508  + set +x
00:01:26.508  Set values based on ./testenv/testenv.properties:
00:01:26.508  =========
00:01:26.508  TKG_REPO=https://github.com/adoptium/TKG.git
00:01:26.508  TKG_BRANCH=master
00:01:26.508  OPENJ9_REPO=https://github.com/eclipse-openj9/openj9.git
00:01:26.508  OPENJ9_BRANCH=master
00:01:26.508  STF_REPO=https://github.com/adoptium/STF.git
00:01:26.508  STF_BRANCH=master
00:01:26.508  OPENJ9_SYSTEMTEST_REPO=https://github.com/eclipse-openj9/openj9-systemtest.git
00:01:26.508  OPENJ9_SYSTEMTEST_BRANCH=master
00:01:26.508  ADOPTOPENJDK_SYSTEMTEST_REPO=https://github.com/adoptium/aqa-systemtest.git
00:01:26.508  ADOPTOPENJDK_SYSTEMTEST_BRANCH=master
00:01:26.508  JDK8_REPO=https://github.com/adoptium/jdk8u.git
00:01:26.508  JDK8_BRANCH=dev
00:01:26.508  JDK11_REPO=https://github.com/adoptium/jdk11u.git
00:01:26.508  JDK11_BRANCH=dev
00:01:26.508  JDK17_REPO=https://github.com/adoptium/jdk17u.git
00:01:26.508  JDK17_BRANCH=dev
00:01:26.508  JDK21_REPO=https://github.com/adoptium/jdk21u.git
00:01:26.508  JDK21_BRANCH=dev
00:01:26.508  JDK8_OPENJ9_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk8.git
00:01:26.508  JDK8_OPENJ9_BRANCH=openj9
00:01:26.508  JDK11_OPENJ9_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk11.git
00:01:26.508  JDK11_OPENJ9_BRANCH=openj9
00:01:26.508  JDK17_OPENJ9_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk17.git
00:01:26.508  JDK17_OPENJ9_BRANCH=openj9
00:01:26.508  JDK21_OPENJ9_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk21.git
00:01:26.508  JDK21_OPENJ9_BRANCH=openj9
00:01:26.508  JDK8_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
00:01:26.508  JDK8_OPENJCEPLUS_GIT_BRANCH=semeru-java8
00:01:26.508  JDK11_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
00:01:26.508  JDK11_OPENJCEPLUS_GIT_BRANCH=semeru-java11
00:01:26.508  JDK17_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
00:01:26.508  JDK17_OPENJCEPLUS_GIT_BRANCH=semeru-java17
00:01:26.508  JDK21_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
00:01:26.508  JDK21_OPENJCEPLUS_GIT_BRANCH=semeru-java21
00:01:26.508  JDK22_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
00:01:26.508  JDK22_OPENJCEPLUS_GIT_BRANCH=semeru-java22
00:01:26.508  AQA_REQUIRED_TARGETS=sanity.functional,extended.functional,special.functional,sanity.openjdk,extended.openjdk,sanity.system,extended.system,sanity.perf,extended.perf
00:01:26.508  =========
00:01:26.508  
00:01:26.508  JDK_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk11.git
00:01:26.508  JDK_BRANCH=openj9
00:01:26.508  OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
00:01:26.508  OPENJCEPLUS_GIT_BRANCH=semeru-java11
  • ubu22 floatSanityTests_0 USE_TESTENV_PROPERTIES=false: Grinder
  • wins floatSanityTests_0: Grinder

@llxia llxia marked this pull request as ready for review May 9, 2024 20:14
@llxia llxia requested review from pshipton and LongyuZhang May 9, 2024 20:14
Copy link
Contributor

@LongyuZhang LongyuZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pshipton
Copy link
Contributor

pshipton commented May 9, 2024

@keithc-ca can you pls review this.

@llxia
Copy link
Contributor Author

llxia commented May 9, 2024

arm_linux JDK11: https://ci.adoptium.net/view/Test_grinder/job/Grinder/9905/console

16:43:45  + bash ./compile.sh
16:43:45  Set values based on ./testenv/testenv.properties:
16:43:45  =========
16:43:45  TKG_REPO=https://github.com/adoptium/TKG.git
16:43:45  TKG_BRANCH=master
16:43:45  OPENJ9_REPO=https://github.com/eclipse-openj9/openj9.git
16:43:45  OPENJ9_BRANCH=master
16:43:45  STF_REPO=https://github.com/adoptium/STF.git
16:43:45  STF_BRANCH=master
16:43:45  OPENJ9_SYSTEMTEST_REPO=https://github.com/eclipse-openj9/openj9-systemtest.git
16:43:45  OPENJ9_SYSTEMTEST_BRANCH=master
16:43:45  ADOPTOPENJDK_SYSTEMTEST_REPO=https://github.com/adoptium/aqa-systemtest.git
16:43:45  ADOPTOPENJDK_SYSTEMTEST_BRANCH=master
16:43:45  JDK8_REPO=https://github.com/adoptium/jdk8u.git
16:43:45  JDK8_BRANCH=dev
16:43:45  JDK11_REPO=https://github.com/adoptium/jdk11u.git
16:43:45  JDK11_BRANCH=dev
16:43:45  JDK17_REPO=https://github.com/adoptium/jdk17u.git
16:43:45  JDK17_BRANCH=dev
16:43:45  JDK21_REPO=https://github.com/adoptium/jdk21u.git
16:43:45  JDK21_BRANCH=dev
16:43:45  JDK8_OPENJ9_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk8.git
16:43:45  JDK8_OPENJ9_BRANCH=openj9
16:43:45  JDK11_OPENJ9_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk11.git
16:43:45  JDK11_OPENJ9_BRANCH=openj9
16:43:45  JDK17_OPENJ9_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk17.git
16:43:45  JDK17_OPENJ9_BRANCH=openj9
16:43:45  JDK21_OPENJ9_REPO=https://github.com/ibmruntimes/openj9-openjdk-jdk21.git
16:43:45  JDK21_OPENJ9_BRANCH=openj9
16:43:45  JDK8_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
16:43:45  JDK8_OPENJCEPLUS_GIT_BRANCH=semeru-java8
16:43:45  JDK11_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
16:43:45  JDK11_OPENJCEPLUS_GIT_BRANCH=semeru-java11
16:43:45  JDK17_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
16:43:45  JDK17_OPENJCEPLUS_GIT_BRANCH=semeru-java17
16:43:45  JDK21_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
16:43:45  JDK21_OPENJCEPLUS_GIT_BRANCH=semeru-java21
16:43:45  JDK22_OPENJCEPLUS_GIT_REPO=https://github.com/ibmruntimes/OpenJCEPlus.git
16:43:45  JDK22_OPENJCEPLUS_GIT_BRANCH=semeru-java22
16:43:45  AQA_REQUIRED_TARGETS=sanity.functional,extended.functional,special.functional,sanity.openjdk,extended.openjdk,sanity.system,extended.system,sanity.perf,extended.perf
16:43:45  =========
16:43:45  
16:43:45  JDK_REPO=https://github.com/adoptium/jdk11u.git
16:43:45  JDK_BRANCH=dev

Comment on lines 6 to 16
case "$PLATFORM" in
*zos*)
testenv_file="./testenv/testenv_zos.properties"
;;
*arm*)
if [ "$JDK_VERSION" = "8" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This yields different behavior for a platform matching both *zos* and *arm*. I'm not sure we have any of those, but to be equivalent, we would express this as two sequential case statements.

Comment on lines 14 to 18
testenv_file="./testenv/testenv.properties"
fi
;;
*)
testenv_file="./testenv/testenv.properties"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than repeat the default, perhaps it should be set at the beginning like the previous code.

;;
*)
testenv_file="./testenv/testenv.properties"
;;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This should be indented the same as lines 16 and 18.

@llxia llxia force-pushed the mytest branch 2 times, most recently from a2cf062 to 9423aa1 Compare May 9, 2024 21:11
Comment on lines 7 to 22
case "$PLATFORM" in
*zos*)
testenv_file="./testenv/testenv_zos.properties"
;;
*arm*)
case "$JDK_VERSION" in
"8")
testenv_file="./testenv/testenv_arm32.properties"
;;
esac
;;
esac
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't what I meant by "two sequential case statements" (this is just more verbose than the earlier version).
What I meant was:

    testenv_file="./testenv/testenv.properties"
    case "$PLATFORM" in
        *zos*)
            testenv_file="./testenv/testenv_zos.properties"
            ;;
        *)
            ;;
    esac
    case "$PLATFORM" in
        *arm*)
            if [ "$JDK_VERSION" = "8" ]; then
                testenv_file="./testenv/testenv_arm32.properties"
            fi
            ;;
        *)
            ;;
    esac

Again, this is only relevant for platforms matching *arm*zos* or *zos*arm* (which may never materialize).

@LongyuZhang LongyuZhang merged commit fff175b into adoptium:master May 9, 2024
1 check passed
llxia added a commit to llxia/aqa-tests that referenced this pull request May 9, 2024
pshipton pushed a commit that referenced this pull request May 9, 2024
@judovana
Copy link
Contributor

tyvm!

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

Successfully merging this pull request may close these issues.

. ./scripts/testenv/testenvSettings.sh works in cent9, but not ubu22
5 participants