Skip to content

Commit

Permalink
[GR-48860] Port jobs to JDK-latest.
Browse files Browse the repository at this point in the history
PullRequest: graal/16406
  • Loading branch information
ansalond committed Jan 23, 2024
2 parents 0c8828f + dd764a6 commit d29bb9f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 2 additions & 0 deletions ci/common.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ local common_json = import "../common.json";
"linux-jdk19": { packages+: { "devkit:gcc11.2.0-OL6.4+1": "==0" }},
"linux-jdk20": { packages+: { "devkit:gcc11.2.0-OL6.4+1": "==0" }},
"linux-jdk21": { packages+: { "devkit:gcc11.2.0-OL6.4+1": "==0" }},
"linux-jdk-latest": { packages+: { "devkit:gcc11.2.0-OL6.4+1": "==0" }},
"linux-jdkLatest": self["linux-jdk-latest"],
},

# Dependencies
Expand Down
7 changes: 2 additions & 5 deletions vm/ci/ci_common/common.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ local devkits = graal_common.devkits;
},
},

common_vm_windows_jdk17: self.common_vm_windows + devkits['windows-jdk17'],
common_vm_windows_jdk21: self.common_vm_windows + devkits['windows-jdk21'],
common_vm_windows_jdkLatest: self.common_vm_windows + devkits['windows-jdkLatest'],

Expand Down Expand Up @@ -192,17 +191,15 @@ local devkits = graal_common.devkits;
},

vm_windows: self.common_vm_windows + graal_common.windows_server_2016_amd64,
vm_windows_jdk17: self.common_vm_windows_jdk17 + graal_common.windows_server_2016_amd64,
vm_windows_jdk21: self.common_vm_windows_jdk21 + graal_common.windows_server_2016_amd64,
vm_windows_jdkLatest: self.common_vm_windows_jdkLatest + graal_common.windows_server_2016_amd64,
vm_windows_amd64: self.vm_windows,
vm_windows_amd64_jdk17: self.vm_windows_jdk17,
vm_windows_amd64_jdk21: self.vm_windows_jdk21,
vm_windows_amd64_jdkLatest: self.vm_windows_jdkLatest,

vm_base(os, arch, main_target, deploy=false, bench=false, os_distro=null, jdk_hint=null):
vm.default_diskspace_required(os, arch, large=deploy)
+ self['vm_' + os + '_' + arch + (if (os_distro != null) then '_' + os_distro else '') + (if (jdk_hint != null) then '_jdk' + jdk_hint else '')] # examples: `self.vm_linux_amd64_ubuntu`, `self.vm_windows_amd_jdkLatest`
+ self['vm_' + os + '_' + arch + (if (os_distro != null) then '_' + os_distro else '') + (if (jdk_hint != null) then '_jdk' + jdk_hint else '')] # examples: `self.vm_linux_amd64_ubuntu`, `self.vm_windows_amd64_jdkLatest`
+ { targets+: [main_target] + (if (deploy) then ['deploy'] else []) + (if (bench) then ['bench'] else []) }
+ (if (bench) then { capabilities+: ['no_frequency_scaling'] } else {}),

Expand Down Expand Up @@ -290,7 +287,7 @@ local devkits = graal_common.devkits;
else if (os == 'windows') then
if (arch == 'amd64') then
# Windows/AMD64
java_deps(edition) + self.svm_common_windows_amd64("21") + self.js_windows_common + self.sulong_windows
java_deps(edition) + (if (java_version == 'latest') then self.svm_common_windows_amd64("Latest") else self.svm_common_windows_amd64(java_version)) + self.js_windows_common + self.sulong_windows
else
error 'Unknown windows arch: ' + arch
else
Expand Down
2 changes: 1 addition & 1 deletion vm/ci/ci_includes/vm-native.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ local vm_common = import '../ci_common/common.jsonnet';
},

local builds = [
vm.vm_java_21 + vm_common.svm_common_linux_amd64 + vm_common.sulong_linux + vm_common.graalpython_linux_amd64 + vm.custom_vm_linux + vm_common.vm_base('linux', 'amd64', 'gate') + {
vm.vm_java_Latest + vm_common.svm_common_linux_amd64 + vm_common.sulong_linux + vm_common.graalpython_linux_amd64 + vm.custom_vm_linux + vm_common.vm_base('linux', 'amd64', 'gate') + {
run+: [
['export', 'SVM_SUITE=' + vm.svm_suite],
['mx', '--dynamicimports', '$SVM_SUITE,graalpython', '--disable-polyglot', '--disable-libpolyglot', '--force-bash-launchers=lli,native-image', 'gate', '--no-warning-as-error', '--tags', 'build,python'],
Expand Down
8 changes: 4 additions & 4 deletions vm/ci/ci_includes/vm.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,21 @@ local graal_common = import '../../../ci/ci_common/common.jsonnet';
},

local builds = [
utils.add_gate_predicate(self.vm_java_21 + vm_common.vm_base('linux', 'amd64', 'gate') + {
utils.add_gate_predicate(self.vm_java_Latest + vm_common.vm_base('linux', 'amd64', 'gate') + {
run: [
['mx', 'build'],
['mx', 'unittest', '--suite', 'vm'],
],
name: 'gate-vm-unittest-linux-amd64',
}, ['sdk', 'truffle', 'vm']),
utils.add_gate_predicate(self.vm_java_21 + graal_common.devkits['windows-jdk21'] + vm_common.vm_base('windows', 'amd64', 'gate') + {
utils.add_gate_predicate(self.vm_java_Latest + graal_common.devkits['windows-jdkLatest'] + vm_common.vm_base('windows', 'amd64', 'gate') + {
run: [
['mx', 'build'],
['mx', 'unittest', '--suite', 'vm'],
],
name: 'gate-vm-unittest-windows-amd64',
}, ["sdk", "truffle", "vm"]),
self.vm_java_21 + vm_common.vm_base('linux', 'amd64', 'gate') + vm_common.sulong_linux + {
self.vm_java_Latest + vm_common.vm_base('linux', 'amd64', 'gate') + vm_common.sulong_linux + {
environment+: {
DYNAMIC_IMPORTS: '/tools,/substratevm,/sulong',
NATIVE_IMAGES: 'polyglot',
Expand Down Expand Up @@ -170,7 +170,7 @@ local graal_common = import '../../../ci/ci_common/common.jsonnet';
name: 'gate-vm-maven-dry-run-windows-amd64',
timelimit: '1:00:00',
},
vm_common.graalvm_complete_build_deps('ce', 'windows', 'amd64', java_version='latest') + vm_common.deploy_build + vm_common.vm_base('windows', 'amd64', 'daily', deploy=true, jdk_hint='21') + vm_common.maven_deploy_base_functions.base_object('windows', 'amd64', dry_run=false, remote_mvn_repo=$.maven_deploy_repository, remote_non_mvn_repo=$.binaries_repository, local_repo='local') + {
vm_common.graalvm_complete_build_deps('ce', 'windows', 'amd64', java_version='latest') + vm_common.deploy_build + vm_common.vm_base('windows', 'amd64', 'daily', deploy=true, jdk_hint='Latest') + vm_common.maven_deploy_base_functions.base_object('windows', 'amd64', dry_run=false, remote_mvn_repo=$.maven_deploy_repository, remote_non_mvn_repo=$.binaries_repository, local_repo='local') + {
name: 'daily-deploy-vm-maven-windows-amd64',
timelimit: '1:00:00',
notify_groups:: ['deploy'],
Expand Down

0 comments on commit d29bb9f

Please sign in to comment.