< prev index next >

make/conf/jib-profiles.js

Print this page

 230  *
 231  * @param input External data to use for generating the configuration
 232  * @returns Common values
 233  */
 234 var getJibProfilesCommon = function (input, data) {
 235     var common = {};
 236 
 237     common.organization = "jpg.infra.builddeps";
 238     common.build_id = getBuildId(input);
 239     common.build_number = input.build_number != null ? input.build_number : "0";
 240 
 241     // List of the main profile names used for iteration
 242     common.main_profile_names = [
 243         "linux-x64", "linux-x86", "macosx-x64", "macosx-aarch64",
 244         "windows-x64", "windows-x86", "windows-aarch64",
 245         "linux-aarch64", "linux-arm32", "linux-ppc64le", "linux-s390x"
 246     ];
 247 
 248     // These are the base settings for all the main build profiles.
 249     common.main_profile_base = {
 250         dependencies: ["boot_jdk", "gnumake", "jtreg", "jib", "autoconf", "jmh", "jcov"],
 251         default_make_targets: ["product-bundles", "test-bundles", "static-libs-bundles"],
 252         configure_args: concat("--enable-jtreg-failure-handler",
 253             "--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",
 254             "--disable-manpages",
 255             "--disable-jvm-feature-shenandoahgc",
 256             versionArgs(input, common))
 257     };
 258 
 259     // Extra settings for debug profiles
 260     common.debug_suffix = "-debug";
 261     common.debug_profile_base = {
 262         configure_args: ["--enable-debug"],
 263         labels: "debug"
 264     };
 265     // Extra settings for slowdebug profiles
 266     common.slowdebug_suffix = "-slowdebug";
 267     common.slowdebug_profile_base = {
 268         configure_args: ["--with-debug-level=slowdebug"],
 269         labels: "slowdebug"
 270     };

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

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








1146         jmh: {
1147             organization: common.organization,
1148             ext: "tar.gz",
1149             revision: "1.35+1.0"
1150         },
1151 
1152         jcov: {
1153             organization: common.organization,
1154             revision: "3.0-13-jdk-asm+1.0",
1155             ext: "zip",
1156             environment_name: "JCOV_HOME",
1157         },
1158 
1159         gnumake: {
1160             organization: common.organization,
1161             ext: "tar.gz",
1162             revision: makeRevision,
1163             module: makeModule,
1164             configure_args: "MAKE=" + makeBinDir + "/make",
1165             environment: {

 230  *
 231  * @param input External data to use for generating the configuration
 232  * @returns Common values
 233  */
 234 var getJibProfilesCommon = function (input, data) {
 235     var common = {};
 236 
 237     common.organization = "jpg.infra.builddeps";
 238     common.build_id = getBuildId(input);
 239     common.build_number = input.build_number != null ? input.build_number : "0";
 240 
 241     // List of the main profile names used for iteration
 242     common.main_profile_names = [
 243         "linux-x64", "linux-x86", "macosx-x64", "macosx-aarch64",
 244         "windows-x64", "windows-x86", "windows-aarch64",
 245         "linux-aarch64", "linux-arm32", "linux-ppc64le", "linux-s390x"
 246     ];
 247 
 248     // These are the base settings for all the main build profiles.
 249     common.main_profile_base = {
 250         dependencies: ["boot_jdk", "gnumake", "jtreg", "jtregMW", "jib", "autoconf", "jmh", "jcov"],
 251         default_make_targets: ["product-bundles", "test-bundles", "static-libs-bundles"],
 252         configure_args: concat("--enable-jtreg-failure-handler",
 253             "--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",
 254             "--disable-manpages",
 255             "--disable-jvm-feature-shenandoahgc",
 256             versionArgs(input, common))
 257     };
 258 
 259     // Extra settings for debug profiles
 260     common.debug_suffix = "-debug";
 261     common.debug_profile_base = {
 262         configure_args: ["--enable-debug"],
 263         labels: "debug"
 264     };
 265     // Extra settings for slowdebug profiles
 266     common.slowdebug_suffix = "-slowdebug";
 267     common.slowdebug_profile_base = {
 268         configure_args: ["--with-debug-level=slowdebug"],
 269         labels: "slowdebug"
 270     };

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

1126             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1127         },
1128 
1129         cups: {
1130             organization: common.organization,
1131             ext: "tar.gz",
1132             revision: "1.0118+1.0"
1133         },
1134 
1135         jtreg: {
1136             server: "jpg",
1137             product: "jtreg",
1138             version: "7",
1139             build_number: "1",
1140             file: "bundles/jtreg-7+1.zip",
1141             environment_name: "JT_HOME",
1142             environment_path: input.get("jtreg", "home_path") + "/bin",
1143             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1144         },
1145 
1146         jtregMW: {
1147             organization: common.organization,
1148             ext: "zip",
1149             revision: "7.1-virtual-1.0",
1150             environment_name: "JT_HOME_MW",
1151             environment_path: input.get("jtreg", "install_path") + "/jtreg/bin"
1152         },
1153 
1154         jmh: {
1155             organization: common.organization,
1156             ext: "tar.gz",
1157             revision: "1.35+1.0"
1158         },
1159 
1160         jcov: {
1161             organization: common.organization,
1162             revision: "3.0-13-jdk-asm+1.0",
1163             ext: "zip",
1164             environment_name: "JCOV_HOME",
1165         },
1166 
1167         gnumake: {
1168             organization: common.organization,
1169             ext: "tar.gz",
1170             revision: makeRevision,
1171             module: makeModule,
1172             configure_args: "MAKE=" + makeBinDir + "/make",
1173             environment: {
< prev index next >