GitLab: setBranchStatus crashes ("err.body?.message?.startsWith is not a function") when GitLab rejects the stability-status target_url #44110
-
How are you running Renovate?Self-hosted Renovate CLI Which platform you running Renovate on?GitLab (.com or self-hosted) Which version of Renovate are you using?43.233.3 Please tell us more about your question or problemThere are two bugs here. A GitLab platform change exposed bug (1), and bug (2) turns a recoverable API error into an aborted branch. Summary On a self-hosted GitLab ( The root cause is the Bug 1 — In const docsLink = joinUrlParts(
coerceString(config.productLinks?.documentation),
'key-concepts/minimum-release-age/',
);When GitLab 19.0.2+ validates (Older GitLab accepted the relative value, which is why this only started failing after a GitLab upgrade.) Bug 2 — In if (
err.body?.message?.startsWith(
'Cannot transition status via :enqueue from :pending',
)
) { ... }GitLab returns the validation error with The Suggested fixes
LogsHave you created a minimal reproduction repository?No reproduction, but I have detailed evidence (see logs) Additional context
Logs (if relevant)Logs |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Affected by the same thing. I have the feeling the changes introduced by #44098 have this unintended side-effect on GitLab. I have exactly the same problem on gitlab.com (and with I've created now #44126, let's hope the maintainers have time to look at it. Until then, my only workaround was to put this in my "statusCheckNames": {
"minimumReleaseAge": null
} |
Beta Was this translation helpful? Give feedback.
-
|
ACK, for now pinning the image on 43.231 solves the issue as well: variables:
CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:43.231 |
Beta Was this translation helpful? Give feedback.
-
|
For in case this helps, I can confirm that the issue also affects Renovate version 43.233.2 Gitlab CE 18.10.3. |
Beta Was this translation helpful? Give feedback.
Affected by the same thing. I have the feeling the changes introduced by #44098 have this unintended side-effect on GitLab. I have exactly the same problem on gitlab.com (and with
v43.231.4this didn't happen).I've created now #44126, let's hope the maintainers have time to look at it.
Until then, my only workaround was to put this in my
default.json, to disable the extra status check gitlab job: