Skip to content

fix(renovate): shorten the otel depname so bumps pass commitlint - #112

Open
TheMeinerLP wants to merge 1 commit into
mainfrom
fix/renovate-long-depname
Open

fix(renovate): shorten the otel depname so bumps pass commitlint#112
TheMeinerLP wants to merge 1 commit into
mainfrom
fix/renovate-long-depname

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Collaborator

Fixes the root cause behind #89.

The failure

✖ header must not be longer than 100 characters, current length is 112  [header-max-length]

Renovate generates:

chore(deps): update ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java docker tag to v2.30.0

112 characters against the 100-character limit this repo enforces in
commitlint.config.mjs. Re-running CI cannot fix #89 — and every future bump
of that image would fail identically.

Why a targeted rule rather than a generic one

The message format is chore(deps): update <depName> docker tag to <version>, which
leaves roughly 57 characters for the depName. I scanned every registry image
reference in apps/, infrastructure/ and helm/:

Length Image
70 ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java

Exactly one of seven exceeds the budget. A generic registry-stripping rule would
not even solve it — dropping ghcr.io/ still leaves 62 characters.

Result

chore(deps): update otel-autoinstrumentation-java docker tag to v2.30.0     # 71 chars

overrideDepName is the documented option for this (Renovate config docs, under
packageRules). Only the display name changes — the image, datasource and version
resolution are untouched.

What happens to #89

overrideDepName also changes the branch name, so Renovate will close #89 and
open a replacement
that is compliant from the start. That is the intended
mechanism, not a side effect — there is nothing to salvage in the existing branch.

Not included

This repo's renovate.json does not extend OneLiteFeather's central preset
(github>OneLiteFeatherNET/renovate:default(<team>)), which the org standard
calls for. Migrating would also bring reviewer assignment, office-hours
scheduling and patch automerge — but it requires choosing the responsible team,
which is not my call. Worth a separate PR.

./scripts/validate.sh exits 0; renovate.json parses.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HzZ7or95EosGNvwceYV5UA

PR #89 cannot be merged and never could: Renovate generates

  chore(deps): update ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java docker tag to v2.30.0

which is 112 characters against the 100-character header-max-length this
repo enforces via commitlint. Every future bump of that image fails the
same way, so re-running CI cannot fix it.

Measured across the repo, the message format leaves roughly 57 characters
for the depName, and exactly one image exceeds it — this one, at 70.
A targeted overrideDepName is therefore proportionate; a generic
registry-stripping rule would not even help, since dropping "ghcr.io/"
still leaves 62.

Result: 71 characters.

Renovate will close #89 and open a replacement, because overrideDepName
also changes the branch name. That is the intended mechanism, not a side
effect — the new PR is compliant from the start.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HzZ7or95EosGNvwceYV5UA
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.

1 participant