Skip to content

Conversation

@KevinJiao
Copy link
Contributor

Fixes a bug where if the generating rule name is lexicographically after
the generated rule, changes in the generating rule are not picked up by
targets that depend on the generated rule.

When this happens between a generating rule and generated rule,
the generated rule's entry in allRulesMap is null, as the generating
rule hasn't been processed yet. If a rule has no entry in allRulesMap,
it's hash is unable to be used as a dependency in createDigestForRule,
resulting in missing impacted targets.

Test plan:
Added unit test demonstrating buggy behavior.

@CLAassistant
Copy link

CLAassistant commented Aug 31, 2021

CLA assistant check
All committers have signed the CLA.

@tinder-maxwellelliott
Copy link
Collaborator

@KevinJiao this looks good to me, you just need to sign the CLA

Fixes a bug where if the generating rule name is lexicographically after
the generated rule, changes in the generating rule are not picked up by
targets that depend on the generated rule.

Test plan:
Added unit test demonstrating buggy behavior.
@KevinJiao
Copy link
Contributor Author

CLA is signed. (I think you need to approve the CI build as this is my first contribution)

@tinder-maxwellelliott tinder-maxwellelliott merged commit 8525634 into Tinder:master Sep 1, 2021
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.

3 participants