From ef34496a8991af70703d5704acd05ce0989cf4c1 Mon Sep 17 00:00:00 2001 From: Danyang Chen Date: Wed, 2 Dec 2026 14:42:37 +0800 Subject: [PATCH] NOTICE: name the vendored DS-Bot tag from the pin, not v0.3.10 The root NOTICE still called the vendored tree "(unmodified Fei2411/DS-Bot v0.3.10)" while runtime/ds-bot-upstream.pin.json pins tag v0.4.3 at 5a9dc8d3dc9e2dc22679a97e7028476ace62640c. Nothing read the NOTICE for that tag, so the notice packaged with the repository disagreed with what ships. - NOTICE now names v0.4.3 - verify-reuse-audit-pins.py fails when " " is absent from the root NOTICE, so a pin bump cannot leave the NOTICE behind; the expected string is built from the pin, not hardcoded Refs #3495 --- NOTICE | 2 +- scripts/verify-reuse-audit-pins.py | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/NOTICE b/NOTICE index 18dd71410..447a03e30 100644 --- a/NOTICE +++ b/NOTICE @@ -10,7 +10,7 @@ Imported and vendored trees keep their own LICENSE and NOTICE files: runtime/flybot/ Apache License 2.0 and NOTICE runtime/ds-bot-upstream/ Apache License 2.0 and NOTICE - (unmodified Fei2411/DS-Bot v0.3.10) + (unmodified Fei2411/DS-Bot v0.4.3) services/bot-social/ MIT, Copyright (c) 2026 Birfy Redistributors must retain those texts, copyright notices, and attribution diff --git a/scripts/verify-reuse-audit-pins.py b/scripts/verify-reuse-audit-pins.py index b08134c35..bda44ec01 100755 --- a/scripts/verify-reuse-audit-pins.py +++ b/scripts/verify-reuse-audit-pins.py @@ -142,7 +142,10 @@ def check_shipped() -> int: print("FAIL: missing runtime/ds-bot-upstream.pin.json") errors += 1 else: - pin_dsh = (json.loads(pin_path.read_text()).get("dsh") or "") + pin_data = json.loads(pin_path.read_text()) + pin_dsh = (pin_data.get("dsh") or "") + pin_repo = (pin_data.get("repo") or "") + pin_tag = (pin_data.get("tag") or "") recipe_dsh = ((shipped.get("image_recipe") or {}).get("dsh") or "") snapshot_dsh = ((shipped.get("image_recipe") or {}).get("dsh_audit_snapshot") or "") status = record.get("audit_status") or {} @@ -174,6 +177,12 @@ def check_shipped() -> int: errors += 1 elif pin_dsh: print(f"OK root NOTICE names the shipped DSH version @deepseek-ai/dsh@{pin_dsh}") + expected_upstream = f"{pin_repo} {pin_tag}".strip() + if expected_upstream and expected_upstream not in notice: + print(f"FAIL: root NOTICE does not name the vendored upstream {expected_upstream}") + errors += 1 + elif expected_upstream: + print(f"OK root NOTICE names the vendored upstream {expected_upstream}") if kit.get("license") != LIBREOFFICE_LICENSE or "blocker" not in (kit.get("redistribution") or ""): print("FAIL: libreoffice-kit MPL clearance blocker not recorded") errors += 1