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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
CI: pin the Arrow and sqlite-vec tags the Windows ARM wheelhouse signs to commits (#14092)
Daniel Hanc5c62c36bd2e
diff --git a/.github/workflows/woa-wheelhouse.yml b/.github/workflows/woa-wheelhouse.ymlindex d7479796202..e2fab3925ee 100644--- a/.github/workflows/woa-wheelhouse.yml+++ b/.github/workflows/woa-wheelhouse.yml@@ -29,9 +29,15 @@ on:arrow_tag:description: "apache/arrow tag to build pyarrow from"default: "apache-arrow-25.0.1"+ arrow_commit:+ description: "commit that arrow_tag must resolve to (a tag can be moved under a signed build)"+ default: "beccec0d0c451b7aa3e4530416ac431b3c035c69"sqlite_vec_tag:description: "asg017/sqlite-vec tag"default: "v0.1.9"+ sqlite_vec_commit:+ description: "commit that sqlite_vec_tag must resolve to"+ default: "e9f598abfa0c06b328d8fe5da9c3760cce74be10"release_tag:description: "release tag to publish under"default: "Windows-ARM64"@@ -77,6 +83,24 @@ jobs:ref: ${{ inputs.arrow_tag }}path: arrow+ - name: Confirm the Arrow tag is the pinned commit+ shell: pwsh+ env:+ PINNED_COMMIT: ${{ inputs.arrow_commit }}+ run: |+ $ErrorActionPreference = "Stop"+ $pin = $env:PINNED_COMMIT+ if ($pin -notmatch '^[0-9a-f]{40}$') {+ Write-Output "::error::arrow_commit must be a full commit SHA, got '$pin'."+ exit 1+ }+ $head = (git -C arrow rev-parse HEAD).Trim()+ if ($head -ne $pin) {+ Write-Output "::error::arrow checkout is $head, expected the pinned $pin. Did the tag move?"+ exit 1+ }+ Write-Host "arrow @ $head"+- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:repository: ${{ env.ARROW_WOA_REPO }}@@ -299,6 +323,24 @@ jobs:path: svfetch-depth: 0+ - name: Confirm the sqlite-vec tag is the pinned commit+ shell: pwsh+ env:+ PINNED_COMMIT: ${{ inputs.sqlite_vec_commit }}+ run: |+ $ErrorActionPreference = "Stop"+ $pin = $env:PINNED_COMMIT+ if ($pin -notmatch '^[0-9a-f]{40}$') {+ Write-Output "::error::sqlite_vec_commit must be a full commit SHA, got '$pin'."+ exit 1+ }+ $head = (git -C sv rev-parse HEAD).Trim()+ if ($head -ne $pin) {+ Write-Output "::error::sv checkout is $head, expected the pinned $pin. Did the tag move?"+ exit 1+ }+ Write-Host "sv @ $head"+- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:path: toolsdiff --git a/tests/security/test_woa_wheelhouse_integrity.py b/tests/security/test_woa_wheelhouse_integrity.pyindex 18a83012d25..c5030435701 100644--- a/tests/security/test_woa_wheelhouse_integrity.py+++ b/tests/security/test_woa_wheelhouse_integrity.py@@ -8,6 +8,7 @@ from __future__ import annotationsimport refrom pathlib import Path+import pytestimport yaml@@ -78,3 +79,46 @@ def test_publishing_is_off_by_default():publish = _dispatch_inputs(_workflow())["publish"]assert publish["type"] == "boolean"assert publish["default"] is False+++ "job,path,tag_input,commit_input,step",+ [+ (+ "build-pyarrow",+ "arrow",+ "arrow_tag",+ "arrow_commit",+ "Confirm the Arrow tag is the pinned commit",+ ),+ (+ "build-sqlite-vec",+ "sv",+ "sqlite_vec_tag",+ "sqlite_vec_commit",+ "Confirm the sqlite-vec tag is the pinned commit",+ ),+ ],+)+def test_upstream_tags_are_checked_against_a_pinned_commit(+ job, path, tag_input, commit_input, step+):+ # A third-party tag can be moved, and these sources are built into wheels we sign and publish.+ inputs = _dispatch_inputs(_workflow())+ assert COMMIT_SHA.match(str(inputs[commit_input]["default"])), inputs[commit_input]+ steps = _steps(_workflow(), job)+ names = [s.get("name") for s in steps]+ assert step in names, names+ checkout = next(+ i+ for i, s in enumerate(steps)+ if s.get("with", {}).get("path") == path+ and s.get("with", {}).get("ref") == f"${{{{ inputs.{tag_input} }}}}"+ )+ guard = names.index(step)+ assert guard == checkout + 1, "the pin must be confirmed straight after the checkout"+ body = steps[guard]["run"]+ # Through the environment, never interpolated into the script.+ assert steps[guard]["env"]["PINNED_COMMIT"] == f"${{{{ inputs.{commit_input} }}}}"+ assert "${{" not in body+ assert "$env:PINNED_COMMIT" in body and "rev-parse HEAD" in body and "[0-9a-f]{40}" in body