-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when syncing old subjects from patchwork -> Github
Summary: We saw crashes in KPD like: ``` Traceback (most recent call last): File "kernel_patches_daemon/daemon.py", line 58, in run await self.run_once() File "kernel_patches_daemon/daemon.py", line 49, in run_once await self.github_sync_worker.sync_patches() File "kernel_patches_daemon/github_sync.py", line 287, in sync_patches await worker.checkout_and_patch(branch_name, latest_series) File "kernel_patches_daemon/branch_worker.py", line 986, in checkout_and_patch return await self.apply_push_comment(branch_name, series_to_apply) File "kernel_patches_daemon/branch_worker.py", line 911, in apply_push_comment raise NewPRWithNoChangeException(self.repo_pr_base_branch, branch_name) ``` This can happen during patchwork -> Github sync when a patch series is already merged upstream so no changes are necessary vs the target branch and thus no PR is generated. While some code accounts for this case, the "syncing old subjects" part did not and thus the exception would cause recurring crashes. Reviewed By: chantra Differential Revision: D63265309 fbshipit-source-id: 98f4fa960d4132a1a222f058c88d5102b6d51d40
- Loading branch information
1 parent
be555b0
commit 543eb6e
Showing
3 changed files
with
63 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters