Skip to content

Commit

Permalink
[GR-53338] Run corresponding gates when md files are changed that are…
Browse files Browse the repository at this point in the history
… checked against code.

PullRequest: graal/17665
  • Loading branch information
jchalou committed May 24, 2024
2 parents e93114e + fb159c2 commit 7fcf2df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions ci/ci_common/common.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ common + common.frequencies + {
#
# To avoid skipping the deployment of some artifacts, only `gate` jobs and
# post-merges that do not have the `deploy` target are considered.
add_excludes_guard(build):: build
+ (
add_excludes_guard(build):: (
if (std.length(std.find('gate', build.targets)) > 0 || std.length(std.find('deploy', build.targets)) == 0) then {
guard+: {
excludes+: ["*.md",
guard: {
excludes: ["*.md",
"<graal>/*.md",
"<graal>/ci/**.md",
"<graal>/compiler/**.md",
Expand All @@ -45,7 +44,7 @@ common + common.frequencies + {
]
}
} else {}
),
) + build,

# Add the specified components to the field `components`.
with_components(builds, components)::
Expand Down
4 changes: 2 additions & 2 deletions sdk/ci/ci.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
],
targets: ["gate"],
timelimit: "30:00",
guard: {
includes: ["<graal>/sdk/**", "**.jsonnet"] + utils.top_level_ci,
guard+: {
includes+: ["<graal>/sdk/**", "**.jsonnet"] + utils.top_level_ci,
}
},

Expand Down
4 changes: 2 additions & 2 deletions truffle/ci/ci.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},

local guard = {
guard: {
includes: ["<graal>/sdk/**", "<graal>/truffle/**", "**.jsonnet"] + top_level_ci,
guard+: {
includes+: ["<graal>/sdk/**", "<graal>/truffle/**", "**.jsonnet"] + top_level_ci,
}
},

Expand Down

0 comments on commit 7fcf2df

Please sign in to comment.