From df44f45cd26ca001309ec8e5b11fbc81e847811a Mon Sep 17 00:00:00 2001 From: Marcin Biernacik Date: Tue, 17 Nov 2026 17:51:20 +0000 Subject: [PATCH] Ignore the CLA check when labeling dependency PRs --- scripts/dependency_pr_status | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/dependency_pr_status b/scripts/dependency_pr_status index 5fee599a8..50dfe2c09 100755 --- a/scripts/dependency_pr_status +++ b/scripts/dependency_pr_status @@ -37,6 +37,9 @@ MAX_WAIT_DAYS = int(os.environ.get("MAX_WAIT_DAYS", "21")) BOT_AUTHORS = {"dependabot[bot]"} BOT_BRANCHES = {"deps/security-updates"} CLOUD_BUILD_APP = "google-cloud-build" +# Checks that say nothing about the code, e.g. the CLA check, which fails for +# commits of bot accounts that aren't covered by a CLA. +UNRELATED_APPS = {"google-cla"} # Builds with the public npm registry: if it passes, the code itself is fine. PUBLIC_BUILD_CHECK = "Build packages and smoke test bundle (Linux)" @@ -104,7 +107,8 @@ def classify(runs, waiting_days): (no public build to compare with).""" cloud_build = [r for r in runs if r["app"]["slug"] == CLOUD_BUILD_APP and r.get("conclusion") != "action_required"] # Needs /gcbrun. - others = [r for r in runs if r["app"]["slug"] != CLOUD_BUILD_APP] + others = [r for r in runs if r["app"]["slug"] != CLOUD_BUILD_APP + and r["app"]["slug"] not in UNRELATED_APPS] if not cloud_build or any(r["status"] != "completed" for r in cloud_build): return "pending" if all(r["conclusion"] in ("success", "neutral", "skipped") for r in cloud_build):