Skip to content

Commit

Permalink
[GR-52603] Invoke revision registry endpoint.
Browse files Browse the repository at this point in the history
PullRequest: graal/17215
  • Loading branch information
Hachim Hassani Lahsinui committed Mar 20, 2024
2 parents 5992d85 + e3a7151 commit 3fbd6f8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
1 change: 1 addition & 0 deletions ci/ci_common/ci-resources.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
ol8_bench_image: "<ol8_bench_image>",
benchmarking_config_repo: "<benchmarking_config_repo>",
notify_releaser_service: ["<notify_releaser_service>"],
notify_indexer_service(java_version, edition): ["<notify_indexer_service>"],
nexus_base_url: "<nexus_base_url>"
}
}
2 changes: 1 addition & 1 deletion graal-common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"README": "This file contains definitions that are useful for the jsonnet CI files of the graal and graal-enterprise repositories.",
"ci": {
"overlay": "9d1b45fd53173902c5a3f451d20cc6c02f24025a"
"overlay": "012d4a64c862f376e77663df257f29f37c700344"
}
}
37 changes: 32 additions & 5 deletions vm/ci/ci_includes/vm.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ local graal_common = import '../../../ci/ci_common/common.jsonnet';
],
},

notify_releaser_build: vm_common.vm_base('linux', 'amd64', 'daily', deploy=true) + {
name: 'daily-deploy-vm-notify-releaser-build-linux-amd64',
vm_notifier_daily: vm_common.vm_base('linux', 'amd64', 'daily', deploy=true) + {
name: 'daily-deploy-vm-notifier-linux-amd64',
packages+: {
curl: '>=7.50.1',
git: '>=1.8.3',
},
run+: [
['test', ['git', 'rev-parse', '--abbrev-ref', 'HEAD'], '!=', 'master', '||'] + self.ci_resources.infra.notify_releaser_service,
['test', ['git', 'rev-parse', '--abbrev-ref', 'HEAD'], '!=', 'master', '||'] + self.ci_resources.infra.notify_releaser_service,
['test', ['git', 'rev-parse', '--abbrev-ref', 'HEAD'], '!=', 'master', '||'] + self.ci_resources.infra.notify_indexer_service('java-latest', 'ce'),
],
runAfter: [
'post-merge-deploy-vm-base-java-latest-linux-amd64',
Expand All @@ -64,6 +65,31 @@ local graal_common = import '../../../ci/ci_common/common.jsonnet';
notify_groups:: ['deploy'],
},

vm_notifier_weekly: vm_common.vm_base('linux', 'amd64', 'weekly', deploy=true) + {
name: 'weekly-deploy-vm-notifier-linux-amd64',
packages+: {
curl: '>=7.50.1',
git: '>=1.8.3',
},
run+: [
['test', ['git', 'rev-parse', '--abbrev-ref', 'HEAD'], '!=', 'master', '||'] + self.ci_resources.infra.notify_indexer_service('java21', 'ce'),
],
runAfter: [
'daily-deploy-vm-maven-linux-amd64',
'weekly-deploy-vm-base-java21-darwin-aarch64',
'weekly-deploy-vm-base-java21-darwin-amd64',
'weekly-deploy-vm-base-java21-linux-aarch64',
'weekly-deploy-vm-base-java21-linux-amd64',
'weekly-deploy-vm-base-java21-windows-amd64',
'weekly-deploy-vm-standalones-java21-darwin-aarch64',
'weekly-deploy-vm-standalones-java21-darwin-amd64',
'weekly-deploy-vm-standalones-java21-linux-aarch64',
'weekly-deploy-vm-standalones-java21-linux-amd64',
'weekly-deploy-vm-standalones-java21-windows-amd64',
],
notify_groups:: ['deploy'],
},

default_diskspace_required(os, arch, large): {
# `os` and `arch` are not yet used
'diskspace_required': if (large) then '30GB' else '25GB',
Expand Down Expand Up @@ -232,8 +258,9 @@ local graal_common = import '../../../ci/ci_common/common.jsonnet';
vm_common.deploy_vm_espresso_java21_darwin_aarch64,
vm_common.deploy_vm_espresso_java21_windows_amd64,

# Trigger the releaser service
self.notify_releaser_build,
# Trigger the releaser service and notify the indexer
self.vm_notifier_daily,
self.vm_notifier_weekly,
],

builds: [vm_common.verify_name(b) for b in vm_common.builds + vm_common_bench.builds + vm_bench.builds + vm_native.builds + utils.add_defined_in(builds, std.thisFile)],
Expand Down

0 comments on commit 3fbd6f8

Please sign in to comment.