test-package: assert BUILD_COMMIT is a 7-char short SHA

(cherry picked from commit b7a9b7bc5a)
This commit is contained in:
Andrej730
2026-07-16 18:56:44 +05:00
committed by Dion Moult
parent ddbd3adf40
commit a62238bcaf
@@ -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] = []