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

dashboard/app: show manager unique coverage #5642

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

tarasmadan
Copy link
Collaborator

@tarasmadan tarasmadan commented Dec 21, 2024

Allows to see unique coverage from selected manager.

To get unique coverage, I'm getting 2 data streams from spanner.
First - selected manager data, second - data from all managers.
Fetched data includes line coverage information which is quite expensive.
If some file line was visited 10 times in total and from the specific manager, this line is counted as a unique coverage.

TODO:

@tarasmadan tarasmadan changed the title Only manager dashboard/app: show manager unique coverage Dec 21, 2024
@tarasmadan tarasmadan changed the title dashboard/app: show manager unique coverage [wip] dashboard/app: show manager unique coverage Dec 21, 2024
@tarasmadan tarasmadan force-pushed the only_manager branch 12 times, most recently from b7ab60c to bd4430f Compare January 10, 2025 14:26
@tarasmadan tarasmadan marked this pull request as ready for review January 10, 2025 14:28
@tarasmadan tarasmadan changed the title [wip] dashboard/app: show manager unique coverage dashboard/app: show manager unique coverage Jan 10, 2025
@tarasmadan tarasmadan enabled auto-merge January 10, 2025 14:28
@tarasmadan tarasmadan changed the title dashboard/app: show manager unique coverage [wip] dashboard/app: show manager unique coverage Jan 13, 2025
@tarasmadan tarasmadan force-pushed the only_manager branch 8 times, most recently from a3e20fd to e55a2da Compare January 24, 2025 08:56
@tarasmadan tarasmadan force-pushed the only_manager branch 4 times, most recently from bbd06db to 2800c35 Compare January 24, 2025 15:55
@tarasmadan tarasmadan changed the title [wip] dashboard/app: show manager unique coverage dashboard/app: show manager unique coverage Jan 24, 2025
@tarasmadan tarasmadan force-pushed the only_manager branch 2 times, most recently from 4a7efa0 to 4ff6c0f Compare January 24, 2025 16:19
@tarasmadan
Copy link
Collaborator Author

@dvyukov PTAL

@tarasmadan tarasmadan force-pushed the only_manager branch 9 times, most recently from 7391ee1 to aab044d Compare January 25, 2025 14:48
1. Make heatmap testable, move out the spanner client instantiation.
2. Generate spannerdb.ReadOnlyTransaction mocks.
3. Generate spannerdb.RowIterator mocks.
4. Generate spannerdb.Row mocks.
5. Prepare spannerdb fixture.
6. Fixed html control name + value.
7. Added multiple tests.
8. Show line coverage from selected manager.
9. Propagate coverage url params to file coverage url.
1. Init coveragedb client once and propagate it through context to enable mocking.
2. Always init coverage handlers. It simplifies testing.
3. Read webGit and coveragedb client from ctx to make it mockable.
4. Use int for file line number and int64 for merged coverage.
5. Add tests.
@tarasmadan tarasmadan added this pull request to the merge queue Jan 27, 2025
Merged via the queue into google:master with commit 1807089 Jan 27, 2025
18 checks passed
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.

2 participants