Commit 0cd131d
committed
patchwork: fix type mismatch in patch filtering for project ID
Fix a critical bug in patch filtering where project ID comparison was
failing due to type mismatch. The configuration file specifies project
IDs as strings (e.g., "423"), but the Patchwork API returns them as
integers (e.g., 423). This caused the comparison in _is_patch_matching()
to fail, resulting in no patches being detected as matching.
This bug was preventing KPD from detecting candidate patches in lei-based
patchwork instances, including the Linux firmware loader project.
The fix converts the expected_value to int before comparison for properties
in PATCH_FILTERING_PROPERTIES (project, delegate).
Tested with the firmware loader project - now successfully detects patches
including "firmware_loader: prevent integer overflow in firmware_loading_timeout()".
Since lei-based patchwork instances now work, updates docs to declare it
as supported.
Generated-by: Claude AI
Signed-off-by: Luis Chamberlain <[email protected]>1 parent fe15c6d commit 0cd131d
3 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
145 | 161 | | |
146 | 162 | | |
147 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| |||
0 commit comments