Skip to content

Commit

Permalink
[GR-24662] More jsonnet migration.
Browse files Browse the repository at this point in the history
PullRequest: graal/9814
  • Loading branch information
farquet committed Sep 22, 2021
2 parents 761fc35 + 02e6ef6 commit 091d31a
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 57 deletions.
7 changes: 7 additions & 0 deletions bench-common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
default_numa_node:: 0,
num_threads:: 72
},
x82:: common.linux + common.amd64 + self._bench_machine + {
machine_name:: "x82",
capabilities+: ["no_frequency_scaling", "tmpfs25g"],
numa_nodes:: [0, 1],
default_numa_node:: 0,
num_threads:: 96
},
xgene3:: common.linux + common.aarch64 + self._bench_machine + {
machine_name:: "xgene3",
capabilities+: [],
Expand Down
3 changes: 0 additions & 3 deletions ci.hocon
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ include "compiler/ci_includes/bench-aarch64-c2.hocon"
# ------------------ SVM ----------------------
include "substratevm/ci_includes/gate.hocon"

# Publish Javadoc
include "ci_includes/publish-javadoc.hocon"

# ------------------- VM ----------------------
include "vm/ci_common/common.hocon"
include "vm/ci_common/common-bench.hocon"
Expand Down
11 changes: 10 additions & 1 deletion ci.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ local espresso = import 'espresso/ci.jsonnet';
# Sulong
local sulong = import 'sulong/ci.jsonnet';

# JavaDoc
local javadoc = import "ci_includes/publish-javadoc.jsonnet";

# Add a guard to `build` that prevents it from running in the gate
# for a PR that only touches *.md flles.
local add_markdown_guard(build) = build + {
Expand All @@ -23,5 +26,11 @@ local add_markdown_guard(build) = build + {
_checkCommon: (import 'common.jsonnet'),
ci_resources:: (import 'ci-resources.libsonnet'),
specVersion: "2",
builds: [add_markdown_guard(b) for b in (compiler.builds + wasm.builds + espresso.builds + sulong.builds)]
builds: [add_markdown_guard(b) for b in (
compiler.builds +
wasm.builds +
espresso.builds +
sulong.builds +
javadoc.builds
)]
}
44 changes: 0 additions & 44 deletions ci_includes/publish-javadoc.hocon

This file was deleted.

52 changes: 52 additions & 0 deletions ci_includes/publish-javadoc.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
local common = import '../common.jsonnet',
local utils = import '../common-utils.libsonnet',
local linux_amd64 = common["linux-amd64"],

local javadoc_publisher = {
name: 'graal-publish-javadoc-' + utils.prefixed_jdk(self.jdk_version),
run+: [
["cd", "./sdk"],
["mx", "build"],
["mx", "javadoc"],
["zip", "-r", "javadoc.zip", "javadoc"],
["cd", "../truffle"],
["mx", "build"],
["mx", "javadoc"],
["zip", "-r", "javadoc.zip", "javadoc"],
["cd", "../tools"],
["mx", "build"],
["mx", "javadoc"],
["zip", "-r", "javadoc.zip", "javadoc"],
["cd", "../compiler"],
["mx", "build"],
["mx", "javadoc", "--projects", "org.graalvm.graphio"],
["cd", "src/org.graalvm.graphio/"],
["zip", "-r", "../../graphio-javadoc.zip", "javadoc"],
["cd", "../../.."],
["set-export", "GRAAL_REPO", ["pwd"]],
["cd", ".."],
["git", "clone", ["mx", "urlrewrite", "https://github.com/graalvm/graalvm-website.git"]],
["cd", "graalvm-website"],
["rm", "-rf", "sdk/javadoc", "truffle/javadoc", "tools/javadoc", "graphio/javadoc"],
["git", "status" ],
["unzip", "-o", "-d", "sdk", "$GRAAL_REPO/sdk/javadoc.zip"],
["unzip", "-o", "-d", "truffle", "$GRAAL_REPO/truffle/javadoc.zip"],
["unzip", "-o", "-d", "tools", "$GRAAL_REPO/tools/javadoc.zip"],
["unzip", "-o", "-d", "graphio", "$GRAAL_REPO/compiler/graphio-javadoc.zip"],
["git", "add", "sdk/javadoc", "truffle/javadoc", "tools/javadoc", "graphio/javadoc"],
["git", "config", "user.name", "Javadoc Publisher"],
["git", "config", "user.email", "[email protected]"],
["git", "diff", "--staged", "--quiet", "||", "git", "commit", "-m", ["echo", "Javadoc as of", ["date", "+%Y/%m/%d"]]],
["git", "push", "origin", "HEAD"]
],
notify_groups:: ["javadoc"],
timelimit : "30:00"
},

local all_builds = [
common.post_merge + linux_amd64 + common.oraclejdk8 + javadoc_publisher,
],
// adds a "defined_in" field to all builds mentioning the location of this current file
builds:: [{ defined_in: std.thisFile } + b for b in all_builds]
}
2 changes: 1 addition & 1 deletion compiler/ci_common/benchmark-suites.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
],
timelimit: "45:00",
forks_batches:: 1,
forks_timelimit:: "02:45:00",
forks_timelimit:: "04:00:00",
min_jdk_version:: 8,
max_jdk_version:: null
},
Expand Down
14 changes: 7 additions & 7 deletions compiler/ci_includes/gate.jsonnet
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
local common = (import '../../common.jsonnet'),
local common = import '../../common.jsonnet',
local utils = import '../../common-utils.libsonnet',
local config = import '../../repo-configuration.libsonnet',
local linux_amd64 = common["linux-amd64"],

local gateMathStubsListener = common.daily + linux_amd64 + common.oraclejdk8 + {
name: 'daily-hotspot-mathstubs-listener',
local gate_math_stubs_listener = {
name: 'daily-hotspot-mathstubs-listener-' + utils.prefixed_jdk(self.jdk_version),
environment+: {
"HOTSPOT_PORT_SYNC_CHECK" : "true"
},
Expand All @@ -14,12 +15,11 @@
run+: [
["mx", "build"]
],
notify_emails: [
"[email protected]"
],
timelimit : "10:00",
notify_groups:: ["compiler_stubs"],
},

builds: [
gateMathStubsListener,
common.daily + linux_amd64 + common.oraclejdk8 + gate_math_stubs_listener,
]
}
2 changes: 1 addition & 1 deletion graal-common.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"README": "This file contains definitions that are useful for the hocon and jsonnet CI files of the graal and graal-enterprise repositories.",
"ci": {
"overlay": "b6feed939cb56920c218bad4cd64e2f475eaacf1"
"overlay": "32cfe3bc1cae2b79569d17017dc83ba8d494a4c9"
},
"mx_version" : "HEAD"
}

0 comments on commit 091d31a

Please sign in to comment.