Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Pin the ARM64 Arrow overlay to a commit before its wheels are signed (#11911)

Daniel Han4a16bffbecea
diff --git a/.github/workflows/woa-wheelhouse.yml b/.github/workflows/woa-wheelhouse.yml
index a3bdd4e000e..d7479796202 100644
--- a/.github/workflows/woa-wheelhouse.yml
+++ b/.github/workflows/woa-wheelhouse.yml
@@ -51,7 +51,7 @@ env:
# Windows ARM64 support in Arrow's wheel build is CI-only and still unmerged, so it is
# overlaid onto the release tag. Both halves move together or not at all.
ARROW_WOA_REPO: MugundanMCW/arrow
- ARROW_WOA_REF: Pyarrow_WoA
+ ARROW_WOA_REF: 423b9b38f85a2b7634f7fc8e4975b3ed573f3697 # Pyarrow_WoA @ 2026-08-18
jobs:
build-pyarrow:
@@ -87,6 +87,22 @@ jobs:
ci/vcpkg
sparse-checkout-cone-mode: false
+ - name: Confirm the overlay is the pinned commit
+ shell: pwsh
+ run: |
+ $ErrorActionPreference = "Stop"
+ $pin = "${{ env.ARROW_WOA_REF }}"
+ if ($pin -notmatch '^[0-9a-f]{40}$') {
+ Write-Output "::error::ARROW_WOA_REF must be a full commit SHA, got '$pin'. A branch or tag on a third-party fork can change under a signed build."
+ exit 1
+ }
+ $head = (git -C arrow-woa rev-parse HEAD).Trim()
+ if ($head -ne $pin) {
+ Write-Output "::error::overlay checkout is $head, expected the pinned $pin."
+ exit 1
+ }
+ Write-Host "overlay ${{ env.ARROW_WOA_REPO }} @ $head"
+
# Every edit below asserts on the text it replaces, so an upstream rename fails this
# step rather than silently producing an x64 wheel with an arm64 filename.
- name: Overlay the ARM64 build support onto the release tag
diff --git a/tests/security/test_woa_wheelhouse_integrity.py b/tests/security/test_woa_wheelhouse_integrity.py
new file mode 100644
index 00000000000..b3fdefd3b3f
--- /dev/null
+++ b/tests/security/test_woa_wheelhouse_integrity.py
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
+
+"""ARROW_WOA_REF must stay a commit SHA: the fork's batch files build a wheel we sign and publish."""
+
+from __future__ import annotations
+
+import re
+from pathlib import Path
+
+import yaml
+
+
+REPO_ROOT = Path(__file__).resolve().parents[2]
+WORKFLOW = REPO_ROOT / ".github" / "workflows" / "woa-wheelhouse.yml"
+
+COMMIT_SHA = re.compile(r"^[0-9a-f]{40}$")
+
+
+def _workflow():
+ return yaml.safe_load(WORKFLOW.read_text(encoding = "utf-8"))
+
+
+def _steps(workflow, job):
+ return workflow["jobs"][job]["steps"]
+
+
+def _dispatch_inputs(workflow):
+ # YAML 1.1 reads a bare `on` as the boolean true, so that is the key PyYAML hands back.
+ triggers = workflow["on"] if "on" in workflow else workflow[True]
+ return triggers["workflow_dispatch"]["inputs"]
+
+
+def test_arm64_overlay_is_pinned_to_a_commit():
+ ref = _workflow()["env"]["ARROW_WOA_REF"]
+ assert COMMIT_SHA.match(str(ref)), (
+ f"ARROW_WOA_REF is {ref!r}. A branch or tag on {_workflow()['env']['ARROW_WOA_REPO']} "
+ "is mutable, and its batch files are executed to build a wheel we sign and publish."
+ )
+
+
+def test_overlay_checkout_uses_that_pin():
+ checkouts = [
+ step
+ for step in _steps(_workflow(), "build-pyarrow")
+ if str(step.get("uses", "")).startswith("actions/checkout")
+ ]
+ overlay = [
+ step
+ for step in checkouts
+ if step.get("with", {}).get("repository") == "${{ env.ARROW_WOA_REPO }}"
+ ]
+ assert len(overlay) == 1, f"expected one overlay checkout, got {len(overlay)}"
+ assert (
+ overlay[0]["with"]["ref"] == "${{ env.ARROW_WOA_REF }}"
+ ), "the overlay checkout must take the pinned ref, not a literal branch"
+
+
+def test_the_run_re_checks_the_pin_before_copying_the_batch_files():
+ steps = _steps(_workflow(), "build-pyarrow")
+ names = [step.get("name") for step in steps]
+ assert "Confirm the overlay is the pinned commit" in names, names
+ guard = names.index("Confirm the overlay is the pinned commit")
+ overlay = names.index("Overlay the ARM64 build support onto the release tag")
+ assert guard < overlay, "the pin has to be confirmed before the fork's files are copied"
+ body = steps[guard]["run"]
+ assert "rev-parse HEAD" in body
+ assert "[0-9a-f]{40}" in body
+
+
+def test_upstream_sources_are_tags_not_branches():
+ inputs = _dispatch_inputs(_workflow())
+ assert inputs["arrow_tag"]["default"].startswith("apache-arrow-")
+ assert re.match(r"^v\d+\.\d+\.\d+$", inputs["sqlite_vec_tag"]["default"])
+
+
+def test_publishing_is_off_by_default():
+ publish = _dispatch_inputs(_workflow())["publish"]
+ assert publish["type"] == "boolean"
+ assert publish["default"] is False