Empty release notes in MRs for gitlabci include: component updates #42700
Unanswered
chauncey-garrett
asked this question in
Request Help
Replies: 1 comment
-
|
Hi there, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Renovate MRs that update
include: component:references in.gitlab-ci.ymlshow an empty Release Notes section — just theCompare Sourcelink, no body — even though the target component project has both a populatedCHANGELOG.mdand GitLab Releases with rich descriptions.Example of what the MR body looks like (generated by Renovate for a
@1→@2component bump):Expected: a body containing the release description (or
CHANGELOG.mdsection).Environment
gitlab.comrenovate datasource::gitlab-tagsgitlabci(the component is referenced viainclude: - component: $CI_SERVER_FQDN/group/project/component@1)CHANGELOG.mdat repo root, GitLab Releases with tag-based descriptions (created by therelease:keyword)What I looked at (source reading only)
I have not produced a confirmed minimal reproduction yet — these are observations from reading the source. Happy to produce one if this is interesting enough to pursue.
lib/modules/manager/gitlabci/extract.tscorrectly parsesinclude: - component: …@refand emits a dep withdatasource: gitlab-tags,depName: <projectPath>,registryUrls: [https://<fqdn>].sourceUrlis not set on the dep, but…lib/modules/datasource/gitlab-tags/index.ts:57populatessourceUrlin theReleaseResultviagetSourceUrl(packageName, registryUrl).lib/workers/repository/process/lookup/index.ts:197–210) copiessourceUrlfrom the datasource result to the branch upgrade config.GitLabChangeLogSourceis registered inapi.ts, andlib/workers/.../changelog/gitlab/index.tshas bothgetReleaseNotesMd(changelog file) andgetReleaseList(Releases API) implemented.So the infrastructure looks wired up. I could not pinpoint from source alone which path is short-circuiting for this dep type. Candidates I considered but could not confirm:
getReleaseNotesMdfindsCHANGELOG.mdbut the heading-match loop inrelease-notes.ts:370–438fails because release-it-generated changelog headings are## [2.0.0] - 2026-04-16(bracketed), and thetitle.includes(version)check against tokens split by space might not match in some cases.getExactReleaseMatch/ fallback inrelease-notes.ts:161–185fails because the Releases APItag_nameis a bare2.0.0with no depName prefix.I may be wrong about both. Both are speculative.
What would help
If a maintainer can point at the most likely failure path for this exact setup (gitlabci + gitlab-tags datasource + target project has both CHANGELOG.md and GitLab Releases), I can build a minimal reproduction and file a focused PR. Without that, I'd be guessing.
AI assistance disclosure
Source reading and this discussion draft were done with Claude (Anthropic). Conclusions are from reading the code — I have not run Renovate locally against a reproduction. Claude also flagged one candidate root cause (partial-version handling in
semver-partial.isGreaterThan) that on deeper review did not hold — including this for transparency in case it saves someone a detour.Beta Was this translation helpful? Give feedback.
All reactions