Closed mfrechePgest closed 2 years ago
Issue isn't really active but I think i got a new hint.
I noticed another dependency often failing to upgrade. The thing they got in common (with spring-boot mentionned earlier) is that they are Gradle plugins.
I addition, in our conventions, we are setting plugins versions in settings.gradle
, not directly in build.gradle
build.gradle :
plugins {
id 'org.springframework.boot'
}
settings.gradle :
pluginManagement {
repositories {
maven { url = OUR_INTERNAL_REPO }
}
plugins {
id("org.springframework.boot") version springBootVersion
}
gradle.properties :
springBootVersion=2.6.3
This used to work, but not anymore. Renovate keeps telling "Error updating branch" for those dependencies.
Hi there,
Get your issue 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.
To get started, please read our guide on creating a minimal reproduction.
We may close the issue if you, or someone else, haven't created a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment.
Good luck,
The Renovate team
This part is unexpected:
DEBUG: Unknown value (repository=******, branch=renovate/spring-boot)
"depName": "org.springframework.boot",
"version": "sion",
"currentValue": "2.6.3",
"newValue": "2.6.4"
Updated initial comment with link to a reproduction repository, where update also failed
:tada: This issue has been resolved in version 32.52.2 :tada:
The release is available on:
32.52.2
Your semantic-release bot :package::rocket:
How are you running Renovate?
Self-hosted Github.com fails too, see reproduction repository
If you're self-hosting Renovate, tell us what version of Renovate you run.
At least since 31.93.3, problem still present with 32.32.0
Please select which platform you are using if self-hosting.
Bitbucket Server
If you're self-hosting Renovate, tell us what version of the platform you run.
Atlassian Bitbucket v7.10.0
Was this something which used to work for you, and then stopped?
It used to work, and then stopped
Describe the bug
Scanning a lot of Spring Boot projects on our Bitbucket Server. Projects are using Java, and Gradle. It used to work fine, many upgrades were suggested by Renovate but it don't seem to work anymore.
We're getting this message in logs :
renovate/spring-boot
branch don't exists on repository anymore. Since the last Spring Boot PR has already been merged. Is there any reference to this previous branch anywhere ?I also tried with
--recreate-closed
option, and nothing changed.Relevant debug logs
Logs
Just ran scan on a single project and here are the other mentions on Spring Boot dependency in the logs : Pretty verbose, hope I didn't miss anything relevant. ``` DEBUG: 2 flattened updates found: postgres, org.springframework.boot (repository=*******) DEBUG: Returning 2 branch(es) (repository=******) DEBUG: Fetching changelog: https://github.com/spring-projects/spring-boot (2.6.3 -> 2.6.4) (repository=******) ``` ``` DEBUG: getBranchPr(renovate/spring-boot) (repository=*******) DEBUG: findPr(renovate/spring-boot, "undefined", "open") (repository=*******) DEBUG: getPrList() (repository=*******) DEBUG: Retrieved Pull Requests (repository=*******) "length": 132 DEBUG: DID NOT Found PR from branch #renovate/spring-boot (repository=******) ``` ``` DEBUG: Setting current branch to develop (repository=******, branch=renovate/spring-boot) DEBUG: latest commit (repository=******, branch=renovate/spring-boot) "branchName": "develop", "latestCommitDate": "2022-03-05T16:39:41+01:00" DEBUG: getBranchPr(renovate/spring-boot) (repository=******, branch=renovate/spring-boot) DEBUG: findPr(renovate/spring-boot, "undefined", "open") (repository=******, branch=renovate/spring-boot) DEBUG: getPrList() (repository=******, branch=renovate/spring-boot) DEBUG: returning cached PR list (repository=******, branch=renovate/spring-boot) DEBUG: DID NOT Found PR from branch #renovate/spring-boot (repository=******, branch=renovate/spring-boot) DEBUG: branchExists=false (repository=******, branch=renovate/spring-boot) DEBUG: dependencyDashboardCheck=undefined (repository=******, branch=renovate/spring-boot) DEBUG: recreateClosed is false (repository=******, branch=renovate/spring-boot) DEBUG: findPr(renovate/spring-boot, "Update plugin org.springframework.boot to v2.6.4", "!open") (repository=******, branch=renovate/spring-boot) DEBUG: getPrList() (repository=******, branch=renovate/spring-boot) DEBUG: returning cached PR list (repository=******, branch=renovate/spring-boot) DEBUG: DID NOT Found PR from branch #renovate/spring-boot (repository=******, branch=renovate/spring-boot) DEBUG: prAlreadyExisted=false (repository=******, branch=renovate/spring-boot) DEBUG: Checking schedule(at any time, Europe/Paris) (repository=******, branch=renovate/spring-boot) DEBUG: No schedule defined (repository=******, branch=renovate/spring-boot) DEBUG: Branch needs creating (repository=******, branch=renovate/spring-boot) DEBUG: Using reuseExistingBranch: false (repository=******, branch=renovate/spring-boot) DEBUG: manager.getUpdatedPackageFiles() reuseExistinbranch=false (repository=******, branch=renovate/spring-boot) DEBUG: Unknown value (repository=******, branch=renovate/spring-boot) "depName": "org.springframework.boot", "version": "sion", "currentValue": "2.6.3", "newValue": "2.6.4" DEBUG: Error updating file (repository=******, branch=renovate/spring-boot) "existingContent": "pluginManagement {\n repositories {\n maven { url = \"******\" }\n }\n plugins {\n id(\"mycompany.base\") version myCompanyPluginsVersion\n id(\"org.springframework.boot\") version springBootVersion\n }\n resolutionStrategy {\n eachPlugin {\n if (requested.id.namespace == \"mycompany\") {\n useVersion(myCompanyPluginsVersion)\n }\n }\n }\n}\n\nrootProject.name = '******'", "config": { "detectGlobalManagerConfig": false, "detectHostRulesFromEnv": false, "postUpgradeTasks": { "commands": [], "fileFilters": [], "executionMode": "update" }, "onboardingBranch": "renovate/configure", "onboardingCommitMessage": null, "onboardingConfigFileName": "renovate.json", "onboardingNoDeps": false, "onboardingPrTitle": "Configure Renovate", "productLinks": { "documentation": "https://docs.renovatebot.com/", "help": "https://github.com/renovatebot/renovate/discussions", "homepage": "https://github.com/renovatebot/renovate" }, "globalExtends": [], "draftPR": false, "printConfig": false, "composerIgnorePlatformReqs": [], "logContext": null, "dependencyDashboard": true, "dependencyDashboardApproval": false, "dependencyDashboardAutoclose": false, "dependencyDashboardTitle": "Dependency Dashboard", "dependencyDashboardHeader": "This issue provides visibility into Renovate updates and their statuses. [Learn more](https://docs.renovatebot.com/key-concepts/dashboard/)", "dependencyDashboardFooter": null, "dependencyDashboardLabels": null, "configWarningReuseIssue": true, "timezone": "Europe/Paris", "schedule": ["at any time"], "updateNotScheduled": true, "persistRepoData": true, "ignorePlugins": false, "ignoreScripts": false, "platform": "bitbucket-server", "endpoint": "******", "npmrc": null, "npmrcMerge": false, "npmToken": null, "updateLockFiles": true, "skipInstalls": null, "useBaseBranchConfig": "none", "gitAuthor": "Renovate BotHave you created a minimal reproduction repository?
https://github.com/mfrechePgest/renovate-spring-boot