Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/dependency_pr_status
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down Expand Up @@ -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):
Expand Down
Loading