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

dont parse subrepo package again if the subrepo label subrepo is the same as the dependent subrepo #3103

Merged

Conversation

goddenrich
Copy link
Contributor

@goddenrich goddenrich commented Mar 12, 2024

Previously we were maybeParseSubrepoPackage for the host repo and if we don't find the subrepo we would check in the dependent label's subrepo. This is unnecessary if the dependent label's subrepo is the same as the host repo.

There is also a bug which this fixes where we indefinitely wait on parsing a subrepo if the subrepo doesn't exist. This change should just be an optimisation but it fixes the bug too.

Copy link
Member

@peterebden peterebden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
I don't have a lot of insight into why it fixes the hang - possibly it makes it parse subrepos less often so that case doesn't come up. @Tatskaari is more familiar with that bit than I am these days though.

@goddenrich goddenrich merged commit 99ab02e into thought-machine:master Mar 13, 2024
14 checks passed
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