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

Fix deploy --dry-run deadlock #120

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

tianon
Copy link
Member

@tianon tianon commented Mar 3, 2025

Once we got over 1000 items in our deploy list, we deadlocked because nothing consumes the channel until we're done with the "queue everything up" loop, so we need to start consuming that list right away instead. As long as it's part of our waitgroup, this should be fine and work correctly.

@tianon tianon requested a review from a team as a code owner March 3, 2025 23:43
Once we got over 1000 items in our deploy list, we deadlocked because nothing consumes the channel until we're done with the "queue everything up" loop, so we need to start consuming that list right away instead.  As long as it's part of our waitgroup, this should be fine and work correctly.
@tianon tianon force-pushed the dry-run-deadlock branch from 4c2a2cc to bf82d71 Compare March 3, 2025 23:48
@tianon
Copy link
Member Author

tianon commented Mar 3, 2025

For a confidence boost, we do log this output, so we know that it's still working correctly, and still outputting in-order.

@yosifkit yosifkit merged commit 94e9f37 into docker-library:main Mar 3, 2025
1 check passed
@yosifkit yosifkit deleted the dry-run-deadlock branch March 3, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants