From eeb92f72b4b59a4d464184f2c461888d4e94e961 Mon Sep 17 00:00:00 2001 From: lidongyang Date: Wed, 9 Sep 2026 21:10:05 +0800 Subject: [PATCH] [chore](regression) Enable branch-4.2 pull request CI routing ### What problem does this PR solve? Issue Number: close #xxx Related PR: None Problem Summary: Pull requests targeting branch-4.2 are not mapped to the community TeamCity pipelines, and Vault P0 rejects branch-4.2 during preparation. Add the same pipeline matrix used by branch-4.1, excluding Performance and ARM, and allow Vault P0 preparation for branch-4.2. ### Release note None ### Check List (For Author) - Test: Manual test - Validated shell syntax and the exact branch-4.2 pipeline mapping. - Behavior changed: Yes (pull requests targeting branch-4.2 are routed to the supported community CI matrix) - Does this need documentation: No --- regression-test/pipeline/common/teamcity-utils.sh | 1 + regression-test/pipeline/vault_p0/prepare.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/regression-test/pipeline/common/teamcity-utils.sh b/regression-test/pipeline/common/teamcity-utils.sh index e5cc519d442c29..90c8749527a1de 100644 --- a/regression-test/pipeline/common/teamcity-utils.sh +++ b/regression-test/pipeline/common/teamcity-utils.sh @@ -26,6 +26,7 @@ declare -A targetBranch_to_pipelines targetBranch_to_pipelines=( ['master']='feut beut cloudut compile p0 p1 external performance cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage check_coverage_fe' + ['branch-4.2']='feut beut cloudut compile p0 p1 external cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage check_coverage_fe' ['branch-4.1']='feut beut cloudut compile p0 p1 external cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage check_coverage_fe' ['branch-4.0']='feut beut cloudut compile p0 p1 external cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage check_coverage_fe' ['branch-3.1']='feut beut cloudut compile p0 p1 external cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage check_coverage_fe' diff --git a/regression-test/pipeline/vault_p0/prepare.sh b/regression-test/pipeline/vault_p0/prepare.sh index 93fc09dbb50abb..1189793c5a8dc1 100644 --- a/regression-test/pipeline/vault_p0/prepare.sh +++ b/regression-test/pipeline/vault_p0/prepare.sh @@ -67,11 +67,11 @@ fi # shellcheck source=/dev/null source "$(bash "${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh 'get')" if ${skip_pipeline:=false}; then echo "INFO: skip build pipline" && exit 0; else echo "INFO: no skip"; fi -if [[ "${target_branch}" == "master" || "${target_branch}" == "branch-4.0" || "${target_branch}" == "branch-3.1" || "${target_branch}" == "branch-3.0" ]]; then +if [[ "${target_branch}" == "master" || "${target_branch}" == "branch-4.2" || "${target_branch}" == "branch-4.0" || "${target_branch}" == "branch-3.1" || "${target_branch}" == "branch-3.0" ]]; then echo "INFO: PR target branch ${target_branch}" install_java else - echo "WARNING: PR target branch ${target_branch} is NOT in (master, branch-4.0, branch-3.1, branch-3.0), skip pipeline." + echo "WARNING: PR target branch ${target_branch} is NOT in (master, branch-4.2, branch-4.0, branch-3.1, branch-3.0), skip pipeline." bash "${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh 'set' "export skip_pipeline=true" exit 0 fi