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 algorithm for gathering Go build requests with coverage. (Cherry-pick of #20030) #20032

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

WorkerPants
Copy link
Member

The previous algorithm did not check if a package had already been
traversed, which leads to exponential blowup of the queue.

Go doesn't support dependency cycles, so the previous algorithm
would converge eventually, but before it did so the queue could get
to sizes that were infinite in practice. This happened in a real-world
case.

The previous algorithm did not check if a package had already been
traversed, which leads to exponential blowup of the queue.

Go doesn't support dependency cycles, so the previous algorithm
would converge eventually, but before it did so the queue could get
to sizes that were infinite in practice. This happened in a real-world
case.
@WorkerPants WorkerPants added this to the 2.16.x milestone Oct 15, 2023
@WorkerPants WorkerPants added the category:bugfix Bug fixes for released features label Oct 15, 2023
@WorkerPants WorkerPants requested review from tdyas and benjyw October 15, 2023 17:48
@benjyw benjyw merged commit f960947 into 2.16.x Oct 16, 2023
@benjyw benjyw deleted the cherry-pick-20030-to-2.16.x branch October 16, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants