From a719341314d5fdc0a7b61082aea2fac6db26a8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Bal=C3=A1=C5=BEik?= Date: Mon, 2 Mar 2026 15:54:53 +0100 Subject: [PATCH] Fix .respdiff-recent-named anchor to work when the ABI changes Previously, on 9.20 and 9.18, both builds (reference and the version being tested) would use the same .so files which lead to a crash if the ABI changed. Use `git worktree` to get completely separate build environment for the reference version. This is not a problem on 9.21 as Meson is smart and covers this mistake, but apply the fix to it as well for consistency. --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 09dd889b91..d26f568a25 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2176,15 +2176,14 @@ respdiff-third-party: artifacts: true script: - cd ${CI_PROJECT_DIR} - - mkdir version-under-test - - mv build version-under-test/ - BASELINE=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-$BIND_BASELINE_VERSION} - git fetch --unshallow origin ${BASELINE} - - git checkout FETCH_HEAD + - git worktree add baseline-build FETCH_HEAD + - cd baseline-build - *configure - meson compile -C build - cd "$CI_PROJECT_DIR"/bind9-qa/respdiff - - bash respdiff.sh -s named -q "${PWD}/100k_mixed.txt" -c 3 -w "${PWD}/rspworkdir" "${CI_PROJECT_DIR}/version-under-test" "${CI_PROJECT_DIR}/build/named" + - bash respdiff.sh -s named -q "${PWD}/100k_mixed.txt" -c 3 -w "${PWD}/rspworkdir" "${CI_PROJECT_DIR}" "${CI_PROJECT_DIR}/baseline-build/build/named" respdiff:recent-named: <<: *respdiff_recent_named