From a62238bcafb09023c3c2304332c65d74484c7873 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 16 Jul 2026 18:56:44 +0500 Subject: [PATCH] test-package: assert BUILD_COMMIT is a 7-char short SHA (cherry picked from commit b7a9b7bc5a0ffc62eaa7d97dc17f7d5a1f08258c) --- src/ifcopenshell-python/test/test_package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifcopenshell-python/test/test_package.py b/src/ifcopenshell-python/test/test_package.py index 939e1d1719..fce3636f5e 100644 --- a/src/ifcopenshell-python/test/test_package.py +++ b/src/ifcopenshell-python/test/test_package.py @@ -47,6 +47,10 @@ class TestPackageSupportedPlatforms: BINARY_VERSION = find_make_var("BINARY_VERSION") BUILD_COMMIT = find_make_var("BUILD_COMMIT") + # Build workflows upload artifacts using a 7-char short SHA. + assert ( + l := len(BUILD_COMMIT) + ) == 7, f"BUILD_COMMIT must be a 7-char short SHA, got {BUILD_COMMIT!r} (length {l})" required_urls: list[str] = []