|
4 | 4 | pull_request_target: |
5 | 5 | branches: |
6 | 6 | - 24.04_linux-nvidia-6.17-next |
| 7 | + - 26.04_linux-nvidia-bos |
| 8 | + - 26.04_linux-nvidia |
7 | 9 | workflow_dispatch: |
8 | 10 | inputs: |
9 | 11 | pr_number: |
@@ -106,14 +108,14 @@ jobs: |
106 | 108 | sed 's/\x1B\[[0-9;]*[A-Za-z]//g; s/\x1B\]8;;[^\x1B]*\x1B\\//g; s/\x1B\]8;;[^\a]*\a//g' \ |
107 | 109 | patchscan_output.txt > patchscan_clean.txt |
108 | 110 |
|
109 | | - # Record runtime errors so the comment step can report them before failing |
110 | | - if [ $exit_code -ne 0 ]; then |
111 | | - echo "fixes_found=error" >> $GITHUB_OUTPUT |
112 | | - fi |
113 | | -
|
114 | | - # Check if missing fixes or scan errors were found |
115 | | - if grep -qE "^W:|^E:|Fixes for" patchscan_clean.txt; then |
| 111 | + # Classify the outcome — order matters: W: (missing fixes) takes priority, |
| 112 | + # then E: / non-zero exit (verification errors), then all-clear. |
| 113 | + # Writing fixes_found twice to GITHUB_OUTPUT would make the last write win, |
| 114 | + # so use a single mutually-exclusive block. |
| 115 | + if grep -qE "^W:|Fixes for" patchscan_clean.txt; then |
116 | 116 | echo "fixes_found=true" >> $GITHUB_OUTPUT |
| 117 | + elif grep -qE "^E:" patchscan_clean.txt || [ $exit_code -ne 0 ]; then |
| 118 | + echo "fixes_found=error" >> $GITHUB_OUTPUT |
117 | 119 | else |
118 | 120 | echo "fixes_found=false" >> $GITHUB_OUTPUT |
119 | 121 | fi |
@@ -142,9 +144,12 @@ jobs: |
142 | 144 | ); |
143 | 145 |
|
144 | 146 | const body = [ |
145 | | - '## :x: Patchscan: Scan Error', |
| 147 | + '## :x: Patchscan: Upstream Verification Error', |
146 | 148 | '', |
147 | | - 'Patchscan encountered an error while scanning this PR:', |
| 149 | + 'Patchscan could not fully verify one or more commits in this PR.', |
| 150 | + 'This is often a false positive caused by a SAUCE commit whose message', |
| 151 | + 'body references an upstream SHA but has a different title.', |
| 152 | + 'No `Fixes:` patches appear to be missing.', |
148 | 153 | '', |
149 | 154 | '````', |
150 | 155 | truncated.trim(), |
@@ -260,7 +265,7 @@ jobs: |
260 | 265 | if: steps.patchscan.outputs.fixes_found == 'true' || steps.patchscan.outputs.fixes_found == 'error' |
261 | 266 | run: | |
262 | 267 | if [ "${{ steps.patchscan.outputs.fixes_found }}" = "error" ]; then |
263 | | - echo "::error::Patchscan encountered a runtime error — see PR comment for details." |
| 268 | + echo "::error::Patchscan upstream verification error — see PR comment for details." |
264 | 269 | else |
265 | 270 | echo "::warning::Missing upstream fixes detected — see PR comment for details." |
266 | 271 | fi |
|
0 commit comments