From fdcf76450348d0554b7fd1768331f9efaf691e13 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sat, 4 Jul 2020 22:32:15 -0400 Subject: gitlab-ci: Use MR base commit as performance baseline --- .gitlab/ci.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.gitlab/ci.sh') diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh index 05ee3203f3..dcaa41b089 100755 --- a/.gitlab/ci.sh +++ b/.gitlab/ci.sh @@ -363,6 +363,13 @@ function push_perf_notes() { "$TOP/.gitlab/test-metrics.sh" push } +# Figure out which commit should be used by the testsuite driver as a +# performance baseline. See Note [The CI Story]. +function determine_metric_baseline() { + export PERF_BASELINE_COMMIT="$(git merge-base $CI_MERGE_REQUEST_TARGET_BRANCH_NAME HEAD)" + info "Using $PERF_BASELINE_COMMIT for performance metric baseline..." +} + function test_make() { run "$MAKE" test_bindist TEST_PREP=YES run "$MAKE" V=0 test \ -- cgit v1.2.1