-
Notifications
You must be signed in to change notification settings - Fork 994
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
revert changes to DependencyGroupChangeBatch #10228
Conversation
What exactly does "nothing breaks" mean here? Where would we look for things breaking? |
I was hoping to see a test fail. I can't tell how this change makes any functional difference so I'm not sure how exactly to verify that. From the original PR:
🤷 I guess we didn't need this, I don't see a follow up PR that uses this change |
I just confirmed that it's this test which verifies the behavior this fix was trying to solve: dependabot-core/silent/tests/testdata/vu-group-multidir-all.txt Lines 92 to 124 in bb8ddc5
It still works without this code so therefore this change is not needed. |
What are you trying to accomplish?
Reverting #9988 to see if anything breaks. The changes seem like they don't change behavior at all.
I came across this code while investigating rebase command issues.
Anything you want to highlight for special attention from reviewers?
DependencyGroupChangeBatch is only used here:
dependabot-core/updater/lib/dependabot/updater/group_update_creation.rb
Lines 50 to 52 in 9307016
This method is already in the context of a single directory, so really there should only be one directory in this DependencyGroupChangeBatch. Also the updated_dependencies are never read, except to transform into a DependencyChange which is what gets returned.
The directory is actually set on the dependencies once the DependencyChange is initialized:
dependabot-core/updater/lib/dependabot/dependency_change.rb
Line 63 in 243c481
So this is why I think this change isn't needed. I think perhaps the thought here was to propagate it from this point instead of setting it in the DependencyChange.
How will you know you've accomplished your goal?
Nothing breaks!
Checklist