You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments