Skip to content

PLZ-1095 Mitigate a race condition creating child revisions#16

Merged
trotterdylan merged 1 commit into
mainfrom
plz.review/review/5606
May 31, 2022
Merged

PLZ-1095 Mitigate a race condition creating child revisions#16
trotterdylan merged 1 commit into
mainfrom
plz.review/review/5606

Conversation

@trotterdylan

Copy link
Copy Markdown
Contributor

When running plz review from the CLI, if plz.review processes the
webhook for a child review's new revision before the webhook for its
parent then the child will be orphaned, and the stack relationship will
be broken. This is a hack to reduce the likelihood that a new revision
in a child review is processed before a new revision in the parent
review. The proper fix is to wait until any revisions that may be
created by pushing the branch or updating the PR are created (e.g. by
polling the API) before continuing on up the stack.

plz-review-url: https://plz.review/review/5606

When running `plz review` from the CLI, if plz.review processes the
webhook for a child review's new revision before the webhook for its
parent then the child will be orphaned, and the stack relationship will
be broken. This is a hack to reduce the likelihood that a new revision
in a child review is processed before a new revision in the parent
review. The proper fix is to wait until any revisions that may be
created by pushing the branch or updating the PR are created (e.g. by
polling the API) before continuing on up the stack.

plz-review-url: https://plz.review/review/5606
@plz-review

plz-review Bot commented May 31, 2022

Copy link
Copy Markdown

Plz Review!
Review this PR using plz

@trotterdylan
trotterdylan requested a review from lyndonoc May 31, 2022 02:39

@lyndonoc lyndonoc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@trotterdylan
trotterdylan merged commit 4f52c7e into main May 31, 2022
@trotterdylan
trotterdylan deleted the plz.review/review/5606 branch May 31, 2022 16:53
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