You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: Let local native lanes attest the macOS and Windows jobs #443
Follow-up to #436 (maintainer direction): a change to platform code must be attested locally or run in CI. #440 does the "run in CI" half: ci/ci_scope.py triggers the macOS/Windows jobs only when macOS/Windows code (or shared build/CI config) changes. This issue adds the attestation half, following zackees/ci.yml GATE-010/011.
Plan
Split the matrix jobs per platform, since GATE-010 skips a whole job when its gates are attested: rust-tests → rust-tests-macos / rust-tests-windows, and rust-tier2 → rust-tier2-macos / rust-tier2-windows. The macOS and Windows OBS builds likewise get one job per platform in the dev cycle.
Optional native lanes in local-gate.toml / ci/local_gate.py:
macos: runs only on a Darwin host (exit 75 elsewhere): soldr cargo test --workspace --locked, clippy, then rust/tools/tier2-validate/validate.sh.
windows: runs only on a Windows host: the same commands with validate.ps1.
Both are fidelity = native; a VM lane (dockur/windows, macOS Recovery) can be added as fidelity = vm.
Gates in ci-attestations.yml:rust/aarch64-apple-darwin/test, cpp/macos-arm64/tier2 (lane macos); rust/x86_64-pc-windows-msvc/test, cpp/windows-x64/tier2 (lane windows). Map them to the split jobs and add those jobs to [gate.trust].skip with covered-by.
Result: a developer on a Mac or Windows box who runs ci-lint local-gate run before pushing a platform change attests it, so CI skips that platform. Everyone else gets the CI jobs as today. Push and release runs never skip (GATE-008/010).
Acceptance
A PR touching only plugins/mac-capture/** whose head carries valid macos attestations skips the macOS jobs; without them, the jobs run.
Concrete proposal (design only, nothing implemented), building on the plan above and the current ci-attestations.yml / local-gate.toml.
Jobs.build-project.yaml has rust-tests and rust-tier2 as matrix jobs over platform_os (macos-26, windows-2025-vs2026). GATE-010 skips whole jobs, so split them into rust-tests-macos, rust-tests-windows, rust-tier2-macos, rust-tier2-windows, each gated by the macos / windows outputs of ci/ci_scope.py (#698 makes those outputs accurate enough for this to matter).
Lanes in local-gate.toml (both tools = ["soldr"], same keep globs as rust-test plus plugins/**, cmake/**, test/cmocka/**):
macos-native: uv run ci/local_gate.py --lane macos-native, exit 75 (not applicable) unless uname -s is Darwin. Runs soldr cargo test --workspace --locked, then rust/tools/tier2-validate/validate.sh.
windows-native: same on a Windows host with validate.ps1.
The existing Linux cross lane keeps attesting clippy/dylint for both targets; it must not be reused for the test gates (it never executes the code).
and add the four jobs to [gate.trust].skip with covered-by pointing at the matching lane. The x86_64-apple-darwin legs stay CI-only (no local host).
Keys / trust. A stamp is per exact tree and per gate, so a Mac developer's stamp carries only the macOS gates and a Linux developer's only the Linux ones; a head that has both (two stamps pushed by amending trailers is not allowed, so the second host re-runs ci-lint local-gate run on the same tree and pushes the stamped commit) skips both. Unattested platforms keep running in CI. The macos-build / windows-build OBS app builds, the merge queue, pushes and the release gate never skip (GATE-008/010), and the ci-full label still forces everything.
Order. (1) #698 scope accuracy, (2) job split with no attestation yet (pure refactor), (3) native lanes + gates, (4) acceptance test: PR touching only plugins/mac-capture/** with a valid macos-native stamp skips the macOS jobs. Wine/VM for Windows stays out of scope (#696).
Triage: it has a concrete plan (split the matrix jobs, optional macos/windows native lanes, gates in ci-attestations.yml) and acceptance criteria. Nothing blocks it. P3: it speeds up a rare path (a platform change attested from a Mac or Windows host), and CI already covers correctness. size:M: a workflow split plus two lanes. Note: splitting jobs in build-project.yaml edits an existing workflow and adds no new workflow file.
Claiming: #443 — native lanes attest the macOS and Windows jobs.
Split rust-tests and rust-tier2 in build-project.yaml into four named jobs (rust-tests-macos, rust-tests-windows, rust-tier2-macos, rust-tier2-windows), each gated by the matching ci/ci_scope.py output. Pure refactor, no attestation yet; verify the workflow parses and ci/test_ci_toml.py stays consistent.
Add macos-native and windows-native lanes to local-gate.toml (exit 75 when not on that host), running the workspace tests and tier2-validate.
Register the four gates in ci-attestations.yml and the matching [gate.trust].skip entries with covered-by.
Acceptance: a PR touching only plugins/mac-capture/** with a valid macos-native stamp skips the macOS jobs; without the stamp they run.
Slices 2 and 3 are up as #2761 (infra/443-native-lanes-local, base master).
macos-native / windows-native lanes in ci/local_gate.py, both optional in local-gate.toml; the host check comes from ci/host_platform.py and any other host exits 75 (EX_TEMPFAIL), which ci-lint reports as "not applicable on this host" and never attests.
The four split jobs move from verify-exempt into [gate.trust].skip with covered-by; ci-mode publishes skip_<job> for each and their if: consumes it (GATE-008).
Gates: rust/<target>/test and cpp/<platform>/tier2 per platform, attested by the native lanes; formatting and clippy stay with lint / cross, so a macOS stamp is the three lanes together.
RED 355c44c4b (17 failures + 4 errors), GREEN 1c54e80a8; ci-lint local-gate lint shows no new finding over master and the full ci/ self-test suite passes locally.
Still unproven, and stated in the PR: no Mac or Windows host has run either lane yet, so the issue's acceptance case (a plugins/mac-capture/**-only PR with a valid macos stamp skipping the macOS jobs) needs a stamp from such a host. I will watch #2761 through the merge queue.
Status check against master e2782b4ac: the implementation half of this issue is complete on master, and the only thing left is the on-host acceptance run, which needs a Mac and a Windows box.
Evidence, all on master:
Split jobs — .github/workflows/build-project.yaml has rust-tests-macos, rust-tests-windows, rust-tier2-macos and rust-tier2-windows, each hardcoded to its runner and gated by needs.ci-mode.outputs.skip_<job> (rust-tests-linux stays the Linux leg). That is the per-platform shape GATE-010 needs.
Native lanes — local-gate.toml declares [gate.lanes.macos-native] and [gate.lanes.windows-native], both running uv run ci/local_gate.py --lane …; a host that is not Darwin/Windows exits 75, so ci-lint reports "not applicable" and never attests.
Gate wiring — ci-attestations.yml registers rust/aarch64-apple-darwin/test and cpp/macos-arm64/tier2 on lane macos-native, rust/x86_64-pc-windows-msvc/test and cpp/windows-x64/tier2 on windows-native, maps them to the four jobs, and the [gate.trust].skipcovered-by entry lists each job's gates (line 101).
What is not done, and cannot be done from this Linux host: the acceptance run — a PR touching only plugins/mac-capture/** whose head carries a valid macos attestation skips rust-tests-macos/rust-tier2-macos, and the same for Windows, with the release gate ignoring attestations. That needs ci-lint local-gate run on a Darwin and a Windows host. Keeping the claim; no further code is implied by this issue.
Correction to the sentence above: the local branches infra/443-native-lanes / -local are not literal ancestors of master (the work landed squash-merged), and git diff origin/master <branch> still shows master ahead by the later #2757 Windows-encoding hunk. The claim to check is the content, not the ancestry: the four job names, both lanes and the four gate mappings are all present in master's build-project.yaml, local-gate.toml and ci-attestations.yml as listed.
Claiming: #443 — record the status of the on-host acceptance run.
The implementation half is on master (#2746 split the jobs, #2761 added the macos-native / windows-native lanes and their gates), and I re-checked it against 6b853312d:
build-project.yaml has rust-tests-macos, rust-tests-windows, rust-tier2-macos, rust-tier2-windows.
local-gate.toml has both lanes optional, and ci/local_gate.py raises NotApplicable
(exit 75) off-host.
ci-attestations.yml maps rust/aarch64-apple-darwin/test, cpp/macos-arm64/tier2, rust/x86_64-pc-windows-msvc/test, cpp/windows-x64/tier2, and [gate.trust].skip lists
all seven jobs with their covered-by.
Blocked: the only remaining work is the on-host acceptance run, which needs a macOS host and a Windows host.
Acceptance asks for two things this Linux checkout cannot produce:
a PR touching only plugins/mac-capture/** whose head carries valid macos attestations
skips the macOS jobs (and the Windows mirror of it);
the release gate ignores attestations.
Both need ci-lint local-gate run executed on each platform: the macos-native lane wants soldr cargo test --workspace --locked, clippy and rust/tools/tier2-validate/validate.sh on
Darwin, the windows-native lane the same with validate.ps1 on Windows, and each attests only
its own host. Everything that could be verified from here — the four split jobs, the two lanes,
the gate names and the [gate.trust] mapping — is already on master and checks out against 6b853312d (see the claim comment above).
Whoever has the hardware: run the gate on a Mac and on a Windows box, push a branch that touches plugins/mac-capture/**, and confirm the macOS (and Windows) jobs report skipping; then this
issue can close.
Activity
zackees commentedon Oct 15, 2026
Concrete proposal (design only, nothing implemented), building on the plan above and the current
ci-attestations.yml/local-gate.toml.Jobs.
build-project.yamlhasrust-testsandrust-tier2as matrix jobs overplatform_os(macos-26,windows-2025-vs2026). GATE-010 skips whole jobs, so split them intorust-tests-macos,rust-tests-windows,rust-tier2-macos,rust-tier2-windows, each gated by themacos/windowsoutputs ofci/ci_scope.py(#698 makes those outputs accurate enough for this to matter).Lanes in
local-gate.toml(bothtools = ["soldr"], samekeepglobs asrust-testplusplugins/**,cmake/**,test/cmocka/**):macos-native:uv run ci/local_gate.py --lane macos-native, exit 75 (not applicable) unlessuname -sis Darwin. Runssoldr cargo test --workspace --locked, thenrust/tools/tier2-validate/validate.sh.windows-native: same on a Windows host withvalidate.ps1.crosslane keeps attesting clippy/dylint for both targets; it must not be reused for the test gates (it never executes the code).Gates (
ci-attestations.yml):and add the four jobs to
[gate.trust].skipwithcovered-bypointing at the matching lane. The x86_64-apple-darwin legs stay CI-only (no local host).Keys / trust. A stamp is per exact tree and per gate, so a Mac developer's stamp carries only the macOS gates and a Linux developer's only the Linux ones; a head that has both (two stamps pushed by amending trailers is not allowed, so the second host re-runs
ci-lint local-gate runon the same tree and pushes the stamped commit) skips both. Unattested platforms keep running in CI. Themacos-build/windows-buildOBS app builds, the merge queue, pushes and the release gate never skip (GATE-008/010), and theci-fulllabel still forces everything.Order. (1) #698 scope accuracy, (2) job split with no attestation yet (pure refactor), (3) native lanes + gates, (4) acceptance test: PR touching only
plugins/mac-capture/**with a validmacos-nativestamp skips the macOS jobs. Wine/VM for Windows stays out of scope (#696).zackees commentedon Oct 25, 2026
/ready
Triage: it has a concrete plan (split the matrix jobs, optional
macos/windowsnative lanes, gates inci-attestations.yml) and acceptance criteria. Nothing blocks it. P3: it speeds up a rare path (a platform change attested from a Mac or Windows host), and CI already covers correctness. size:M: a workflow split plus two lanes. Note: splitting jobs inbuild-project.yamledits an existing workflow and adds no new workflow file.zackees commentedon Oct 28, 2026
Claiming: #443 — native lanes attest the macOS and Windows jobs.
rust-testsandrust-tier2inbuild-project.yamlinto four named jobs (rust-tests-macos,rust-tests-windows,rust-tier2-macos,rust-tier2-windows), each gated by the matchingci/ci_scope.pyoutput. Pure refactor, no attestation yet; verify the workflow parses andci/test_ci_toml.pystays consistent.macos-nativeandwindows-nativelanes tolocal-gate.toml(exit 75 when not on that host), running the workspace tests andtier2-validate.ci-attestations.ymland the matching[gate.trust].skipentries withcovered-by.plugins/mac-capture/**with a validmacos-nativestamp skips the macOS jobs; without the stamp they run.Draft PR once the job split parses locally.
ci(build-project): split the native Rust test and Tier 2 jobs per pla…
zackees commentedon Oct 28, 2026
Slices 2 and 3 are up as #2761 (
infra/443-native-lanes-local, base master).macos-native/windows-nativelanes inci/local_gate.py, bothoptionalinlocal-gate.toml; the host check comes fromci/host_platform.pyand any other host exits 75 (EX_TEMPFAIL), whichci-lintreports as "not applicable on this host" and never attests.verify-exemptinto[gate.trust].skipwithcovered-by;ci-modepublishesskip_<job>for each and theirif:consumes it (GATE-008).rust/<target>/testandcpp/<platform>/tier2per platform, attested by the native lanes; formatting and clippy stay withlint/cross, so a macOS stamp is the three lanes together.355c44c4b(17 failures + 4 errors), GREEN1c54e80a8;ci-lint local-gate lintshows no new finding over master and the fullci/self-test suite passes locally.Still unproven, and stated in the PR: no Mac or Windows host has run either lane yet, so the issue's acceptance case (a
plugins/mac-capture/**-only PR with a validmacosstamp skipping the macOS jobs) needs a stamp from such a host. I will watch #2761 through the merge queue.zackees commentedon Oct 30, 2026
Status check against master
e2782b4ac: the implementation half of this issue is complete on master, and the only thing left is the on-host acceptance run, which needs a Mac and a Windows box.Evidence, all on master:
.github/workflows/build-project.yamlhasrust-tests-macos,rust-tests-windows,rust-tier2-macosandrust-tier2-windows, each hardcoded to its runner and gated byneeds.ci-mode.outputs.skip_<job>(rust-tests-linuxstays the Linux leg). That is the per-platform shape GATE-010 needs.local-gate.tomldeclares[gate.lanes.macos-native]and[gate.lanes.windows-native], both runninguv run ci/local_gate.py --lane …; a host that is not Darwin/Windows exits 75, soci-lintreports "not applicable" and never attests.ci-attestations.ymlregistersrust/aarch64-apple-darwin/testandcpp/macos-arm64/tier2on lanemacos-native,rust/x86_64-pc-windows-msvc/testandcpp/windows-x64/tier2onwindows-native, maps them to the four jobs, and the[gate.trust].skipcovered-byentry lists each job's gates (line 101).infra/443-native-lanes/-localin this checkout are both fully contained in master.What is not done, and cannot be done from this Linux host: the acceptance run — a PR touching only
plugins/mac-capture/**whose head carries a validmacosattestation skipsrust-tests-macos/rust-tier2-macos, and the same for Windows, with the release gate ignoring attestations. That needsci-lint local-gate runon a Darwin and a Windows host. Keeping the claim; no further code is implied by this issue.zackees commentedon Oct 30, 2026
Correction to the sentence above: the local branches
infra/443-native-lanes/-localare not literal ancestors of master (the work landed squash-merged), andgit diff origin/master <branch>still shows master ahead by the later#2757Windows-encoding hunk. The claim to check is the content, not the ancestry: the four job names, both lanes and the four gate mappings are all present in master'sbuild-project.yaml,local-gate.tomlandci-attestations.ymlas listed.ci(build-project): split the native Rust test and Tier 2 jobs per pla…
ci(gate): attest the macOS and Windows jobs from their own hosts (obs…
zackees commentedon Oct 31, 2026
Claiming: #443 — record the status of the on-host acceptance run.
The implementation half is on master (#2746 split the jobs, #2761 added the
macos-native/windows-nativelanes and their gates), and I re-checked it against6b853312d:build-project.yamlhasrust-tests-macos,rust-tests-windows,rust-tier2-macos,rust-tier2-windows.local-gate.tomlhas both lanesoptional, andci/local_gate.pyraisesNotApplicable(exit 75) off-host.
ci-attestations.ymlmapsrust/aarch64-apple-darwin/test,cpp/macos-arm64/tier2,rust/x86_64-pc-windows-msvc/test,cpp/windows-x64/tier2, and[gate.trust].skiplistsall seven jobs with their
covered-by.Nothing is left that a Linux host can do.
zackees commentedon Oct 31, 2026
Blocked: the only remaining work is the on-host acceptance run, which needs a macOS host and a Windows host.
Acceptance asks for two things this Linux checkout cannot produce:
plugins/mac-capture/**whose head carries validmacosattestationsskips the macOS jobs (and the Windows mirror of it);
Both need
ci-lint local-gate runexecuted on each platform: themacos-nativelane wantssoldr cargo test --workspace --locked, clippy andrust/tools/tier2-validate/validate.shonDarwin, the
windows-nativelane the same withvalidate.ps1on Windows, and each attests onlyits own host. Everything that could be verified from here — the four split jobs, the two lanes,
the gate names and the
[gate.trust]mapping — is already on master and checks out against6b853312d(see the claim comment above).Whoever has the hardware: run the gate on a Mac and on a Windows box, push a branch that touches
plugins/mac-capture/**, and confirm the macOS (and Windows) jobs reportskipping; then thisissue can close.