From 6f4fd6aed9df777a53e765ca926a7a6e58d79b01 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sun, 19 Oct 2025 15:15:24 -0500 Subject: [PATCH] tools/ci.sh: Use a better default reference ref in code_size_build. Now the default reference commit is the first parent of the selected commit, instead of the first parent of HEAD. Signed-off-by: Jeff Epler --- tools/ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci.sh b/tools/ci.sh index fdaf8b7eed..5d401843be 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -98,8 +98,8 @@ function ci_code_size_build { # the code size impact would be if we merged this PR. During CI we are at a merge commit, # so this tests the merged PR against its merge base. # Override the refs by setting REFERENCE and/or COMPARISON in the environment before invoking ci. - : ${REFERENCE:=$(git rev-parse --short HEAD^1)} : ${COMPARISON:=$(git rev-parse --short HEAD)} + : ${REFERENCE:=$(git rev-parse --short ${COMPARISON}^1)} echo "Comparing sizes of reference ${REFERENCE} to ${COMPARISON}..." git log --oneline $REFERENCE..$COMPARISON