-
Notifications
You must be signed in to change notification settings - Fork 39
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
Always write the update output file, even on container failure #376
Always write the update output file, even on container failure #376
Conversation
@jakecoffman @JamieMagee @brettfo sorry to ping you directly, but I've noticed you're active here recently; Is there any chance this PR would be considered? I'm facing a roadblock due to dependabot/dependabot-core#10834 and this change would really help keep the PRs flowing. |
Don't be sorry, this is exactly why we're getting paid. As for the change, I'm good with it and it makes sense from my perspective, but I mostly focus on the NuGet updater, so I'll yield to @jakecoffman on this one. |
We'll likely not be able to merge until later this week, or early next week. We're pausing while GitHub Universe is on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable, thanks!
You might consider using the data from stdout or using api-url
to get the HTTP requests directly from the Updater container. This will allow you to process the message immediately instead of waiting until the end, and avoids any kind of processing issues like the one this PR fixes.
Good idea, I will look in to this as an improvement. thanks for the help. |
If there are successful update outputs, it would be useful if Dependabot wrote them to the output file so that the caller can process them, even if the overall update process encountered errors.
This was encountered when testing dependabot/dependabot-core#10834 and also in the tinglesoftware/dependabot-azure-devops implementation of Dependabot for Azure DevOps, see tinglesoftware/dependabot-azure-devops#1407 (comment).
When this happens...
The "create_pull_request" output for the successful update could still be processed by the caller, if CLI wrote the output file.
After this change, the outputs from a partially successful Dependabot update can still be processed whilst also still reporting that the overall update failed.