Repository navigation
ci: build native Tier 2 roots in one aggregate target (Windows/macOS) - #5005
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_TIER2option and a singletier2-nativeaggregate 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):
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 -non 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.