mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-18 23:43:23 +09:00
[CI] (.github/workflows, docs/ci, scripts/ci): decide split build reuse in one guard job
- a new build-guard job configures both Linux lines on one runner (configure only, disaggregation branches) and outputs identical, different or unknown with its runner image and compiler; it is continue-on-error at job level, so it never fails the run, and it takes MOBILEGL_CI_DISAGGREGATED from build-linux's branch expression, so a drifted branch list gives different - build_fingerprint.py guard: one shared FetchContent directory (normalised as @DEPS@) so only the first configure fetches, a failed configure, or one killed with its process group after 10 minutes, retried once, and unknown for a configure that failed twice, any error or too little evidence; different is a warning annotation and unknown a notice, each with its first reasons; the toolchain is recorded, not compared; self-test cases for both sides thin, no libMobileGL.so link, a hung configure, the retry after a failure and after a timeout, the annotations, the shared directory and every verdict - build-linux-split builds nothing only on identical, and the consumers take build-linux's artifacts only then; different and unknown keep both builds, the full split matrix, A/B and the split unit run, and no consumer can red on a disagreement - build-linux drops its probe and runs the link ratchet on every disaggregation build as link-ratchet-primary; integration-split reds on it when it takes that build and prints both jobs' image and compiler - build-linux exports its build type, and the split consumers refuse to reuse a build-linux that is not Release (split_reuse_build_type.sh, self-test in pipe-gates): a debug-logging re-run of failed jobs keeps the guard's Release verdict - configure_build.sh passes extra arguments through to cmake
This commit is contained in:
@@ -16,12 +16,14 @@
|
||||
# library logs the resolved transport at INFO, and run_trace_case.cmake and the split lanes read
|
||||
# that line back as proof the transport resolved in the process under test.
|
||||
#
|
||||
# usage: configure_build.sh <primary|split> <build dir>
|
||||
# with MOBILEGL_CI_CC, MOBILEGL_CI_CXX and VK_ICD_FILENAMES from setup-test-runner.
|
||||
# usage: configure_build.sh <primary|split> <build dir> [extra cmake arguments...]
|
||||
# with MOBILEGL_CI_CC, MOBILEGL_CI_CXX and VK_ICD_FILENAMES from setup-test-runner. The builds pass
|
||||
# no extra arguments; build_fingerprint.py's guard passes its shared FetchContent directory.
|
||||
set -euo pipefail
|
||||
|
||||
variant="${1:?usage: configure_build.sh <primary|split> <build dir>}"
|
||||
build_dir="${2:?usage: configure_build.sh <primary|split> <build dir>}"
|
||||
shift 2
|
||||
|
||||
common=(
|
||||
-S . -B "${build_dir}" -G Ninja
|
||||
@@ -72,4 +74,4 @@ case "${variant}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
cmake "${common[@]}" "${flags[@]}"
|
||||
cmake "${common[@]}" "${flags[@]}" "$@"
|
||||
|
||||
Reference in New Issue
Block a user