Skip to content

DISCOVERY: Identifying and Managing Unnecessary or Duplicated Dependencies #1420

Open

Description

@codecovdesign

Problem to solve

Particularly in projects with extensive dependencies, it becomes increasingly challenging to manage and optimize these dependencies efficiently. Two specific problems frequently arise:

  • Duplicate dependencies: projects often accumulate duplicate dependencies over time. These can occur due to various reasons, such as different team members adding the same dependency for different features or through nested dependencies in package management. This duplication unnecessarily inflates bundle sizes, impacting application performance and load times.
  • Replaceable dependencies: as projects evolve, some dependencies may become obsolete or less efficient than newer alternatives. However, identifying these replaceable dependencies, evaluating alternatives, and understanding the impact of replacement on the project can be complex and time-consuming.

When I am reviewing my project's dependencies, I want to easily identify any duplicate dependencies and understand if there are more efficient alternatives to my current dependencies, so I can optimize my project's performance and maintainability by reducing bloat and ensuring the use of the most efficient libraries available.

GH-1420.mp4

Discovery exploration

  • Dependency Analysis: implement a feature that scans the project's dependencies to identify any duplicates or dependencies that are no longer used.
  • Impact estimation: offer insights into how each dependency (or its removal) impacts the bundle size.
  • Optimization suggestions: provide actionable recommendations for removing or consolidating dependencies without sacrificing functionality.

Activity

  1. changed the title [-]INSIGHT: help user identify duplicate assets/components[/-] [+]DISCOVERY: identifying and Managing Unnecessary or Duplicated Dependencies[/+] on Mar 14, 2024
  2. changed the title [-]DISCOVERY: identifying and Managing Unnecessary or Duplicated Dependencies[/-] [+]DISCOVERY: Identifying and Managing Unnecessary or Duplicated Dependencies[/+] on Mar 14, 2024
  3. added
    Dev-Ready
    in discovery
    and removed
    Dev-Ready
    on Mar 14, 2024
  4. rohan-at-sentry commented on Apr 24, 2024

    @rohan-at-sentry

    my feeling is that this is better suited to a "bundle management" use case vs reporting and gating commits based on changes in overall bundle size or some deps

  5. codecovdesign commented on Aug 7, 2024

    @codecovdesign
    ContributorAuthor

    related feedback to consider from slack @armen G.:

    I think it's even more important to show it when we know dependency trees are changed. Customers may be adding a ton load of code when adding a single package

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in discovery

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions