< 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 settings 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         ],
 262     };
 263     // Extra settings for debug profiles
 264     common.debug_suffix = "-debug";
 265     common.debug_profile_base = {
 266         configure_args: ["--enable-debug"],
 267         labels: "debug"
 268     };
 269     // Extra settings for slowdebug profiles

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

1144             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1145         },
1146 
1147         cups: {
1148             organization: common.organization,
1149             ext: "tar.gz",
1150             revision: "1.0118+1.0"
1151         },
1152 
1153         jtreg: {
1154             server: "jpg",
1155             product: "jtreg",
1156             version: "6.1",
1157             build_number: "1",
1158             file: "bundles/jtreg-6.1+1.zip",
1159             environment_name: "JT_HOME",
1160             environment_path: input.get("jtreg", "home_path") + "/bin",
1161             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1162         },
1163 








1164         jmh: {
1165             organization: common.organization,
1166             ext: "tar.gz",
1167             revision: "1.34+1.0"
1168         },
1169 
1170         jcov: {
1171             organization: common.organization,
1172             revision: "3.0-12-jdk-asm+1.0",
1173             ext: "zip",
1174             environment_name: "JCOV_HOME",
1175         },
1176 
1177         gnumake: {
1178             organization: common.organization,
1179             ext: "tar.gz",
1180             revision: "4.0+1.0",
1181 
1182             module: (input.build_os == "windows"
1183                 ? "gnumake-" + input.build_osenv_platform

 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 settings 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         ],
 262     };
 263     // Extra settings for debug profiles
 264     common.debug_suffix = "-debug";
 265     common.debug_profile_base = {
 266         configure_args: ["--enable-debug"],
 267         labels: "debug"
 268     };
 269     // Extra settings for slowdebug profiles

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

1144             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1145         },
1146 
1147         cups: {
1148             organization: common.organization,
1149             ext: "tar.gz",
1150             revision: "1.0118+1.0"
1151         },
1152 
1153         jtreg: {
1154             server: "jpg",
1155             product: "jtreg",
1156             version: "6.1",
1157             build_number: "1",
1158             file: "bundles/jtreg-6.1+1.zip",
1159             environment_name: "JT_HOME",
1160             environment_path: input.get("jtreg", "home_path") + "/bin",
1161             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1162         },
1163 
1164         jtregMW: {
1165             organization: common.organization,
1166             ext: "zip",
1167             revision: "7.0-virtual-1.1",
1168             environment_name: "JT_HOME_MW",
1169             environment_path: input.get("jtreg", "install_path") + "/jtreg/bin"
1170         },
1171 
1172         jmh: {
1173             organization: common.organization,
1174             ext: "tar.gz",
1175             revision: "1.34+1.0"
1176         },
1177 
1178         jcov: {
1179             organization: common.organization,
1180             revision: "3.0-12-jdk-asm+1.0",
1181             ext: "zip",
1182             environment_name: "JCOV_HOME",
1183         },
1184 
1185         gnumake: {
1186             organization: common.organization,
1187             ext: "tar.gz",
1188             revision: "4.0+1.0",
1189 
1190             module: (input.build_os == "windows"
1191                 ? "gnumake-" + input.build_osenv_platform
< prev index next >