Skip to content

Commit e38604e

Browse files
committed
[GR-59260] TRegex: add weekly coverage build.
PullRequest: graal/19273
2 parents 0c71d60 + 450b0c4 commit e38604e

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

regex/ci/ci.jsonnet

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,30 @@
4141
targets: ["gate"],
4242
},
4343

44+
local regex_coverage = regex_common + {
45+
name: 'weekly-regex-coverage-' + self.jdk_name,
46+
run: [
47+
['mx', 'gate', '--tags', 'build,coverage', '--jacoco-omit-excluded', '--jacoco-relativize-paths', '--jacoco-omit-src-gen', '--jacoco-format', 'lcov', '--jacocout', 'coverage']
48+
],
49+
teardown+: [
50+
['mx', 'sversions', '--print-repositories', '--json', '|', 'coverage-uploader.py', '--associated-repos', '-'],
51+
],
52+
targets: ["weekly"],
53+
notify_emails: ["josef.haider@oracle.com"],
54+
},
55+
56+
4457
local _builds = [utils.add_gate_predicate(b, ["sdk", "truffle", "regex", "compiler", "vm", "substratevm"]) for b in std.flattenArrays([
45-
[
46-
common.linux_amd64 + jdk + regex_gate,
47-
common.linux_amd64 + jdk + regex_downstream_js,
48-
common.darwin_aarch64 + jdk + regex_gate_lite,
49-
] for jdk in [
50-
common.labsjdkLatest,
51-
]
52-
])],
58+
[
59+
common.linux_amd64 + jdk + regex_gate,
60+
common.linux_amd64 + jdk + regex_downstream_js,
61+
common.darwin_aarch64 + jdk + regex_gate_lite,
62+
] for jdk in [
63+
common.labsjdkLatest,
64+
]
65+
]) +
66+
[common.linux_amd64 + common.labsjdk21 + regex_coverage]
67+
],
5368

5469
builds: utils.add_defined_in(_builds, std.thisFile),
5570
}

regex/mx.regex/mx_regex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def _tregex_tests_gate_runner(args, tasks):
5151
with Task('UnitTests', tasks, tags=['default', 'all'], report=True) as t:
5252
if t:
5353
unittest(['--enable-timing', '--very-verbose', 'com.oracle.truffle.regex'], test_report_tags={'task': t.title})
54+
with Task("CoverageTests", tasks, tags=['coverage'], report=True) as t:
55+
if t:
56+
unittest(['com.oracle.truffle.regex'], test_report_tags={'task': t.title})
5457

5558

5659
mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmLanguage(

0 commit comments

Comments
 (0)