Repository navigation
ci(apple): compile tvOS and visionOS runners on runner-owning PRs - #4755
Conversation
PR CI built only the iOS runner (apple.yml smoke lane); tvOS and visionOS compiled only at release time via scripts/build-package-xcuitest.mjs, which let #4608 escape to release. Add a build-runner-tvos-visionos job to the Apple workflow that runs the same xcodebuild build-for-testing compile (setup-apple-runner-build, one parallel leg per platform, generic simulator destinations, arm64, release build variant) on blacksmith-6vcpu-macos-26, whose Xcode ships the tvOS and visionOS SDKs. A device-lane-impact selector step gates the builds on the affected-check model, so macOS minutes are spent only on PRs that own runner sources (apple/runner/** and the other own:swift trees) and fail open when the change set is unknown; pushes to main build unconditionally. Register swift-runner-tvos and swift-runner-visionos in ALL_CHECKS, CHECK_CATALOG (build:xcuitest:tvos / build:xcuitest:visionos), and the own:swift build-ownership rules, so the gate manifest wires the new lane (62 checks across 25 lanes) and the selector can route the job.
Size Report
Startup median (7 runs, lower is better):
|
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
This PR is ready as of 9cab32a. All 21 checks pass, and the Runner Build (tvOS + visionOS) job ran both builds live and reported TEST BUILD SUCCEEDED for each. That job ran live because this PR's workflow and script changes make the selector run everything. Only the cold cache-miss path has run so far; a TypeScript-only PR skipping the builds end to end has not been observed yet. There are no conflicts, and nothing else needs to happen before merge. Not blocking: the job-level |
Summary
PR CI compiled only the iOS runner; tvOS/visionOS compiled only at release time (
scripts/build-package-xcuitest.mjs), which let #4608 escape to release.Adds a
build-runner-tvos-visionosjob to.github/workflows/apple.ymlrunning the samexcodebuild build-for-testingcompile (setup-apple-runner-build, one leg per platform, generic simulator destinations, arm64, release variant) onblacksmith-6vcpu-macos-26, whose Xcode ships the tvOS/visionOS SDKs. Adevice-lane-impactselector step gates it: macOS minutes are spent only on PRs owning runner sources (apple/runner/**and the otherown:swifttrees), failing open on an unknown diff; main pushes build unconditionally. Registersswift-runner-tvos/swift-runner-visionosinALL_CHECKS,CHECK_CATALOG, andown:swiftownership so the gate manifest wires the lane.Touched files: 6 (1 workflow, 2 catalog/selector, 3 tests), +139/-5.
CHECK_CATALOG/own:swiftbeside the other runner builds, not only in release scripts.Validation
Tested SHA:
9cab32a92623f0f621fa3437c0bb2a533ea12173(clean head).pnpm check:gate-manifest-> ok, 62 checks / 25 lanes (base 60/24).node --test scripts/check-affected/{model,device-lanes}.test.ts scripts/gate/*.test.ts-> 107 pass;vitest --project unit-core(apple-ci-impact, device-lane-impact, root-docs-paths-ignore) -> 74 pass.pnpm check:quick(oxlint 0/0, tsc ok);pnpm formatclean; actionlint 1.7.7: no new findings vs base.pnpm check:affected --run --head 9cab32a926...: not completed locally — the shared-host validation lock was held by other worktrees (pids 39662, 15344) and the 300s per-command cap killed the fail-open run mid-suite, so no receipt was emitted. Perdocs/agents/pull-requests.md, CI's serialized gate stage validates the pushed head instead.Runner Build (tvOS + visionOS); PR required checks are authoritative. No device lanes or other workflows touched; no source changes.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.