Repository navigation
ci(#962): call the macOS code-signing action steps as Python (#2794) - #2795
Conversation
|
Handed off to the coordinator. All checks are green ( |
RED: ci/setup_macos_codesigning.py does not exist and ci.toml still carries the GEN-005 exception for .github/actions/setup-macos-codesigning/action.yaml, so all 22 cases fail (18 failures, 4 errors).
GREEN: `ci/setup_macos_codesigning.py` carries the four steps as subcommands (`guard`, `codesign`, `provisioning`, `notarization`), each action step is one `uv run --no-project --script` call, and the add-module step installs `uv` first. The `ci.toml` GEN-005 exception for the action is deleted. `ci-lint precheck` moves 416 -> 412 approved exceptions with no other count changing.
f3f4481 to
7a2e116
Compare
|
Rebased onto Rebased SHAs: RED |
ci-lint precheckreported four GEN-005 findings for.github/actions/setup-macos-codesigning/action.yaml(runs.steps[0..3], thelast block of that shape in the action). Each step is now a single call into
ci/setup_macos_codesigning.py, matching the mergedcompatibility-validatorport (#2692).
RED
f3e84762d—ci/test_setup_macos_codesigning.py, 18 cases (22 withsubtests). Fails on that commit:
ci/setup_macos_codesigning.pydoes not exist(
FAILED (failures=18, errors=4), every behavioural case reportingcan't open file .../ci/setup_macos_codesigning.py) andci.tomlstillcarries the GEN-005 exception for the path.
GREEN
f3f448128:ci/setup_macos_codesigning.py—guard/codesign/provisioning/notarization, each the same sequence ofsecurity,plutiland base64work the zsh step ran, in the same order, writing the same
$GITHUB_OUTPUT/$GITHUB_ENVlines. Only the three shell constructs thesteps used changed shape: the
${${IDENTITY##* }//(\(|\))/}team extraction,the
print ${RANDOM} | shasum | head -c 32keychain password, and thebase64 --decodepipelines.run:steps are oneuv run --no-project --scriptcalleach, and a pinned
astral-sh/setup-uvstep (withsave-cacheand theCACHE-013
pr-<N>cache-suffix, so it adds no CACHE-013 finding) is addedabove the guard, because the guard now calls
uvand a macOS runner has noneof its own.
[[exceptions]]block for the path is deleted fromci.toml.Evidence
uv run python -m unittest ci.test_setup_macos_codesigning— 18 tests OK(
security/plutilstubs record argv; the codesign branch's sixsecuritycalls, the decoded certificate, the generated 32-hex keychain password, the
team transform, the profile UUID/install and the mismatch
::notice::areall asserted).
uv run ci/local_gate.py --only self-test—== self-test: ok(theci/test_uv_run.pyscan included)../lint—== lane lint: ok (37.5s).ci-lint precheck(pina1917ce7…) —5 violation(s), 416 approved exception(s), 10 needs_reviewonorigin/master→5 violation(s), 412 approved exception(s), 10 needs_reviewhere, and no other rule moves.What is not proven here
The signing path only runs with the release credentials, so the
credential-present
securityargv is proven by the stubs, not on a macOSrunner; a real certificate import is the next daily beta's job (the
haveCodesignIdent=falsebranch is what every PR and master macOS jobexercises today). No
docs/features.mdline: CI only, no user-visible change.Refs #2794