versioning example for linuxserver/openssh-server in docs does not work #33024
Replies: 4 comments
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Hey there, I tried to test if the documentation is correct (notwithstanding typos) by creating a minimal reproduction repository. And renovate is able to propose a PR for I don't use kubernetes, but I guess the reasons why yours don't work might be as below:
It'd be best to create a minimal reproduction as outlined from the above bot comment. Anyway I'm planning to update that page of doc as per #33270 . Just seeking maintainers' opinion there. When updating the page I'll fix the typos too. |
Beta Was this translation helpful? Give feedback.
-
@kennethso168 Thanks for your effort. I was too busy the last weeks to create a minimal reproduction repository earlier, but did so now: https://github.com/pfaelzerchen/linuxserver-io-openssh-reproduction I placed both my kubernetes deployment yaml and your docker compose.yml in the repo. And I can confirm, that your minimal docker reproduction works just fine, while kubernetes won't work. I'll attach my log files, but I think the interesting part is: DEBUG: packageFiles with updates
{
"baseBranch": "main"
"config": {
"docker-compose": [
{
"deps": [
{
"depName": "lscr.io/linuxserver/openssh-server",
"currentValue": "9.7_p1-r4-ls181",
"replaceString": "lscr.io/linuxserver/openssh-server:9.7_p1-r4-ls181",
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"datasource": "docker",
"updates": [
{
"bucket": "non-major",
"newVersion": "9.7_p1-r4-ls182",
"newValue": "9.7_p1-r4-ls182",
"newMajor": 9,
"newMinor": 7,
"newPatch": 1,
"updateType": "patch",
"branchName": "renovate/lscr.io-linuxserver-openssh-server-9.x"
}
],
"packageName": "lscr.io/linuxserver/openssh-server",
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)_p(?<patch>\\d+)-r(?<build>\\d)-ls(?<revision>.+)$",
"warnings": [],
"sourceUrl": "https://github.com/linuxserver/docker-openssh-server",
"registryUrl": "https://lscr.io",
"homepage": "https://github.com/linuxserver/docker-openssh-server/packages",
"lookupName": "linuxserver/openssh-server",
"currentVersion": "9.7_p1-r4-ls181",
"isSingleVersion": true,
"fixedVersion": "9.7_p1-r4-ls181"
}
],
"packageFile": "compose.yml"
}
],
"kubernetes": [
{
"deps": [
{
"depName": "lscr.io/linuxserver/openssh-server",
"currentValue": "9.7",
"replaceString": "lscr.io/linuxserver/openssh-server:9.7",
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"datasource": "docker",
"updates": [],
"packageName": "lscr.io/linuxserver/openssh-server",
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)_p(?<patch>\\d+)-r(?<build>\\d)-ls(?<revision>.+)$",
"warnings": [],
"skipReason": "invalid-value"
},
{
"depName": "Deployment",
"currentValue": "apps/v1",
"datasource": "kubernetes-api",
"versioning": "kubernetes-api",
"updates": [],
"packageName": "Deployment",
"warnings": [],
"currentVersion": "apps/v1",
"fixedVersion": "apps/v1"
}
],
"packageFile": "openssh-deployment.yaml"
}
]
}
} It seems that there goes something wrong with the detection of the image version when using kubernetes. For compose.yml it recognizes Is it a bug in renovate or did I miss something in my config? |
Beta Was this translation helpful? Give feedback.
-
And here is the Log: renovate-log.txt |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
k3s with version 39.60.0
Please tell us more about your question or problem
I tried to use the last example from the docs regarding linuxserver/openssh-server: https://docs.renovatebot.com/modules/versioning/regex/
My deployment contains this image definition:
my renovate.json uses the following package rule
By now, ls180 is already available, so renovate should immediately detect an update. But nothing happens. The dependency dashboard mentions
So it seems, only the major and minor version are detected. For me, the regex looks fine. Is there some typo I did not recognize?
By the way, the docs contain a typo in
matchPackageNamees
(double e).Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions