Skip to content

Commit 4f6860b

Browse files
committed
Find the latest merge commit of the graal repo to find the corresponding import in downstream
* Allows using a non-merge commit for our Truffle import.
1 parent 01644d3 commit 4f6860b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci.jsonnet

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,11 @@ local part_definitions = {
158158
local url = ["mx", "urlrewrite", "https://github.com/graalvm/graal-enterprise.git"],
159159
repo = "../graal-enterprise",
160160
suite_file = "graal-enterprise/mx.graal-enterprise/suite.py",
161-
find_commit_importing_truffle = ["git", "-C", repo, "log", "--reverse", "--pretty=%H", "-m", "-S"] + jt(["truffle_version"]) + ["--grep=PullRequest:", suite_file, "|", "head", "-1"];
161+
merge_commit_in_graal = ["git", "-C", "../graal", "log", "--pretty=%H", "--grep=PullRequest:", "--merges", "-n1"] + jt(["truffle_version"]),
162+
graal_enterprise_commit = ["git", "-C", repo, "log", "--pretty=%H", "--grep=PullRequest:", "--reverse", "-m", "-S", merge_commit_in_graal, suite_file, "|", "head", "-1"];
162163
[
163164
["git", "clone", url, repo],
164-
["git", "-C", repo, "checkout", find_commit_importing_truffle],
165+
["git", "-C", repo, "checkout", graal_enterprise_commit],
165166
],
166167

167168
setup+: self.clone + jt(["build", "--dy", "/graal-enterprise"]),

0 commit comments

Comments
 (0)