Skip to content

Commit 0e3ca6a

Browse files
committed
WIP
1 parent 73493e1 commit 0e3ca6a

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

ci/nightly/coverage.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def main() -> int:
4444
[
4545
"--find",
4646
composition,
47-
"--coverage",
4847
"down",
4948
"-v",
5049
]
@@ -56,21 +55,35 @@ def main() -> int:
5655
"rust-profdata",
5756
"merge",
5857
"-sparse",
59-
*Path("test/sqllogictest/coverage").glob("sqllogictest*.profraw"),
58+
*Path("test/sqllogictest/coverage").glob("*.profraw"),
6059
"-o",
6160
"sqllogictest.profdata",
6261
]
6362
)
64-
with open("coverage-sqllogictest.json", "w") as out:
63+
with open("coverage-sqllogictest.lcov", "w") as out:
6564
subprocess.run(
6665
[
6766
"rust-cov",
6867
"export",
68+
"--format=lcov",
6969
"./target-xcompile/x86_64-unknown-linux-gnu/release/sqllogictest",
70+
"./target-xcompile/x86_64-unknown-linux-gnu/release/clusterd",
7071
"--instr-profile=sqllogictest.profdata",
7172
],
7273
stdout=out,
7374
)
75+
# XXX may need to do this with the volumes still around
76+
with open("coverage-sqllogictest.html", "w") as out:
77+
subprocess.run(
78+
[
79+
"rust-cov",
80+
"show",
81+
"--format=html",
82+
"./target-xcompile/x86_64-unknown-linux-gnu/release/sqllogictest",
83+
"--instr-profile=sqllogictest.profdata",
84+
],
85+
stdout=out
86+
)
7487

7588
return 0
7689

misc/python/materialize/mzcompose/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ def _munge_services(
195195
# this only have an effect if the service runs instrumented Rust
196196
# binaries.
197197
config.setdefault("volumes", []).append(coverage_volume)
198+
# XXX may need to change this per-binary, so perhaps
199+
# we shouldn't set this here.
198200
config.setdefault("environment", []).append(
199201
f"LLVM_PROFILE_FILE=/coverage/{name}-%m.profraw"
200202
)

0 commit comments

Comments
 (0)