< prev index next >

make/conf/jib-profiles.js

Print this page

 229  *
 230  * @param input External data to use for generating the configuration
 231  * @returns Common values
 232  */
 233 var getJibProfilesCommon = function (input, data) {
 234     var common = {};
 235 
 236     common.organization = "jpg.infra.builddeps";
 237     common.build_id = getBuildId(input);
 238     common.build_number = input.build_number != null ? input.build_number : "0";
 239 
 240     // List of the main profile names used for iteration
 241     common.main_profile_names = [
 242         "linux-x64", "linux-x86", "macosx-x64", "macosx-aarch64",
 243         "windows-x64", "windows-x86", "windows-aarch64",
 244         "linux-aarch64", "linux-arm32", "linux-ppc64le", "linux-s390x"
 245     ];
 246 
 247     // These are the base setttings for all the main build profiles.
 248     common.main_profile_base = {
 249         dependencies: ["boot_jdk", "gnumake", "jtreg", "jib", "autoconf", "jmh", "jcov"],
 250         default_make_targets: ["product-bundles", "test-bundles", "static-libs-bundles"],
 251         configure_args: concat("--enable-jtreg-failure-handler",
 252             "--with-exclude-translations=es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I,zh_TW,zh_HK",
 253             "--disable-manpages",
 254             "--disable-jvm-feature-shenandoahgc",
 255             versionArgs(input, common))
 256     };
 257     // Extra settings for release profiles
 258     common.release_profile_base = {
 259         configure_args: [
 260             "--enable-reproducible-build",
 261             "--with-source-date=current",
 262         ],
 263     };
 264     // Extra settings for debug profiles
 265     common.debug_suffix = "-debug";
 266     common.debug_profile_base = {
 267         configure_args: ["--enable-debug"],
 268         labels: "debug"
 269     };

 893                         "bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-gcov-tests.tar.gz",
 894                     ],
 895                     exploded: "images/test"
 896             },
 897             jdk_symbols: {
 898                     local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)",
 899                     remote: [
 900                         "bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-gcov-symbols.tar.gz",
 901                     ],
 902                     subdir: jdk_subdir,
 903                     exploded: "images/jdk"
 904                 },
 905             };
 906     });
 907 
 908     // Profiles used to run tests.
 909     var testOnlyProfiles = {
 910         "run-test": {
 911             target_os: input.build_os,
 912             target_cpu: input.build_cpu,
 913             dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ],
 914             labels: "test",
 915             environment: {
 916                 "JT_JAVA": common.boot_jdk_home
 917             }
 918         }
 919     };
 920     profiles = concatObjects(profiles, testOnlyProfiles);
 921 
 922     // Profiles used to run tests using Jib for internal dependencies.
 923     var testedProfile = input.testedProfile;
 924     if (testedProfile == null) {
 925         testedProfile = input.build_os + "-" + input.build_cpu;
 926     }
 927     var testedProfileJdk = testedProfile + ".jdk";
 928     // Make it possible to use the test image from a different profile
 929     var testImageProfile;
 930     if (input.testImageProfile != null) {
 931         testImageProfile = input.testImageProfile;
 932     } else if (testedProfile.endsWith("-jcov")) {
 933         testImageProfile = testedProfile.substring(0, testedProfile.length - "-jcov".length);
 934     } else {
 935         testImageProfile = testedProfile;
 936     }
 937     var testedProfileTest = testImageProfile + ".test"
 938     var testOnlyMake = [ "test-prebuilt", "LOG_CMDLINES=true", "JTREG_VERBOSE=fail,error,time" ];
 939     if (testedProfile.endsWith("-gcov")) {
 940         testOnlyMake = concat(testOnlyMake, "GCOV_ENABLED=true")
 941     }
 942     var testOnlyProfilesPrebuilt = {
 943         "run-test-prebuilt": {
 944             target_os: input.build_os,
 945             target_cpu: input.build_cpu,
 946             dependencies: [
 947                 "jtreg", "gnumake", "boot_jdk", "devkit", "jib", "jcov", testedProfileJdk,
 948                 testedProfileTest
 949             ],
 950             src: "src.conf",
 951             make_args: testOnlyMake,
 952             environment: {
 953                 "BOOT_JDK": common.boot_jdk_home,
 954                 "JT_HOME": input.get("jtreg", "home_path"),
 955                 "JDK_IMAGE_DIR": input.get(testedProfileJdk, "home_path"),
 956                 "TEST_IMAGE_DIR": input.get(testedProfileTest, "home_path")
 957             },
 958             labels: "test"
 959         }
 960     };
 961 
 962     // If actually running the run-test-prebuilt profile, verify that the input
 963     // variable is valid and if so, add the appropriate target_* values from
 964     // the tested profile. Use testImageProfile value as backup.
 965     if (input.profile == "run-test-prebuilt") {
 966         if (profiles[testedProfile] == null && profiles[testImageProfile] == null) {
 967             error("testedProfile is not defined: " + testedProfile + " " + testImageProfile);

1123             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1124         },
1125 
1126         cups: {
1127             organization: common.organization,
1128             ext: "tar.gz",
1129             revision: "1.0118+1.0"
1130         },
1131 
1132         jtreg: {
1133             server: "jpg",
1134             product: "jtreg",
1135             version: "6",
1136             build_number: "1",
1137             file: "bundles/jtreg-6+1.zip",
1138             environment_name: "JT_HOME",
1139             environment_path: input.get("jtreg", "home_path") + "/bin",
1140             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1141         },
1142 








1143         jmh: {
1144             organization: common.organization,
1145             ext: "tar.gz",
1146             revision: "1.28+1.0"
1147         },
1148 
1149         jcov: {
1150             // Use custom build of JCov
1151             // See CODETOOLS-7902734 for more info.
1152             // server: "jpg",
1153             // product: "jcov",
1154             // version: "3.0",
1155             // build_number: "b07",
1156             // file: "bundles/jcov-3_0.zip",
1157             organization: common.organization,
1158             revision: "3.0-9-jdk-asm+1.0",
1159             ext: "zip",
1160             environment_name: "JCOV_HOME",
1161         },
1162 

 229  *
 230  * @param input External data to use for generating the configuration
 231  * @returns Common values
 232  */
 233 var getJibProfilesCommon = function (input, data) {
 234     var common = {};
 235 
 236     common.organization = "jpg.infra.builddeps";
 237     common.build_id = getBuildId(input);
 238     common.build_number = input.build_number != null ? input.build_number : "0";
 239 
 240     // List of the main profile names used for iteration
 241     common.main_profile_names = [
 242         "linux-x64", "linux-x86", "macosx-x64", "macosx-aarch64",
 243         "windows-x64", "windows-x86", "windows-aarch64",
 244         "linux-aarch64", "linux-arm32", "linux-ppc64le", "linux-s390x"
 245     ];
 246 
 247     // These are the base setttings for all the main build profiles.
 248     common.main_profile_base = {
 249         dependencies: ["boot_jdk", "gnumake", "jtreg", "jtregMW", "jib", "autoconf", "jmh", "jcov"],
 250         default_make_targets: ["product-bundles", "test-bundles", "static-libs-bundles"],
 251         configure_args: concat("--enable-jtreg-failure-handler",
 252             "--with-exclude-translations=es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I,zh_TW,zh_HK",
 253             "--disable-manpages",
 254             "--disable-jvm-feature-shenandoahgc",
 255             versionArgs(input, common))
 256     };
 257     // Extra settings for release profiles
 258     common.release_profile_base = {
 259         configure_args: [
 260             "--enable-reproducible-build",
 261             "--with-source-date=current",
 262         ],
 263     };
 264     // Extra settings for debug profiles
 265     common.debug_suffix = "-debug";
 266     common.debug_profile_base = {
 267         configure_args: ["--enable-debug"],
 268         labels: "debug"
 269     };

 893                         "bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-gcov-tests.tar.gz",
 894                     ],
 895                     exploded: "images/test"
 896             },
 897             jdk_symbols: {
 898                     local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)",
 899                     remote: [
 900                         "bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-gcov-symbols.tar.gz",
 901                     ],
 902                     subdir: jdk_subdir,
 903                     exploded: "images/jdk"
 904                 },
 905             };
 906     });
 907 
 908     // Profiles used to run tests.
 909     var testOnlyProfiles = {
 910         "run-test": {
 911             target_os: input.build_os,
 912             target_cpu: input.build_cpu,
 913             dependencies: [ "jtreg", "jtregMW", "gnumake", "boot_jdk", "devkit", "jib" ],
 914             labels: "test",
 915             environment: {
 916                 "JT_JAVA": common.boot_jdk_home
 917             }
 918         }
 919     };
 920     profiles = concatObjects(profiles, testOnlyProfiles);
 921 
 922     // Profiles used to run tests using Jib for internal dependencies.
 923     var testedProfile = input.testedProfile;
 924     if (testedProfile == null) {
 925         testedProfile = input.build_os + "-" + input.build_cpu;
 926     }
 927     var testedProfileJdk = testedProfile + ".jdk";
 928     // Make it possible to use the test image from a different profile
 929     var testImageProfile;
 930     if (input.testImageProfile != null) {
 931         testImageProfile = input.testImageProfile;
 932     } else if (testedProfile.endsWith("-jcov")) {
 933         testImageProfile = testedProfile.substring(0, testedProfile.length - "-jcov".length);
 934     } else {
 935         testImageProfile = testedProfile;
 936     }
 937     var testedProfileTest = testImageProfile + ".test"
 938     var testOnlyMake = [ "test-prebuilt", "LOG_CMDLINES=true", "JTREG_VERBOSE=fail,error,time" ];
 939     if (testedProfile.endsWith("-gcov")) {
 940         testOnlyMake = concat(testOnlyMake, "GCOV_ENABLED=true")
 941     }
 942     var testOnlyProfilesPrebuilt = {
 943         "run-test-prebuilt": {
 944             target_os: input.build_os,
 945             target_cpu: input.build_cpu,
 946             dependencies: [
 947                 "jtreg", "jtregMW", "gnumake", "boot_jdk", "devkit", "jib", "jcov", testedProfileJdk,
 948                 testedProfileTest
 949             ],
 950             src: "src.conf",
 951             make_args: testOnlyMake,
 952             environment: {
 953                 "BOOT_JDK": common.boot_jdk_home,
 954                 "JT_HOME": input.get("jtreg", "home_path"),
 955                 "JDK_IMAGE_DIR": input.get(testedProfileJdk, "home_path"),
 956                 "TEST_IMAGE_DIR": input.get(testedProfileTest, "home_path")
 957             },
 958             labels: "test"
 959         }
 960     };
 961 
 962     // If actually running the run-test-prebuilt profile, verify that the input
 963     // variable is valid and if so, add the appropriate target_* values from
 964     // the tested profile. Use testImageProfile value as backup.
 965     if (input.profile == "run-test-prebuilt") {
 966         if (profiles[testedProfile] == null && profiles[testImageProfile] == null) {
 967             error("testedProfile is not defined: " + testedProfile + " " + testImageProfile);

1123             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1124         },
1125 
1126         cups: {
1127             organization: common.organization,
1128             ext: "tar.gz",
1129             revision: "1.0118+1.0"
1130         },
1131 
1132         jtreg: {
1133             server: "jpg",
1134             product: "jtreg",
1135             version: "6",
1136             build_number: "1",
1137             file: "bundles/jtreg-6+1.zip",
1138             environment_name: "JT_HOME",
1139             environment_path: input.get("jtreg", "home_path") + "/bin",
1140             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1141         },
1142 
1143         jtregMW: {
1144             organization: common.organization,
1145             ext: "zip",
1146             revision: "6.0-virtual-1.0",
1147             environment_name: "JT_HOME_MW",
1148             environment_path: input.get("jtreg", "install_path") + "/jtreg/bin"
1149         },
1150 
1151         jmh: {
1152             organization: common.organization,
1153             ext: "tar.gz",
1154             revision: "1.28+1.0"
1155         },
1156 
1157         jcov: {
1158             // Use custom build of JCov
1159             // See CODETOOLS-7902734 for more info.
1160             // server: "jpg",
1161             // product: "jcov",
1162             // version: "3.0",
1163             // build_number: "b07",
1164             // file: "bundles/jcov-3_0.zip",
1165             organization: common.organization,
1166             revision: "3.0-9-jdk-asm+1.0",
1167             ext: "zip",
1168             environment_name: "JCOV_HOME",
1169         },
1170 
< prev index next >