Skip to content

Commit fefe7cf

Browse files
authored
coverage: remove dependency on bisect_ppx (#6807)
This infrastructure has been unused for many years (I think it only ever worked for some months during 2019), and it's making ocaml 5.4 difficult to adopt, so drop it. I'm leaving the instrumentation in the dune metadata because it's disabled by default, and the document about coverage, because it's a historical document.
2 parents bc541ee + 278358b commit fefe7cf

9 files changed

Lines changed: 1 addition & 202 deletions

File tree

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ build:
2121
check:
2222
dune build @check -j $(JOBS)
2323

24-
coverage:
25-
dune runtest --instrument-with bisect_ppx --force --profile=$(RELEASE) -j $(JOBS)
26-
bisect-ppx-report html
27-
bisect-ppx-report summary --per-file
28-
2924
clean:
3025
dune clean
3126

dune-project

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,6 @@
858858
(alcotest :with-test)
859859
astring
860860
base-unix
861-
(bisect_ppx :with-test)
862861
(clock
863862
(and
864863
(= :version)

ocaml/libs/xapi-stdext/lib/xapi-fd-test/dune

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
(library
33
(name xapi_fd_test)
44
(libraries clock (re_export xapi-stdext-unix.fdcaps) unix qcheck-core logs fmt (re_export mtime) mtime.clock.os rresult threads.posix)
5-
6-
; off by default, enable with --instrument-with bisect_ppx
75
(instrumentation (backend bisect_ppx))
86
)

ocaml/libs/xapi-stdext/lib/xapi-fdcaps/dune

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@
55
(name xapi_fdcaps)
66
(libraries fmt unix threads.posix)
77
(flags (:standard -principal))
8-
9-
; off by default, enable with --instrument-with bisect_ppx
108
(instrumentation (backend bisect_ppx))
119
)

ocaml/xapi-idl/lib/coverage/disabled.ml

Lines changed: 0 additions & 3 deletions
This file was deleted.

ocaml/xapi-idl/lib/coverage/enabled.ml

Lines changed: 0 additions & 141 deletions
This file was deleted.

ocaml/xenopsd/COVERAGE.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

opam/xapi-stdext-unix.opam

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ depends: [
1212
"alcotest" {with-test}
1313
"astring"
1414
"base-unix"
15-
"bisect_ppx" {with-test}
1615
"clock" {= version & with-test}
1716
"fd-send-recv" {>= "2.0.0"}
1817
"fmt"

quality-gate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ verify-cert () {
2525
}
2626

2727
mli-files () {
28-
N=459
28+
N=457
2929
X="ocaml/tests"
3030
X+="|ocaml/quicktest"
3131
X+="|ocaml/message-switch/core_test"

0 commit comments

Comments
 (0)