Repository navigation
fix(ci): compile all desktop release tests and reuse the build - #13555
Conversation
Select package-wide release test compilation for PR/push target changes and unconditionally for scheduled/manual health checks. Build the app and tests once with explicit testability and shared release/triple options, then run the notification regression with --skip-build. Keep pre-push debug-only and the existing hosted job ceiling. Regressions cover #13123/#13467; build reuse addresses the duplicate compilation reported in #13481. Validation: make setup; make preflight (22 checks); metadata and failure-class validation; 29 selector and 36 workflow tests; executable runner CLI fixtures; actionlint with repository CI flags. Xcode 26.6 release build-tests -j4 passed in 703.57s; 11 filtered notification tests passed with --skip-build in 6.22s. All 2707 compiled artifact size/mtime pairs were unchanged. Pinned Xcode16.4 and hosted timing remain CI verification; no app/backend launch performed. Failure-Class: FC-path-filter-masks-default-branch-health
There was a problem hiding this comment.
1 issue found across 9 files
Confidence score: 3/5
.github/workflows/desktop-swift-ci.ymlnow runs--release-test-compilefor every ordinary desktop source/test PR, consuming a second scarce macos-15 runner for roughly 25 minutes and potentially increasing CI queue times—limit this job to release-related changes or otherwise avoid the duplicate runner demand.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/desktop-swift-ci.yml">
<violation number="1" location=".github/workflows/desktop-swift-ci.yml:480">
P2: Every ordinary desktop source/test PR now wakes `--release-test-compile` on the `desktop-swift-release-compile` job, claiming a second scarce hosted macos-15 runner for a ~25-min full release-test build. The removed comment this diff deletes (in `scripts/pre_push_ci_prediction.py`) documented that exactly this shape was the dominant Desktop Swift CI queue driver (60-97 min at a ~5-runner cap), and the PR body defers hosted timing as 'CI evidence to collect'. Retaining the tightened PR lane while it re-introduces the measured cost with no hosted-mac timing window is a real capacity/queue risk; confirm the intended tradeoff and, if it is, capture the hosted timing on the first few source PRs before merging widely.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| # manual health runs require this independently of the final commit's paths. | ||
| # Reuse one combined app/test build within the existing 60-minute budget | ||
| # (#13481); resource-only main pushes retain the app-only path. | ||
| if: ${{ needs.changes.outputs.should_release_compile == 'true' || needs.changes.outputs.should_release_test_compile == 'true' || needs.changes.outputs.should_notification_release_regression == 'true' }} |
There was a problem hiding this comment.
P2: Every ordinary desktop source/test PR now wakes --release-test-compile on the desktop-swift-release-compile job, claiming a second scarce hosted macos-15 runner for a ~25-min full release-test build. The removed comment this diff deletes (in scripts/pre_push_ci_prediction.py) documented that exactly this shape was the dominant Desktop Swift CI queue driver (60-97 min at a ~5-runner cap), and the PR body defers hosted timing as 'CI evidence to collect'. Retaining the tightened PR lane while it re-introduces the measured cost with no hosted-mac timing window is a real capacity/queue risk; confirm the intended tradeoff and, if it is, capture the hosted timing on the first few source PRs before merging widely.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/desktop-swift-ci.yml, line 480:
<comment>Every ordinary desktop source/test PR now wakes `--release-test-compile` on the `desktop-swift-release-compile` job, claiming a second scarce hosted macos-15 runner for a ~25-min full release-test build. The removed comment this diff deletes (in `scripts/pre_push_ci_prediction.py`) documented that exactly this shape was the dominant Desktop Swift CI queue driver (60-97 min at a ~5-runner cap), and the PR body defers hosted timing as 'CI evidence to collect'. Retaining the tightened PR lane while it re-introduces the measured cost with no hosted-mac timing window is a real capacity/queue risk; confirm the intended tradeoff and, if it is, capture the hosted timing on the first few source PRs before merging widely.</comment>
<file context>
@@ -471,15 +472,12 @@ jobs:
+ # manual health runs require this independently of the final commit's paths.
+ # Reuse one combined app/test build within the existing 60-minute budget
+ # (#13481); resource-only main pushes retain the app-only path.
+ if: ${{ needs.changes.outputs.should_release_compile == 'true' || needs.changes.outputs.should_release_test_compile == 'true' || needs.changes.outputs.should_notification_release_regression == 'true' }}
runs-on: macos-15
timeout-minutes: 60
</file context>
The desktop Swift CI contract reads swift-test-suites.sh and scripts/pre-push, so changes to either must select that check in the shared local/CI manifest. Add the two missing triggers without changing release coverage or budgets. Validation: 36 desktop Swift CI contract tests, 4 manifest route tests, 52 check runner tests; CLI selection verified both inputs in local and CI; make preflight passed all 22 checks (29.95s). Failure-Class: FC-path-filter-masks-default-branch-health
|
Cubic thread re: PR-lane release-test-compile capacity ( The tradeoff is intended and already stated in the PR body: this PR exists precisely because DEBUG-only seams shipped through a lane that never compiled release tests (#13123/#13467), so every desktop source/test/package PR must compile the full release test target. The queue comment it deletes described the old app-only release compile lane, whose cost profile no longer applies. The requested hosted timing now exists: the Check status note: the first |
Desktop tests referencing DEBUG-only production seams could merge without release test compilation (#13123, #13467). Select a whole-target release test compile for source, tests, native targets, package and runner changes on PRs and pushes, and always select it for scheduled/manual health events.
Build the release app and tests together once with explicit testability and a shared ARM triple; run the existing notification regression with --skip-build. This repairs the duplicate-build path behind #13481 without raising the 60-minute ceiling or expanding local pre-push. Target-changing PRs now also consume the existing release runner. One hosted run completed within the unchanged budget; broader PR coverage still consumes additional macOS runner time, and this single measurement does not establish fleet capacity or a worst-case runtime.
Validation in
/Volumes/scratch/worktrees/omi/desktop-release-test-coverage, based ond5cbd548f6:git pushpre-push gate passed for the initial change and follow-upd47c241cb3, including committed-diff metadata, desktop tooling and selected backend tests. Internal-only changelog fragment included.make setup;OMI_PR_BODY_FILE=/tmp/omi-release-coverage-pr-body.md make preflight: 22 checks pass (30.15s); metadata validation passes.actionlint -shellcheck '' .github/workflows/desktop-swift-ci.ymlpasses with the repository's CI flags.scripts/pre-pushanddesktop/macos/scripts/swift-test-suites.shnow both selectdesktop-swift-ci-contractin local and CI lanes. Verified through the real selector CLI; 36 workflow-contract, 4 manifest-route, and 52 check-runner tests pass (92 total). Follow-upmake preflightpasses all 22 checks (29.95s).f47042ff0d, passed on pinned Xcode 16.4 / 16F6: release-test compile step 1,597s (26m37s); complete job 1,642s (27m22s). The notification regression was skipped, correctly, because this diff did not select notification-boundary execution. This is hosted compile-only evidence; reuse evidence is the local filtered run below.xcrun swift build -c release --package-path Desktop --triple arm64-apple-macosx -Xswiftc -enable-testing --build-tests -j 4passed in 703.57s wall. The first real attempt exposed that --build-tests alone omits release testability; the shared test options now supply it explicitly.swift test --skip-build --filter UserNotificationCallbackBridgeTests/ -j 4: 11 tests pass in 6.22s wall; all 2,707 compiled artifact sizes and modification timestamps are unchanged. This proves actual local artifact reuse.Pinned Xcode 16.4 is unavailable on this Mac; the successful hosted run above supplies that compiler evidence. The local and single hosted timings do not prove a worst-case 60-minute bound or eliminate the queue-capacity cost of broader PR coverage. No app launch or backend access.
The existing selector and runner own this guard; no separate static DEBUG scanner is introduced.
Failure-Class: FC-path-filter-masks-default-branch-health