UNCLASSIFIED - NO CUI

Skip to content

Renovate Config and Pipeline Updates

Renovate pipeline should be configured to warn when any warnings are received in the pipeline so proactive actions can be taken to resolve the issue. This may be something as simple as just grepping the logs for WARN: or converting the output to json and using jq to check for all warnings arrays from the log.

If any warnings are detected it could send it to the already existing Pipeline Failures MM channel, but eventually it may make sense to have a dashboard that tracks this along with other renovate features.

Additionally, it appears the renovate config requires migration:

 WARN: Config needs migrating
       "configType": "config.js",
       "originalConfig": {
         "endpoint": "https://repo1.dso.mil/api/v4",
         "platform": "gitlab",
         "baseDir": "/builds/big-bang/pipeline-templates/renovate-runner/renovate",
         "hostRules": [
           {
             "matchHost": "https://registry1.dso.mil",
             "username": "[MASKED]",
             "password": "***********"
           }
         ],
         "autodiscover": true,
         "autodiscoverFilter": "big-bang/**",
         "baseBranches": ["main"],
         "gitAuthor": "Renovate Bot <bot@renovateapp.com>",
         "repositoryCache": true,
         "ignorePrAuthor": false,
         "onboarding": false,
         "requireConfig": true,
         "optimizeForDisabled": true,
         "allowPostUpgradeCommandTemplating": true,
         "allowedPostUpgradeCommands": [
           "^regenerate-helm-docs$",
           "^bump-chart-yaml$",
           "^match-chart-yaml-appversion$",
           "^bump-changelog '- {{{replace 'registry1.dso.mil/' '' depName}}} updated from {{{currentVersion}}} to {{{newVersion}}}'$",
           "^bump-changelog '- {{{replace 'registry1.dso.mil/' '' depName}}} updated from {{{replace 'v' '' currentVersion}}} to {{{replace 'v' '' newVersion}}}'$",
           "^bump-changelog '{{#each upgrades}}- {{depName}} {{currentVersion}} -> {{newVersion}}(\\\\n|\\n){{/each}}'$",
           "^upgrade-gitlabrunner '{{{newValue}}}'$",
           "^map-chart-yaml-appversion$",
           "^update-alloy-subcharts$",
           "^curl -sL 'https://github.com/kubernetes-sigs/gateway-api/releases/download/v{{newVersion}}/standard-install.yaml' -o chart/files/standard-install.yaml$",
           "^curl -sL 'https://github.com/kubernetes-sigs/gateway-api/releases/download/v{{newVersion}}/experimental-install.yaml' -o chart/files/experimental-install.yaml$"
         ],
         "packageRules": [
           {
             "groupName": "IB Updates",
             "matchDatasources": ["docker"],
             "matchPackagePatterns": [".*"],
             "postUpgradeTasks": {
               "commands": [
                 "map-chart-yaml-appversion",
                 "bump-changelog '{{#each upgrades}}- {{depName}} {{currentVersion}} -> {{newVersion}}\\n{{/each}}'"
               ],
               "fileFilters": ["chart/**", "CHANGELOG.md"],
               "executionMode": "branch"
             }
           }
         ],
         "customEnvVariables": {
           "CI_PROJECT_DIR": "/builds/big-bang/pipeline-templates/renovate-runner",
           "CI_SERVER_URL": "https://repo1.dso.mil",
           "CI_JOB_URL": "https://repo1.dso.mil/big-bang/pipeline-templates/renovate-runner/-/jobs/50190329"
         }
       },
       "migratedConfig": {
         "endpoint": "https://repo1.dso.mil/api/v4",
         "platform": "gitlab",
         "baseDir": "/builds/big-bang/pipeline-templates/renovate-runner/renovate",
         "hostRules": [
           {
             "matchHost": "https://registry1.dso.mil",
             "username": "[MASKED]",
             "password": "***********"
           }
         ],
         "autodiscover": true,
         "autodiscoverFilter": "big-bang/**",
         "baseBranches": ["main"],
         "gitAuthor": "Renovate Bot <bot@renovateapp.com>",
         "repositoryCache": true,
         "ignorePrAuthor": false,
         "onboarding": false,
         "requireConfig": "required",
         "optimizeForDisabled": true,
         "allowedCommands": [
           "^regenerate-helm-docs$",
           "^bump-chart-yaml$",
           "^match-chart-yaml-appversion$",
           "^bump-changelog '- {{{replace 'registry1.dso.mil/' '' depName}}} updated from {{{currentVersion}}} to {{{newVersion}}}'$",
           "^bump-changelog '- {{{replace 'registry1.dso.mil/' '' depName}}} updated from {{{replace 'v' '' currentVersion}}} to {{{replace 'v' '' newVersion}}}'$",
           "^bump-changelog '{{#each upgrades}}- {{depName}} {{currentVersion}} -> {{newVersion}}(\\\\n|\\n){{/each}}'$",
           "^upgrade-gitlabrunner '{{{newValue}}}'$",
           "^map-chart-yaml-appversion$",
           "^update-alloy-subcharts$",
           "^curl -sL 'https://github.com/kubernetes-sigs/gateway-api/releases/download/v{{newVersion}}/standard-install.yaml' -o chart/files/standard-install.yaml$",
           "^curl -sL 'https://github.com/kubernetes-sigs/gateway-api/releases/download/v{{newVersion}}/experimental-install.yaml' -o chart/files/experimental-install.yaml$"
         ],
         "packageRules": [
           {
             "groupName": "IB Updates",
             "matchDatasources": ["docker"],
             "postUpgradeTasks": {
               "commands": [
                 "map-chart-yaml-appversion",
                 "bump-changelog '{{#each upgrades}}- {{depName}} {{currentVersion}} -> {{newVersion}}\\n{{/each}}'"
               ],
               "fileFilters": ["chart/**", "CHANGELOG.md"],
               "executionMode": "branch"
             },
             "matchPackageNames": ["/.*/"]
           }
         ],
         "customEnvVariables": {
           "CI_PROJECT_DIR": "/builds/big-bang/pipeline-templates/renovate-runner",
           "CI_SERVER_URL": "https://repo1.dso.mil",
           "CI_JOB_URL": "https://repo1.dso.mil/big-bang/pipeline-templates/renovate-runner/-/jobs/50190329"
         }
       },
       "trace_id": "21cba544b0f64996a6160e6eaff88372",
       "span_id": "2b9d4c4432706d6c",
       "trace_flags": "01"

Please reference this issue for additional background information.

Edited by Jimmy Bourque