Repository navigation
Description
Problem to solve
Continuing our theme of iterating towards a more patch-focused UX, we face a related issue in the broader context of project-related checks in GitHub and the indirect changes tab in the app. Similar to the confusion noted in PR comments (#1072) – where reduced project coverage is displayed despite 100% patch coverage due to line count recalculations – these project related changes has lead to continual confusion and distractions for our users, particulatiliy when patch coverage is shown as 100%.
Proposed solution
For a more patch focused UX and to minimize confusion, we propose making both the project-related checks in GitHub and the 'indirect changes' tab in the app opt-in features. This change allows users who benefit from these features to actively choose to use them, while others can default to a more focused patch UX.
Under review: initial iteration focus
Adjust default YAML settings:
- Modify the default YAML configuration to exclude project coverage by default; applies to new projects and repositories with default YAML.
- Repositories with manually configured project coverage will remain unchanged.
Impact on PR comments and in-app display:
- PR comments will no longer display project coverage % for new and default YAML repositories. Including the GitHub project check will not display.
- In the app,
indirect changessection will not display for new and default YAML repositories.- In scope for initial or more likely later iteration?
Resulting PR comment (lines missing):
Resulting PR comment (no lines missing):

In-app indirect changes removed:

Question/notable: how to handle the change in the in-app summary. Since indirect changes files are not there, then calculations seen in summary should only reflect that of patch file changes aggregate. Thoughts?
Support for Opted-In Project Coverage:
- Update copy for users with project coverage enabled, seen in
indirect changes, guiding them to documentation for common issues and/or could even promote upcoming features like flaky test identification.
Documentation and opt-in guidance:
- Update documentation for users to understand how to opt-in to project coverage and related indirect file changes if desired.
Data monitoring and feedback
- Track the conversion rate of new repositories adopting project coverage post-default change.
- Gather feedback from users of existing repositories with default settings who may seek to reinstate project coverage.
- Launch a feedback solicitation issue targeting users affected by the default YAML change to assess impact and sentiment.
- Based on initial feedback and data, consider follow up iteration introducing in-app awareness features and prompts to further support customization and user understanding of data/options.
draft proposal / notes
Related action Items:
- Implement an opt-in for project-related checks in GitHub (yaml? by removing project by default?)
- how to handle existing users - or would the default off only apply to new orgs/repos?
- iteation: change yaml to remove project coverage by default + if any repos haven't assigned project coverage manually then it's removed by default. But first iteration to set this way only for new project + default yaml.
- how to handle existing users - or would the default off only apply to new orgs/repos?
- Enable users to opt-in to view the 'indirect changes' tab in the app (yaml? or in-app settings?)
- What is the default of those using project coverage? is indirect changes included or a two-step thing.
- iteration: in-app for repos that doesn't have project coverage then don't show it
- indication: if project coverage is set then it shows, if not it does not
- data question: how many repos have default yaml vs have manually set project?
- for opted-in project coverage, could question do these report not look right? then link to docs showing issues. also could promote flaky test etc
- Provide guidance and documentation for users on how to opt-in to these features (+ in-app awareness?).
Activity
[-]ToDo issue around indirect changes: user perception and related feedback[/-][+]Make indirect changes and project changes check opt-in[/+][-]Make indirect changes and project changes check opt-in[/-][+]Discovery: Make indirect changes and project changes check opt-in[/+]codecovdesign commentedon Feb 1, 2024
Initial change under review summary w/ @trent-codecov @giovanni-guidini
engineering
- this affects the ALL repos configured past/new default yaml. Initially, we were looking at it being only new repos, though the tradeoff is more work/investigation for only new repos.
- does not override custom yamls
- 🤔 ISSUE to resolve: Project and patch checks set in GitHub (not Codecov YAML) can fail without project coverage data. We can't see these settings (unless, do we have visiblity to the repo setting from GH api?), and therefore default YAML repos might face breaking changes with our update.
- have a specific feedback issue to show on these repos
Other ToDos:
rohan-at-sentry commentedon Feb 21, 2024
To clarify, we're scoping #1078 to new users and new repos only.
I would recommend we scope this issue similarly and take a holistic look on incremental roll out after
codecovdesign commentedon Feb 22, 2024
@rohan-at-sentry this is one of the challenges the team was working through:
codecovdesign commentedon Feb 27, 2024
Sync with @giovanni-guidini and @rohan-at-sentry 2/27
codecovdesign commentedon Mar 6, 2024
adding potentially related issue: #1303
relation here is to look at having a different default yaml on the team plan to remove project; could leverage logic done and/or if project is removed by default as in this project that helps, but still need to determine / close possiblity of pro plan comment is shown on team (in case user adds to yaml)
codecovdesign commentedon Mar 20, 2024
Sync with @giovanni-guidini @rohan-at-sentry @eliatcodecov @trent-codecov 3/20
codecovdesign commentedon Jul 22, 2024
closing issue as it's been resolved: new project/orgs moving forward do not have project check by default