From 42e9e523bf86d34d88b9d96620c11c9dfcdb5e2a Mon Sep 17 00:00:00 2001 From: Julien Stephan Date: Tue, 18 Aug 2026 22:46:52 +0200 Subject: [PATCH] docs: exit on yaml parsing error The multi-line comment blocks in the polars-runtime-32, polars-runtime-64, and torch YAML files were malformed, causing YAML parsing errors. As a result, these files were silently ignored and were not deployed or included in the documentation. Fix the malformed comment blocks and exit on parsing errors to prevent similar issues from being silently ignored in the future. Signed-off-by: Julien Stephan --- docs/packages/generate_packages_doc.py | 2 +- docs/packages/polars-runtime-32.yaml | 7 ++++--- docs/packages/polars-runtime-64.yaml | 7 ++++--- docs/packages/torch.yaml | 7 ++++--- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/packages/generate_packages_doc.py b/docs/packages/generate_packages_doc.py index 6b4215ce..754b4083 100644 --- a/docs/packages/generate_packages_doc.py +++ b/docs/packages/generate_packages_doc.py @@ -102,7 +102,7 @@ def generate_md_page(yaml_file, output_md, package_list): try: with open(yaml_file, "r", encoding="utf-8") as f: package_data = yaml.safe_load(f) - except (yaml.YAMLError, FileNotFoundError) as e: + except FileNotFoundError as e: print(f"Error reading {yaml_file}: {e}") return None, None diff --git a/docs/packages/polars-runtime-32.yaml b/docs/packages/polars-runtime-32.yaml index 2e9f9cf0..756c917b 100644 --- a/docs/packages/polars-runtime-32.yaml +++ b/docs/packages/polars-runtime-32.yaml @@ -9,6 +9,7 @@ versions: - version: 1.41.1 - version: 1.41.2 - version: 1.42.1 - comment: We add custom CARGO_ and RUSTUP_ settings for optimization to the - workflow, to avoid exhausting the resources available on the native riscv64 - runners. + comment: | + We add custom CARGO_ and RUSTUP_ settings for optimization to the + workflow, to avoid exhausting the resources available on the native riscv64 + runners. diff --git a/docs/packages/polars-runtime-64.yaml b/docs/packages/polars-runtime-64.yaml index dc890219..8d4a3a73 100644 --- a/docs/packages/polars-runtime-64.yaml +++ b/docs/packages/polars-runtime-64.yaml @@ -9,6 +9,7 @@ versions: - version: 1.41.1 - version: 1.41.2 - version: 1.42.1 - comment: We add custom CARGO_ and RUSTUP_ settings for optimization to the - workflow, to avoid exhausting the resources available on the native riscv64 - runners. + comment: | + We add custom CARGO_ and RUSTUP_ settings for optimization to the + workflow, to avoid exhausting the resources available on the native riscv64 + runners. diff --git a/docs/packages/torch.yaml b/docs/packages/torch.yaml index c5e1f1b2..cdfa7027 100644 --- a/docs/packages/torch.yaml +++ b/docs/packages/torch.yaml @@ -5,6 +5,7 @@ license: Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD- versions: - version: 2.13.0+cpu patched: - comment: We include patches to support building and using container images - for the pytorch CPU builds on RISC-V, including a backport from upstream to - support RISE's out-of-tree pytorch build. + comment: | + We include patches to support building and using container images + for the pytorch CPU builds on RISC-V, including a backport from upstream to + support RISE's out-of-tree pytorch build.