Skip to content
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

Individual PRs incorrectly opened (and then immediately closed) when grouped updates enabled #8234

Closed
1 task done
edmorley opened this issue Oct 19, 2023 · 7 comments · Fixed by #8264
Closed
1 task done
Labels
F: grouped-updates 🎳 Relates to bumping more than one dependency in a single PR T: bug 🐞 Something isn't working

Comments

@edmorley
Copy link

edmorley commented Oct 19, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

Cargo

Package manager version

1.73

Language version

1.73

Manifest location and content before the Dependabot update

https://github.com/heroku/buildpacks-python/blob/76e1c6f822dfa9567ad0072b9e082547891c35e8/Cargo.toml
https://github.com/heroku/buildpacks-python/blob/76e1c6f822dfa9567ad0072b9e082547891c35e8/Cargo.lock

dependabot.yml content

https://github.com/heroku/buildpacks-python/blob/76e1c6f822dfa9567ad0072b9e082547891c35e8/.github/dependabot.yml

Updated dependency

No response

What you expected to see, versus what you actually saw

I have grouped updates enabled for this repo, so I expect single-dependency PRs not to be opened unless they are for dependencies not included in the group (or say for other edge cases, such as it being an out-of-schedule security PR etc).

Prior to this issue occurring, there were two Dependabot PRs open in the repo:

At this point I then triggered a manual Dependabot run (thinking "well if we need to do the security update PR, I might as well update all the things at once"), using Insights -> Dependency graph -> Dependabot -> etc.

The new Dependabot run then proceeded to incorrectly make two new single-dependency PRs for dependencies that should be in a group:

Immediately after that, Dependabot created the grouped PR after all:

...and then proceeded to close one of the erroneously opened single update PRs (as "superseded"), but not the other?

Today, I then triggered a manual Dependabot run again, and it closed out the single-dependency update PR that hadn't been immediately closed after opening yesterday.

It seems like there is some race condition or other weirdness going on here.

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

Dependabot run logs:
https://github.com/heroku/buildpacks-python/network/updates/737488004

Smallest manifest that reproduces the issue

No response

@edmorley edmorley added the T: bug 🐞 Something isn't working label Oct 19, 2023
@edmorley
Copy link
Author

I've just had another instance occur on a different repository. One thing the two repositories had in common, was that they both already had open grouped PRs plus a security update PR open at the time of the manually triggered Dependabot run.

In this case, the new grouped PR was:

And the incorrectly opened single-dependency update PR was:

@edmorley
Copy link
Author

This happened again in:
heroku/languages-github-actions#165
(opened then immediately closed as superseded by heroku/languages-github-actions#166)

@broksonic21
Copy link

I have seen examples of this recently in Package.json/npm in private repositories with Github-hosted dependabot, so does not appear to be Cargo exclusively.

@carogalvin carogalvin added the F: grouped-updates 🎳 Relates to bumping more than one dependency in a single PR label Oct 23, 2023
@edmorley
Copy link
Author

edmorley commented Nov 1, 2023

@edmorley
Copy link
Author

Some more instances of this in another repo:
buildpacks/pack#1974
buildpacks/pack#1973
buildpacks/pack#1972
buildpacks/pack#1971

@jakecoffman
Copy link
Member

Sorry for the delay. This is hopefully fixed going forward!

@edmorley
Copy link
Author

edmorley commented Dec 7, 2023

@jakecoffman The issue here has been resolved, but it seems a new regression has been introduced? I've filed #8558 for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F: grouped-updates 🎳 Relates to bumping more than one dependency in a single PR T: bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants