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

Enhance the libyear output in Renovate logs #33937

Closed
rarkins opened this issue Jan 30, 2025 · 3 comments · Fixed by #33981
Closed

Enhance the libyear output in Renovate logs #33937

rarkins opened this issue Jan 30, 2025 · 3 comments · Fixed by #33981
Assignees
Labels
priority-2-high Bugs impacting wide number of users or very important features type:feature Feature (new functionality)

Comments

@rarkins
Copy link
Collaborator

rarkins commented Jan 30, 2025

Discussed in #33826

Originally posted by justo-mend January 24, 2025

Background

Recently, Renovate CLI was enhanced to capture and report on dependency health using libyears.
[More info about libyears can be found here. - "A simple measure of software dependency freshness. It is a single number telling you how up-to-date your dependencies are."]

Proposal

Enhance the libyears calculations in Renovate CLI in the following ways:

  1. De-duplicate dependencies - to avoid double-counting the libyears of an individual package
  2. Provide additional related information about the dependencies in the repo

Duplication

Sometimes a package and its version are declared in more than one package file, resulting in duplication.
Rather than counting the libyears for those dependencies multiple times, it would be best to de-duplicate the packages so that each distinct package is counted only once.

Additional information

Information captured and reported about dependency health could be extended to include other useful information, including:

  • Total number of dependencies
  • Total number of out-of-date dependencies
    This can help provide a better picture of the state of the repository's dependency health.
@rarkins rarkins added priority-2-high Bugs impacting wide number of users or very important features type:feature Feature (new functionality) labels Jan 30, 2025
@rarkins rarkins assigned rarkins and RahulGautamSingh and unassigned rarkins Jan 30, 2025
@RahulGautamSingh
Copy link
Collaborator

RahulGautamSingh commented Jan 30, 2025

Total number of dependencies

If there is a dep in two package files with diffferent version in each. Should it be counted once or twice?

And, if it is counted once. Should we take the lowest or highest version for libYears calculation?

@rarkins
Copy link
Collaborator Author

rarkins commented Jan 30, 2025

Count separately if using different versions

@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 39.154.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-2-high Bugs impacting wide number of users or very important features type:feature Feature (new functionality)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants