Skip to content

Discovery: Make indirect changes and project changes check opt-in #1058

Closed

Description

@codecovdesign

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 changes section will not display for new and default YAML repositories.
    • In scope for initial or more likely later iteration?

Resulting PR comment (lines missing):

Screenshot 2024-01-30 at 11 47 02 AM

Resulting PR comment (no lines missing):
Screenshot 2024-01-30 at 8 49 28 AM

In-app indirect changes removed:
Screenshot 2024-01-30 at 8 56 37 AM

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.
Screenshot 2024-01-30 at 9 02 40 AM

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.
  • 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

  1. added
    in discovery
    on Jan 22, 2024
  2. changed the title [-]ToDo issue around indirect changes: user perception and related feedback[/-] [+]Make indirect changes and project changes check opt-in[/+] on Jan 22, 2024
  3. changed the title [-]Make indirect changes and project changes check opt-in[/-] [+]Discovery: Make indirect changes and project changes check opt-in[/+] on Jan 25, 2024
  4. added this to the Q1'24 milestone on Jan 30, 2024
  5. codecovdesign commented on Feb 1, 2024

    @codecovdesign
    ContributorAuthor

    Initial change under review summary w/ @trent-codecov @giovanni-guidini

    engineering

    • update default yaml to remove project coverage and check
      - 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
    • update UI to link to documentation and/or opt-in status (repo > settings
      • design ToDo
    • documentation to outline opt-in / default clarification for repo configured after X-time

    Other ToDos:

    • create investigation ticket to ensure team plan per comment is 1) showing as intended and 2) if team plan what is there yaml and can they override the settings (ideally there is a non-configurable team plan default yaml)
    • longer term explore a PR comment builder that allows user to build yaml and see resulting/expected visual (add to existing config ticket)
    • Cont'd with Joe to audit yaml + Gio
  6. rohan-at-sentry commented on Feb 21, 2024

    @rohan-at-sentry

    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

  7. codecovdesign commented on Feb 22, 2024

    @codecovdesign
    ContributorAuthor

    we're scoping #1078 to new users and new repos only.

    @rohan-at-sentry this is one of the challenges the team was working through:

    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.

  8. codecovdesign commented on Feb 27, 2024

    @codecovdesign
    ContributorAuthor

    Sync with @giovanni-guidini and @rohan-at-sentry 2/27

    • Reevaluated ability / direction of applying new configuration to new repos only
      • depending on eng investigation cc @trent-codecov
    • Design todo: opt-in flow / awareness for related repos
    • Realign in three weeks as/if needed, tentative sync 3/20
  9. codecovdesign commented on Mar 6, 2024

    @codecovdesign
    ContributorAuthor

    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)

  10. codecovdesign commented on Mar 20, 2024

    @codecovdesign
    ContributorAuthor

    Sync with @giovanni-guidini @rohan-at-sentry @eliatcodecov @trent-codecov 3/20

    • Apply new default yaml (project opt-in) to new orgs + repos
      • tradeoff: harder implementation, but less friction to existing customers (since there could be breaking changes to checks)
      • change: 1) remove project from default yaml, 2) conditionally removes indirect changes
    • Update docs to reflect the new default yaml
      • Make the default state of yaml clear (UI / settings etc)
      • Docs should communicate tradeoffs of using / not using project opt-in, link to docs (later iteration)
  11. added
    Dev-Ready
    and removed
    in discovery
    on Jul 22, 2024
  12. codecovdesign commented on Jul 22, 2024

    @codecovdesign
    ContributorAuthor

    closing issue as it's been resolved: new project/orgs moving forward do not have project check by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Dev-ReadyP0: must do

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions