Repository navigation
Description
What
.github/actions/windows-patches/action.yaml is nine multi-line run: steps in PowerShell, so ci-lint precheck reports 12 GEN-005 approved exceptions for that path (runs.steps[0..10], one per shell block plus the shell: pwsh keys). The Python-port sweep has already gone through the sibling composite actions (setup-macos-codesigning #2794/#2795, compatibility-validator #2692, services-validator, flatpak-manifest-validator, qt-xml-validator, generate-docs, check-changes, run-swift-format #2792); this action is the largest one still shell.
Findings on origin/master (ci-lint precheck, pin a1917ce7…, header 5 violation(s), 400 approved exception(s), 10 needs_review); the action path appears 12 times in the GEN-005 section:
grep -c 'APPROVED EXCEPTION .github/actions/windows-patches/action.yaml' precheck.out
12
Steps that carry a finding:
| step | what the block does |
|---|---|
Download Release Artifact |
gh release download the Windows zip, gh attestation verify --owner obsproject, Expand-Archive to build/ |
Setup bouf |
gh release download the bouf and bouf-nsis zips, compare both SHA-256s, Expand-Archive to bin/ and nsis/ |
Install NSIS |
winget install --id NSIS.NSIS |
Install rclone and pandoc |
choco install rclone pandoc -y --no-progress |
Download Previous Builds |
rclone -q copy :s3:obs-builds/<arch> old_builds (env carries the GCS credentials) |
Prepare Release Notes |
git tag -l --format=%(contents:subject) + a # rule + %(contents:body) into notes.rst |
Run bouf |
bouf.exe with the config/version/branch/notes/-i/-p/-o argument list |
The three .ps1 helpers (Ensure-Location.ps1, Invoke-External.ps1, Logger.ps1) keep their own path-scoped exceptions and are not part of this unit; this PR removes only the action.yaml block.
Fix
One module, ci/windows_patches.py (#!/usr/bin/env -S uv run --no-project --script), one subcommand per step, each step a single uv run call — the shape #2794/#2795 used for the macOS signing action:
- a pinned
astral-sh/setup-uvstep at the top of the action (both callers,publish.yamlanddispatch.yaml, check the repository out before the action and install nothing else) with thesave-cache: ${{ github.ref == 'refs/heads/master' }}expression and the CACHE-013cache-suffixpr-<N>expression, so the new step adds no CACHE-013 finding; download—gh release download+gh attestation verifyas two child processes andzipfilefor the extraction;setup-bouf— the same two downloads,hashlib.sha256againstBOUF_HASH/BOUF_NSIS_HASH(a mismatch fails the step),zipfileintobin/andnsis/;install-nsis,install-tools— the samewinget/chocoargv;download-previous— the samercloneargv, environment untouched;prepare-notes— the same threegit tag -l --format=calls, written with the same#rule and blank line;run-bouf— the same argument list, path resolved fromGITHUB_WORKSPACE.
RED/GREEN is the precheck header: 400 -> 388 approved exception(s), no other count moving, and ci/test_windows_patches.py pins it offline (module absent + ci.toml block present on master; argv, hash mismatch and exit statuses against stubs).
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 28, 2026
Claiming: investigation — the twelve GEN-005 findings for
.github/actions/windows-patches/action.yamlare enumerated in the body, so this is the port itself, not an open question.Plan (one PR, from
origin/master):ci/test_windows_patches.py— module absent,ci.tomlGEN-005 block for this path still present.ci/windows_patches.py(one subcommand per step), the action reduced to oneuv runcall per step plus a pinnedSet Up uv, and theci.tomlblock deleted.ci-lint precheck400 -> 388 approved exceptions, no other count moving.zackees commentedon Oct 28, 2026
/ready
Twelve enumerated findings in one action, one module, one offline test — scope is settled, so this is Ready rather than an open investigation.
zackees commentedon Oct 28, 2026
/ready
zackees commentedon Oct 28, 2026
Claiming: the port (single PR,
infra/2804-windows-patches-python)RED
ci/test_windows_patches.pyfirst, thenci/windows_patches.py, the action edit and theci.tomlblock deletion.zackees commentedon Oct 28, 2026
Port opened as #2806 (
infra/2804-windows-patches-python).3e4b4a5c5:ci/test_windows_patches.pyonly, 18 cases; fails on master (module absent + action still PowerShell +ci.tomlblock present).78f341842:ci/windows_patches.py(seven subcommands), the action reduced to oneuv run --no-project --scriptcall per step with a pinnedSet Up uvfirst, and the GEN-005 block deleted.Correction to the body's header: master moved while this tick ran, so the measured pair is 407 -> 395 approved exceptions (not 400 -> 388), exactly the twelve
windows-patches/action.yamllines, with no other rule moving — CACHE-013 stays 12, so the new setup-uv step adds no finding.Local:
ci/test_windows_patches.py18/18,ci.test_uv_run+ci.test_ci_toml50/50,ruff checkclean. Not verified: no Windows lane runs this action from a PR path, so the realwinget/choco/rclone/bouf.exeexecution is unproven here.