mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-21 00:41:57 +09:00
[Docs] (P12): close the phase - the contract, the disposition of every leftover item, a G1 line that only compares same-machine builds, and the doc citation the docs reshuffle broke
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# gate.sh <tree> <tag>: the P7 v2 local gate (logs/p7-gate-template2.sh) for a P12 package tree, minus
|
||||
# build-verify and the retrace leg (both run at integration). G1 compares against the p12 base
|
||||
# (9f669e52: .text a52203, symbols in logs/p12/pull-syms-base.txt).
|
||||
# (9f669e52). G1 is only meaningful between two builds of the SAME machine and compiler (a symbol
|
||||
# list or .text size read on another host says nothing): the base list is used only when its sidecar
|
||||
# (pull-syms-base.txt.cc) names this build's compiler, and otherwise G1 says so and gives the recipe
|
||||
# instead of printing an added/removed count that means nothing (ID-P12-15: build both commits here).
|
||||
TREE=${1:?tree}; TAG=${2:?tag}
|
||||
T=/tmp/p12gate-$TAG; mkdir -p "$T"
|
||||
cd "$TREE" || exit 1
|
||||
@@ -10,9 +13,15 @@ unset DISPLAY WAYLAND_DISPLAY
|
||||
echo "=== START $(date) head=$(git rev-parse --short HEAD) dirty=$(git status --porcelain --untracked-files=no | wc -l) ==="
|
||||
ninja -C build-split -j 24 2>&1 | tail -1; echo "=== split build rc=${PIPESTATUS[0]} ==="
|
||||
ninja -C build-linux -j 24 2>&1 | tail -1; lrc=${PIPESTATUS[0]}; echo "=== linux build rc=$lrc ==="
|
||||
readelf -S -W build-linux/libMobileGL.so | awk '$2==".text"{print "G1 text size (hex):", $6, "(base a52203)"}'
|
||||
CC_NOW=$(grep -m1 '^CMAKE_CXX_COMPILER:' build-linux/CMakeCache.txt | cut -d= -f2- | xargs -I{} sh -c '{} --version | head -1')
|
||||
readelf -S -W build-linux/libMobileGL.so | awk '$2==".text"{print "G1 text size (hex):", $6, "(informational: compare only with a base built by this compiler)"}'
|
||||
nm --defined-only build-linux/libMobileGL.so | awk '{print $3}' | sort > "$T/pull-syms.txt"
|
||||
echo "G1 syms added=$(comm -13 /home/swung/w7/logs/p12/pull-syms-base.txt "$T/pull-syms.txt" | wc -l) removed=$(comm -23 /home/swung/w7/logs/p12/pull-syms-base.txt "$T/pull-syms.txt" | wc -l)"
|
||||
BASE_SYMS=/home/swung/w7/logs/p12/pull-syms-base.txt
|
||||
if [ -f "$BASE_SYMS.cc" ] && [ "$(cat "$BASE_SYMS.cc")" = "$CC_NOW" ]; then
|
||||
echo "G1 syms added=$(comm -13 "$BASE_SYMS" "$T/pull-syms.txt" | wc -l) removed=$(comm -23 "$BASE_SYMS" "$T/pull-syms.txt" | wc -l) (base list built by: $CC_NOW)"
|
||||
else
|
||||
echo "G1 syms: NOT COMPARED - the base list was not made by this compiler ($CC_NOW). Build the pull config at the base commit on this machine and diff the nm symbol lists (ID-P12-15); to reuse the list, write the compiler line to $BASE_SYMS.cc"
|
||||
fi
|
||||
python3 scripts/ci/fatal_census.py 2>&1 | tail -1
|
||||
python3 scripts/link_ratchet.py --build-dir build-split --baseline scripts/data/link_ratchet_baseline.txt --assert-monotone 2>&1 | tail -1
|
||||
python3 scripts/ci/spawn_lane_parity.py build-split 2>&1 | grep -c -i error | sed 's/^/parity errors: /'
|
||||
|
||||
Reference in New Issue
Block a user