-
Notifications
You must be signed in to change notification settings - Fork 483
Add code coverage tooling (bisect_ppx) #8416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JonoPrest
wants to merge
5
commits into
rescript-lang:master
Choose a base branch
from
JonoPrest:jono/add-coverage
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
410b516
Add bisect_ppx coverage scaffolding
JonoPrest 1efd71e
Move cppo preprocessing from library-wide to per-file rules
JonoPrest 0484ee1
Fix bisect-ppx-report flags in coverage Makefile targets
JonoPrest e492895
Update .ocamlformat-ignore for renamed cppo files
JonoPrest a36eab0
Simplify coverage Makefile to one user-facing target
JonoPrest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,4 @@ | ||
| compiler/js_parser/** | ||
| compiler/ml/cmt_format.ml | ||
| compiler/core/js_name_of_module_id.ml | ||
| compiler/core/js_pass_debug.ml | ||
| compiler/core/lam_util.ml | ||
| compiler/core/lam_compile_main.ml | ||
| compiler/ext/bs_hash_stubs.ml | ||
| compiler/ext/js_reserved_map.ml | ||
| compiler/ext/ext_string.ml | ||
| compiler/ext/ext_string.mli | ||
| compiler/ext/ext_sys.ml | ||
| compiler/ext/hash.cppo.ml | ||
| compiler/ext/hash_set.cppo.ml | ||
| compiler/ext/map.cppo.ml | ||
| compiler/ext/ordered_hash_map.cppo.ml | ||
| compiler/ext/set.cppo.ml | ||
| compiler/ext/vec.cppo.ml | ||
| **/*.cppo.ml | ||
| **/*.cppo.mli | ||
| compiler/syntax/compiler-libs-406/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,6 @@ | |
| (package analysis) | ||
| (modes byte exe) | ||
| (name main) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (libraries analysis)) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| (library | ||
| (name analysis) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (-w "+6+26+27+32+33+39")) | ||
| (libraries unix str ext ml jsonlib syntax reanalyze)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| (library | ||
| (name common) | ||
| (wrapped false) | ||
| (preprocess | ||
| (action | ||
| (run %{bin:cppo} %{env:CPPO_FLAGS=} %{input-file}))) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (:standard -w +a-9-40-42)) | ||
| (libraries syntax)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,32 @@ | ||
| (library | ||
| (name core) | ||
| (wrapped false) | ||
| (preprocess | ||
| (action | ||
| (run %{bin:cppo} %{env:CPPO_FLAGS=} %{input-file}))) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (:standard -w +a-4-9-27-30-40-41-42-48-70)) | ||
| (libraries depends ext flow_parser frontend gentype)) | ||
|
|
||
| (rule | ||
| (target js_name_of_module_id.ml) | ||
| (deps js_name_of_module_id.cppo.ml) | ||
| (action | ||
| (run %{bin:cppo} %{env:CPPO_FLAGS=} %{deps} -o %{target}))) | ||
|
|
||
| (rule | ||
| (target js_pass_debug.ml) | ||
| (deps js_pass_debug.cppo.ml) | ||
| (action | ||
| (run %{bin:cppo} %{env:CPPO_FLAGS=} %{deps} -o %{target}))) | ||
|
|
||
| (rule | ||
| (target lam_compile_main.ml) | ||
| (deps lam_compile_main.cppo.ml) | ||
| (action | ||
| (run %{bin:cppo} %{env:CPPO_FLAGS=} %{deps} -o %{target}))) | ||
|
|
||
| (rule | ||
| (target lam_util.ml) | ||
| (deps lam_util.cppo.ml) | ||
| (action | ||
| (run %{bin:cppo} %{env:CPPO_FLAGS=} %{deps} -o %{target}))) | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| (library | ||
| (name depends) | ||
| (wrapped false) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (:standard -w +a-4-40-42)) | ||
| (libraries common)) |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| (library | ||
| (name frontend) | ||
| (wrapped false) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (:standard -w +a-4-9-40-42-70)) | ||
| (libraries common ml)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| (library | ||
| (name gentype) | ||
| (wrapped false) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (:standard -w +a-4-9-40-41-42-48-70)) | ||
| (libraries ml)) |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| (library | ||
| (name ml) | ||
| (wrapped false) | ||
| (preprocess | ||
| (action | ||
| (run %{bin:cppo} %{env:CPPO_FLAGS=} %{input-file}))) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (:standard -w +a-4-42-40-41-44-45-9-48-67-70)) | ||
| (libraries ext flow_parser)) | ||
|
|
||
| (rule | ||
| (target cmt_format.ml) | ||
| (deps cmt_format.cppo.ml) | ||
| (action | ||
| (run %{bin:cppo} %{env:CPPO_FLAGS=} %{deps} -o %{target}))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| (library | ||
| (name syntax) | ||
| (wrapped false) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (:standard -w +a-4-42-40-9-48-70)) | ||
| (libraries ml)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| (library | ||
| (name tools) | ||
| (instrumentation | ||
| (backend bisect_ppx)) | ||
| (flags | ||
| (-w "+6+26+27+32+33+39")) | ||
| (libraries analysis cmarkit)) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dune was unabled to have both this preprocess stanza and the ppx stanza. There were such few files actually using cppo flags that I just converted them into per file rules.