Commit b2eee28
patchscan: distinguish E: (verification errors) from W: (missing fixes)
Previously, both E: (upstream commit-message mismatch) and W: (missing
Fixes: patch) set fixes_found=true, causing the "Missing Fixes Detected"
comment to appear even when no Fixes: patches were missing. PR NVIDIA#342
triggered exactly this: a SAUCE config commit referencing an upstream SHA
with a different title caused E: output, but All fixes: was empty.
Replace the two separate if-blocks (which could overwrite each other via
GITHUB_OUTPUT) with a single mutually-exclusive chain:
W: / "Fixes for" → fixes_found=true (missing Fixes: patches)
E: / non-zero rc → fixes_found=error (upstream verification failure)
neither → fixes_found=false (all-clear)
Update the "error" PR comment title and body to explain this is typically
a false positive from SAUCE commits that reference upstream SHAs in their
message body with a different title.
Signed-off-by: Nirmoy Das <nirmoyd@nvidia.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 4d02591 commit b2eee28
2 files changed
Lines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
116 | 114 | | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
260 | 263 | | |
261 | 264 | | |
262 | 265 | | |
263 | | - | |
| 266 | + | |
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
| |||
0 commit comments