mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-03-09 20:22:20 +01:00
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 <marco.nenciarini@enterprisedb.com>
This commit is contained in:
parent
d589729d53
commit
82b7540dd5
@ -11,6 +11,17 @@
|
|||||||
],
|
],
|
||||||
rebaseWhen: 'never',
|
rebaseWhen: 'never',
|
||||||
prConcurrentLimit: 5,
|
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: {
|
lockFileMaintenance: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
@ -28,7 +39,7 @@
|
|||||||
{
|
{
|
||||||
customType: 'regex',
|
customType: 'regex',
|
||||||
managerFilePatterns: [
|
managerFilePatterns: [
|
||||||
'/(^Taskfile\\.yml$)/',
|
'/(^|/)Taskfile\\.yml$/',
|
||||||
],
|
],
|
||||||
matchStrings: [
|
matchStrings: [
|
||||||
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: currentValue=(?<currentValue>[^\\s]+?))?\\s+[A-Za-z0-9_]+?_SHA\\s*:\\s*["\']?(?<currentDigest>[a-f0-9]+?)["\']?\\s',
|
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: currentValue=(?<currentValue>[^\\s]+?))?\\s+[A-Za-z0-9_]+?_SHA\\s*:\\s*["\']?(?<currentDigest>[a-f0-9]+?)["\']?\\s',
|
||||||
@ -38,16 +49,16 @@
|
|||||||
{
|
{
|
||||||
customType: 'regex',
|
customType: 'regex',
|
||||||
managerFilePatterns: [
|
managerFilePatterns: [
|
||||||
'\\.go$',
|
'/\\.go$/',
|
||||||
],
|
],
|
||||||
matchStrings: [
|
matchStrings: [
|
||||||
'// renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: versioning=(?<versioning>[^\\s]+?))?\\s+(?:// Version: (?<currentValue>[^\\s]+?)\\s+)?Image:\\s*"[^@]+@(?<currentDigest>sha256:[a-f0-9]+)"',
|
'//\\s*renovate:\\s*datasource=(?<datasource>[a-z-.]+?)\\s+depName=(?<depName>[^\\s]+?)(?:\\s+versioning=(?<versioning>[^\\s]+?))?\\s*\\n\\s*//\\s*Version:\\s*(?<currentValue>[^\\s]+?)\\s*\\n\\s*Image:\\s*"[^@]+@(?<currentDigest>sha256:[a-f0-9]+)"',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
customType: 'regex',
|
customType: 'regex',
|
||||||
managerFilePatterns: [
|
managerFilePatterns: [
|
||||||
'/(^docs/config\\.yaml$)/',
|
'/(^|/)docs/config\\.yaml$/',
|
||||||
],
|
],
|
||||||
matchStrings: [
|
matchStrings: [
|
||||||
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?\\s+kubernetesVersion:\\s*["\']?(?<currentValue>.+?)["\']?\\s',
|
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?\\s+kubernetesVersion:\\s*["\']?(?<currentValue>.+?)["\']?\\s',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user