Skip to content

ci: build native Tier 2 roots in one aggregate target (Windows/macOS) - #5005

Merged
zackees merged 2 commits into
masterfrom
ci/win-tier2-speed-one-build
Nov 17, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/win-tier2-speed-one-build

Conversation

@zackees

@zackees zackees commented Nov 17, 2026

Copy link
Copy Markdown
Member

Refs #4996.

The native Tier 2 validators on Windows and macOS built their five root targets with separate build invocations. On Windows each one launched MSBuild again, and eleven shared dependency projects were revisited four or five times. This adds an opt-in OBS_BUILD_NATIVE_TIER2 option and a single tier2-native aggregate target that contains exactly the former validator roots, so both hosts build them in one traversal. It also adds separate configure and build log markers, so the macOS phases can be timed from logs later. Every compile and link recipe, both CMake cores, the cmocka registry, the four test passes, the Cargo-native contracts, exports and loader checks are unchanged. Nothing is routed or skipped differently.

Measured baseline (eight recent successful jobs per host, from the jobs API and four downloaded logs):

  • Windows: about 21 min on the merge queue and 18 min on PRs. Of that, configure takes about 122-125 s and the main CMake build about 708-822 s. The four CTest passes take about 108-111 s, and ccache hits are about 81%.
  • macOS: about 18 min. Configure plus build takes about 553-581 s.

Expected saving is about 15-40 seconds per Windows job. That is an estimate pending native A/B timing; the two final renderer traversals alone took about 22-23 s while revisiting an already built core. The macOS effect is not yet quantified.

RED (3cbbb8d): a new self-test fails because the aggregate helper and opt-in validator configuration are missing. GREEN (1a3ea62): 31 focused native Tier 2 CI tests pass. The four new self-tests configure and build the real CMake helper for both simulated platform target sets. They show that each shared dependency is visited once. They also show that a newly registered cmocka test is included, that a missing renderer is rejected, and that a failing test build propagates. bash -n on the validator script passes. Full lint ran once and passed.

Not verified locally: native Windows and macOS execution, and the before-and-after hosted timing. Linux cannot run those validators, so this PR's own Windows and macOS Tier 2 jobs are the proof.

@zackees
zackees enabled auto-merge November 17, 2026 22:18
@zackees
zackees added this pull request to the merge queue Nov 17, 2026
Merged via the queue into master with commit fd4412d Nov 17, 2026
41 checks passed
@zackees
zackees deleted the ci/win-tier2-speed-one-build branch November 17, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant