From 491fd15c8f1bd65b2a887fd9a8bebbfd659e220d Mon Sep 17 00:00:00 2001 From: AcquaDiGiorgio <64639359+AcquaDiGiorgio@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:56:52 +0100 Subject: [PATCH 1/3] Add renovate.json for Autorest versioning at client generation --- renovate.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/renovate.json b/renovate.json index 8dcb1bc0e..cc66ebec7 100644 --- a/renovate.json +++ b/renovate.json @@ -8,5 +8,43 @@ "matchManagers": ["github-actions"], "groupName": "GitHub Actions" } + ], + "customManagers": [ + { + "customType": "regex", + "managerFilePatterns": [ + "diracx-testing/src/diracx/testing/client_generation.py" + ], + "versioningTemplate": "npm", + "datasourceTemplate": "npm", + "depNameTemplate": "autorest", + "matchStrings": [ + "AUTOREST_VERSION\\s*=\\s*[\"'](?\\S+)[\"']" + ] + }, + { + "customType": "regex", + "managerFilePatterns": [ + "diracx-testing/src/diracx/testing/client_generation.py" + ], + "versioningTemplate": "npm", + "datasourceTemplate": "npm", + "depNameTemplate": "@autorest/core", + "matchStrings": [ + "AUTOREST_CORE_VERSION\\s*=\\s*[\"'](?\\S+)[\"']" + ] + }, + { + "customType": "regex", + "managerFilePatterns": [ + "diracx-testing/src/diracx/testing/client_generation.py" + ], + "versioningTemplate": "npm", + "datasourceTemplate": "npm", + "matchStrings": [ + "AUTOREST_PUGINS\\s*=\\s*{[^}]*}", + "\\s*[\"'](?\\S+)[\"']:\\s*[\"'](?\\S+)[\"'],?" + ] + } ] } From 7e415f100fbe790f11b8cca9839d8ddda229ab7f Mon Sep 17 00:00:00 2001 From: AcquaDiGiorgio <64639359+AcquaDiGiorgio@users.noreply.github.com> Date: Fri, 13 Feb 2026 09:55:19 +0100 Subject: [PATCH 2/3] fix: Fix AUTOREST_PUGINS typo --- diracx-testing/src/diracx/testing/client_generation.py | 4 ++-- renovate.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/diracx-testing/src/diracx/testing/client_generation.py b/diracx-testing/src/diracx/testing/client_generation.py index 2c84cfdf6..e1f935b1e 100644 --- a/diracx-testing/src/diracx/testing/client_generation.py +++ b/diracx-testing/src/diracx/testing/client_generation.py @@ -20,7 +20,7 @@ AUTOREST_VERSION = "3.7.1" AUTOREST_CORE_VERSION = "3.10.4" -AUTOREST_PUGINS = { +AUTOREST_PLUGINS = { "@autorest/python": "6.34.2", "@autorest/modelerfour": "4.23.7", } @@ -156,7 +156,7 @@ def regenerate_client(openapi_spec: Path, client_module: str): ) cmd = ["autorest", f"--version={AUTOREST_CORE_VERSION}"] - for plugin, version in AUTOREST_PUGINS.items(): + for plugin, version in AUTOREST_PLUGINS.items(): cmd.append(f"--use={plugin}@{version}") cmd += [ "--python", diff --git a/renovate.json b/renovate.json index cc66ebec7..13a010f2e 100644 --- a/renovate.json +++ b/renovate.json @@ -42,7 +42,7 @@ "versioningTemplate": "npm", "datasourceTemplate": "npm", "matchStrings": [ - "AUTOREST_PUGINS\\s*=\\s*{[^}]*}", + "AUTOREST_PLUGINS\\s*=\\s*{[^}]*}", "\\s*[\"'](?\\S+)[\"']:\\s*[\"'](?\\S+)[\"'],?" ] } From a0c3fda64293e57825990335c25507453497ce40 Mon Sep 17 00:00:00 2001 From: AcquaDiGiorgio <64639359+AcquaDiGiorgio@users.noreply.github.com> Date: Mon, 16 Feb 2026 11:28:40 +0100 Subject: [PATCH 3/3] chore(renovate): Group autorest package updates --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renovate.json b/renovate.json index 13a010f2e..35eec4ad7 100644 --- a/renovate.json +++ b/renovate.json @@ -7,6 +7,12 @@ "description": "Group all GitHub Actions updates together", "matchManagers": ["github-actions"], "groupName": "GitHub Actions" + }, + { + "description": "Group all Autorest updates together", + "matchManagers": ["custom.regex"], + "matchPackageNames": ["autorest", "@autorest/*"], + "groupName": "Autorest" } ], "customManagers": [