Skip to content

ci: Use renovate to update semantic conventions gem#2056

Draft
kaylareopelle wants to merge 2 commits intoopen-telemetry:mainfrom
kaylareopelle:use-renovate-for-semconv-updates
Draft

ci: Use renovate to update semantic conventions gem#2056
kaylareopelle wants to merge 2 commits intoopen-telemetry:mainfrom
kaylareopelle:use-renovate-for-semconv-updates

Conversation

@kaylareopelle
Copy link
Copy Markdown
Contributor

This is a new action using Renovate to help us update the Semantic Conventions gem when new versions are released:

  • We use renovate to check to see if a new version has been released
  • Then, we use a GHA workflow to run the rake task to make the update
  • The GH version of renovate doesn't have access to Docker, so we leverage GHA's access to run weaver
  • Renovate's original version change PR gets updated with the rest of the changes

We should release versions 1.38 and 1.39 before we merge this PR. It will run on only the latest version (which at this time is 1.40)

We use renovate to check to see if a new version has been released.

Then, we use a GHA workflow to run the rake task to make the update.

The GH version of renovate doesn't have access to Docker, so we leverage
GHA's access to run weaver.
@kaylareopelle kaylareopelle changed the title Use renovate to update semconv ci: Use renovate to update semantic conventions gem Mar 16, 2026
Also, alphabetize the words
Copy link
Copy Markdown
Contributor

@thompson-tomo thompson-tomo left a comment

Choose a reason for hiding this comment

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

@kaylareopelle I have proposed config so that it would raise multiple pr's if there is multiple new versions.

Comment on lines +7 to +18
"regexManagers": [
{
"fileMatch": ["^semantic_conventions/Rakefile$"],
"matchStrings": [
"SPEC_VERSION = '(?<currentValue>.*?)'"
],
"depNameTemplate": "open-telemetry/semantic-conventions",
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver",
"extractVersionTemplate": "^v(?<version>.*)$"
}
],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"regexManagers": [
{
"fileMatch": ["^semantic_conventions/Rakefile$"],
"matchStrings": [
"SPEC_VERSION = '(?<currentValue>.*?)'"
],
"depNameTemplate": "open-telemetry/semantic-conventions",
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver",
"extractVersionTemplate": "^v(?<version>.*)$"
}
],
"customManagers": [
{
"customType": "regex",
"description": "Update Semantic Conventions version in Rake files",
"managerFilePatterns": ["^semantic_conventions/Rakefile$"],
"matchStrings": [
"SPEC_VERSION = '(?<currentValue>.*?)'"
],
"depNameTemplate": "open-telemetry/semantic-conventions",
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver",
"extractVersionTemplate": "^v(?<version>.*)$"
}
],

"matchUpdateTypes": ["minor", "major"],
"schedule": ["before 8am on Monday"]
},
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
{
{
"separateMultipleMinor": true,
"separateMinorPatch": true,
"schedule": ["at any time"],

token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@dffb23f65a78bba8db45d387d5ea1bbd6be3ef18 # v1.293.0

if: startsWith(github.head_ref, 'renovate/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants