From 77de0936d81c2ea759d9a0ff6e42c9470c87e841 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Wed, 22 Jul 2026 14:00:18 -0400 Subject: [PATCH] docs: generate_packages_doc.py: guard against no pipeline info The docs generation script fails if there's no pipeline info, which is the case now for our GitHub builds since they don't provide a pipeline ID on GitLab to reference. Guard against this so that it doesn't cause build failures, but leave the logic there in case we ever need to re-deploy the new version of this script on GitLab infrastructure. Signed-off-by: Trevor Gamblin --- docs/packages/generate_packages_doc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/packages/generate_packages_doc.py b/docs/packages/generate_packages_doc.py index 072dc2d..0b37071 100644 --- a/docs/packages/generate_packages_doc.py +++ b/docs/packages/generate_packages_doc.py @@ -80,7 +80,9 @@ def get_upstream_tag(package_name, version, package_list): ( pkg["pipeline"]["ref"] for pkg in package_list - if pkg["name"] == package_name and pkg["version"].startswith(version) + if pkg["name"] == package_name + and pkg["version"].startswith(version) + and "pipeline" in pkg ), None, )