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

[chore] change completely how dependabot generates entries #27269

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Sep 29, 2023

Description:
Change entirely how dependabot update entries are generated, by using the metadata.yaml status to find which components are most important in the distribution.

The code now takes into account the distributions and the stability of the component as a score to decide whether to push the component. Go modules that don't have an associated metadata.yaml are not considered and therefore not present in the module updates path.

Link to tracking Issue:
#19410

Testing:
Tested by running make gendependabot

Copy link
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a pretty good idea 👍 . The code LGTM as well

Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a small clarification on a magic number

"github.com/google/go-github/v53/github"
"go.opentelemetry.io/collector/confmap/provider/fileprovider"
)

const maxDependabotUpdates = 220
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a limitation of dependabot? I remember we hit a limit there sometime ago -- is this the one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dmitryax dmitryax merged commit 0db927b into open-telemetry:main Oct 4, 2023
91 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 4, 2023
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
…metry#27269)

**Description:**
Change entirely how dependabot update entries are generated, by using
the metadata.yaml status to find which components are most important in
the distribution.

The code now takes into account the distributions and the stability of
the component as a score to decide whether to push the component. Go
modules that don't have an associated metadata.yaml are not considered
and therefore not present in the module updates path.

**Link to tracking Issue:**

open-telemetry#19410
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants