Skip to content

fix(ci): compile all desktop release tests and reuse the build - #13555

Merged
Git-on-my-level merged 3 commits into
mainfrom
codex/desktop-release-test-coverage
Sep 13, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
codex/desktop-release-test-coverage

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

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 on d5cbd548f6:

  • Normal git push pre-push gate passed for the initial change and follow-up d47c241cb3, 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.
  • Selector tests (29), workflow contracts (36), and executable runner CLI fixtures pass, including test(desktop): guard the chat streaming render test to debug builds #13123/test(desktop): guard the DEBUG-only turn-evidence seam so the release-mode test build compiles (#13458) #13467 paths, missing-build/compiler-error propagation and exactly one build for compile plus filtered regression. actionlint -shellcheck '' .github/workflows/desktop-swift-ci.yml passes with the repository's CI flags.
  • Trigger completeness: scripts/pre-push and desktop/macos/scripts/swift-test-suites.sh now both select desktop-swift-ci-contract in 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-up make preflight passes all 22 checks (29.95s).
  • Hosted release job 103521869825, at 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.
  • Xcode 26.6 / 17F113: xcrun swift build -c release --package-path Desktop --triple arm64-apple-macosx -Xswiftc -enable-testing --build-tests -j 4 passed in 703.57s wall. The first real attempt exposed that --build-tests alone omits release testability; the shared test options now supply it explicitly.
  • Same options with 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

Review in cubic

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

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 9 files

Confidence score: 3/5

  • .github/workflows/desktop-swift-ci.yml now runs --release-test-compile for 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' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

Comment thread .github/checks-manifest.yaml Resolved
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
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Cubic thread re: PR-lane release-test-compile capacity (.github/workflows/desktop-swift-ci.yml:480, discussion_r3995597520)

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 --release-test-compile lane on this PR's head (d47c241cb3) completed in 37m14s (run 34683204897, Release compile step 08:27:08→09:04:22), inside the unchanged 60-minute job budget. Follow-up source PRs will publish their own timings on this same lane.

Check status note: the first Desktop Swift Build & Tests failure on this head was VERIFY_RESULT=cancelled — the verify job's full-lane suite step (this PR re-baselines to full because it touches run-swift-ci.sh) was killed by the job-level 60-min cap with no test failures, matching the wedged-batch class documented in #13551 (three runs, zero test failures, exit=143 watchdog + ~23-min quiet). Not introduced by this diff; the same lane passed in ~16 min on #13551's run the same morning, and the failed-jobs rerun of this head's verify job passed in 38m44s (10:54:29→11:33:13) with all checks now green.

@Git-on-my-level
Git-on-my-level merged commit bc37c8a into main Sep 13, 2026
47 of 49 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/desktop-release-test-coverage branch September 13, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant