Skip to content

Use monocart for coverage reports, enable codecov - #58850

Merged
Jake Bailey (jakebailey) merged 26 commits into
microsoft:mainfrom
jakebailey:coverage
Jul 17, 2024
Merged

Jake Bailey (jakebailey) merged 26 commits into
microsoft:mainfrom
jakebailey:coverage

Conversation

@jakebailey

Copy link
Copy Markdown
Member

This is an experimental addition to c8, but works really well.

The v8 HTML page it outputs can load checker.ts without batting an eye, and has sub-expression fidelity and can see uncovered elses:

image

image

Comment thread .c8rc.json Outdated
@jakebailey

Copy link
Copy Markdown
Member Author

I'm going to revert the CI and codecov change until we can get faster runners to not double our CI time. The local thing is fine, though, so I'll leave that working. I'll also do a benchmark quick to see how the report collection changes.

@jakebailey

Copy link
Copy Markdown
Member Author

The new runner pool is fast enough to give us coverage without slowing down CI.

Comment thread .c8rc.json
@jakebailey
Jake Bailey (jakebailey) marked this pull request as ready for review June 19, 2024 22:11
@jakebailey

Copy link
Copy Markdown
Member Author

Marked this PR as ready for review. Now that the CI perf is mitigated, should we just go ahead and enable codecov?

@jakebailey Jake Bailey (jakebailey) changed the title Use monocart for coverage reports Use monocart for coverage reports, enable codecov Jun 25, 2024
@jakebailey

Jake Bailey (jakebailey) commented Jun 26, 2024 •

Copy link
Copy Markdown
Member Author

A caveat is that c8 with monocart takes ~4x longer to run than c8 alone; reported cenfun/monocart-coverage-reports#47 and the profile is somewhat promising for improving this.

Now just 2x slower.

@jakebailey
Jake Bailey (jakebailey) merged commit ba46eca into microsoft:main Jul 17, 2024
@jakebailey
Jake Bailey (jakebailey) deleted the coverage branch July 17, 2024 21:56
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants