-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erroneously closing PRs in a major update groups due to "update no longer possible" #11372
Comments
I am unfamiliar with this repo, but going to do some rubber ducking here and maybe through this process I solve this myself, who knows: Dependabot.logger.info("No updated dependencies, closing existing Pull Request")
close_pull_request(reason: :update_no_longer_possible, group: group) If Dependabot.logger.info("Updating pull request for '#{group.name}'")
service.update_pull_request(dependency_change, dependency_snapshot.base_commit_sha) Based on the comment of
The other possibility is that upsert should have never been called. Looking further... |
There is a previous log of "Skipping @nestjs/common as it has already been handled by a previous group", which I'm guessing is the root of this problem and causes |
Now I'm looking in the compile_all_dependency_changes_for which is what will build the previously mentioned if dependency_snapshot.handled_dependencies.include?(dependency.name) |
Because this won't happen the first time and only occurs upon future updates, I would guess |
Fix is here: #11382 |
Hey, also have the same issue in Java. Every even time the schedule runs, it will close the PR with the same message. Every odd time it will just open a PR normally |
Is there an existing issue for this?
Package ecosystem
npm
Package manager version
9.6.5
Language version
No response
Manifest location and content before the Dependabot update
https://github.com/judocode/dependabot-bug-version-types/blob/main/package.json
dependabot.yml content
https://github.com/judocode/dependabot-bug-version-types/blob/main/.github/dependabot.yml
Updated dependency
No response
What you expected to see, versus what you actually saw
This is what the state of the pull requests should like (which you can see here), which should be as follows:
But what it actually looks like is (link to actual pull requests)
Both of these repositories have the same exact code in them. But in the first repository, I changed the dependabot file. I believe if I change the state of the dependabot.yml file in the second repository (even if inconsequentially), it will fall into this bug state where it will close the two missing PRs.
One very temporary workaround is if I rename every group, then it seems to kick things back into a good state, but any dependency change after that can make it fall back into the error state again, so it's a losing battle
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
Action that closed the PR with message:
Job definition
Relevant logs
Smallest manifest that reproduces the issue
It doesn't seem possible to have a minimally reproduceable code as this bug surfaces when the dependabot.yml changes and I believe even other code / dependency changes as well, but I do have the following repository in that state: https://github.com/judocode/dependabot-bug-version-types
The text was updated successfully, but these errors were encountered: