Skip to content
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

docs: Describe PR Code Coverage #18814

Merged
merged 1 commit into from
Apr 19, 2023
Merged

Conversation

def-
Copy link
Contributor

@def- def- commented Apr 18, 2023

For reviewing: https://github.com/MaterializeInc/materialize/blob/3878dccf196ea103267e7b34e8864e075d768335/doc/developer/code-coverage.md

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • This PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way) and therefore is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:

Copy link
Contributor

@nrainer-materialize nrainer-materialize left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

doc/developer/code-coverage.md Outdated Show resolved Hide resolved
doc/developer/code-coverage.md Outdated Show resolved Hide resolved
doc/developer/code-coverage.md Outdated Show resolved Hide resolved
doc/developer/code-coverage.md Outdated Show resolved Hide resolved
doc/developer/code-coverage.md Outdated Show resolved Hide resolved
@def-
Copy link
Contributor Author

def- commented Apr 18, 2023

Thanks, addressed your suggestions.


## Motivation

A full [code coverage report](http://65.109.125.29/coverage_01879007-43c4-49db-a81d-a44e93dfb55a/) allows you to check for each part of the code if there is a test that currently covers it by executing the relevant lines of code. Unfortunately the motivation to increase code coverage using full reports is low, and the effort to understand why no existing mzcompose-based test covers the code in question is high.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should avoid linking directly to this machine. I would have suggested that you link to a buildkite artifact, but those can expire , so I do not have a suitable link to suggest as a replacement at this time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also thought about that and don't have a good place to put it yet, but wanted to have a demo report somewhere. Removed the link for now until we have a better solution.

Copy link
Contributor

@philip-stoev philip-stoev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.


![Commit: 69de84971e8c16ab459c88be73870bb676dbc478, Branch: jkosh44:update-privilege-owners](assets/coverage-new-build.png)

After some time your [Coverage run](https://buildkite.com/materialize/coverage/builds/26) will be finished and contain a summary of any uncovered lines in the form of a `git diff` where each removed line is not covered:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about this the other day. It may be easier to explain this if we used git diff --output-indicator-old=! , to use "!", a neutral yet alarming symbol, so that people are not confused by the "-". This will slightly reduce the cognitive load required to process the diff. (no need to do this in this PR)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great suggestion 👍, I was also thinking about replacing the - with something else (but was not aware that this can already be specified in the git command).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, that confused people already, will do so in follow-up.

@def- def- enabled auto-merge April 19, 2023 09:11
@def- def- merged commit 2836f89 into MaterializeInc:main Apr 19, 2023
@def- def- deleted the pr-coverage-doc branch April 19, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants