From 82b7540dd509a3cf1c6e6cbf66a33d933b393a6b Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Mon, 12 Jan 2026 17:06:20 +0100 Subject: [PATCH] fix(renovate): enable scanning test directories for emulator images The custom regex manager wasn't detecting emulator image dependencies in test/e2e/internal/objectstore/ because Renovate's default ignorePaths blocks test directories. Removed the `**/test/**` pattern while keeping other sensible defaults to allow scanning test files. Also fixed the regex pattern to handle the multi-line format where renovate comments span three lines, and corrected all managerFilePatterns to use the proper `/pattern$/` format. Signed-off-by: Marco Nenciarini --- renovate.json5 | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/renovate.json5 b/renovate.json5 index bc56ed2..29276e7 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -11,6 +11,17 @@ ], rebaseWhen: 'never', prConcurrentLimit: 5, + // Override default ignorePaths to scan test/e2e for emulator image dependencies + // Removed: '**/test/**' + ignorePaths: [ + '**/node_modules/**', + '**/bower_components/**', + '**/vendor/**', + '**/examples/**', + '**/__tests__/**', + '**/tests/**', + '**/__fixtures__/**', + ], lockFileMaintenance: { enabled: true, }, @@ -28,7 +39,7 @@ { customType: 'regex', managerFilePatterns: [ - '/(^Taskfile\\.yml$)/', + '/(^|/)Taskfile\\.yml$/', ], matchStrings: [ '# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: currentValue=(?[^\\s]+?))?\\s+[A-Za-z0-9_]+?_SHA\\s*:\\s*["\']?(?[a-f0-9]+?)["\']?\\s', @@ -38,16 +49,16 @@ { customType: 'regex', managerFilePatterns: [ - '\\.go$', + '/\\.go$/', ], matchStrings: [ - '// renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: versioning=(?[^\\s]+?))?\\s+(?:// Version: (?[^\\s]+?)\\s+)?Image:\\s*"[^@]+@(?sha256:[a-f0-9]+)"', + '//\\s*renovate:\\s*datasource=(?[a-z-.]+?)\\s+depName=(?[^\\s]+?)(?:\\s+versioning=(?[^\\s]+?))?\\s*\\n\\s*//\\s*Version:\\s*(?[^\\s]+?)\\s*\\n\\s*Image:\\s*"[^@]+@(?sha256:[a-f0-9]+)"', ], }, { customType: 'regex', managerFilePatterns: [ - '/(^docs/config\\.yaml$)/', + '/(^|/)docs/config\\.yaml$/', ], matchStrings: [ '# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?\\s+kubernetesVersion:\\s*["\']?(?.+?)["\']?\\s',