Skip to content

Renovate: Include extra context in PRs generated for Docker digest updates #16602

@mthalman

Description

@mthalman

For scenarios like dotnet/runtime#113455, the PRs that are generated by Renovate to update the digest value are a bit obscure. The reviewer doesn't know what triggered the change. It could have been because of a simple rebuild in response to a base image update. Or it could be because something in the Dockerfile had changed, such as an update to the LLVM version. Having this information is helpful to the reviewer so that they can know how to proceed, whether additional ad hoc testing might be necessary, for example.

Renovate doesn't provide that information currently. There would need to be custom implementation to extract this. The most important bit of information is to know what the commit URL of the updated image is. If the commit URL is different, then you know the Dockerfile content has changed and can include a link to the GitHub commit comparison for the Dockerfile. Assuming that the image in question is a .NET image, getting this information would currently require parsing of the image info file, looking up the image digest and getting its commit URL. However, a more proper implementation would be to make use of OCI image annotations that directly provide the commit URL with the image. This would be a dependency on dotnet/docker-tools#1602.

Once the diff information is derived through the custom logic, there would need to be logic that posts that content to the generated PR after Renovate had created it. Renovate doesn't provide hooks to customize the content for a scenario like this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions