Skip to content

Commit

Permalink
skip patchsets which have empty subject
Browse files Browse the repository at this point in the history
Summary:
Skip patchsets which have empty subject line as currently the logic provides empty line for the filter and returns all the patches.

Proper tests will be added later as we have to fix things first

Reviewed By: chantra

Differential Revision: D68493150

fbshipit-source-id: bbfaad5c896c20f2322195a6a1254bb78fa538d3
  • Loading branch information
vvfedorenko authored and facebook-github-bot committed Jan 23, 2025
1 parent f6b43d2 commit 6ee5844
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel_patches_daemon/patchwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,10 @@ async def get_relevant_subjects(self) -> Sequence[Subject]:
all_series = await asyncio.gather(*tasks)

for series in all_series:
if series.subject.strip() == "":
logger.error(f"Malformed series name: {series.name}")
err_malformed_series.add(1)
continue
self.known_series[series.id] = series

if series.subject not in subjects:
Expand Down

0 comments on commit 6ee5844

Please # to comment.