]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
.github/workflows/releng-audit: handle missing case of skipping audit on override 68921/head
authorPatrick Donnelly <pdonnell@ibm.com>
Thu, 14 May 2026 23:59:47 +0000 (19:59 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Fri, 15 May 2026 00:00:13 +0000 (20:00 -0400)
If someone adds -fail/-pass and override exists, the label should be
removed and -override respected.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
.github/workflows/releng-audit.yaml

index c1e1845d8acdd200185d577677756d005dae3f7b..08741378c15fc25c7ac64aa88e2e6412d8b25a54 100644 (file)
@@ -180,10 +180,17 @@ jobs:
               
               // Block humans from applying machine labels
               if (!isBot && (labelName === 'releng-audit-pass' || labelName === 'releng-audit-fail')) {
-                core.warning(`[Router] User @${actor} cannot manually apply ${labelName}. Stripping labels and forcing audit.`);
+                core.warning(`[Router] User @${actor} cannot manually apply ${labelName}.`);
                 try { await github.rest.issues.removeLabel({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, name: 'releng-audit-fail' }); } catch (e) {}
                 try { await github.rest.issues.removeLabel({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, name: 'releng-audit-pass' }); } catch (e) {}
-                core.setOutput('run_audit', 'true');
+
+                if (hasOverrideLabel) {
+                  core.info(`[Router] override label applied, skipping audit.`);
+                  core.setOutput('run_audit', 'false');
+                } else {
+                  core.info(`[Router] forcing audit.`);
+                  core.setOutput('run_audit', 'true');
+                }
                 return;
               }